/* dk-help-fab.css v3.5 — never block homepage/order taps */

.dk-help-fab-root {
    position: fixed;
    right: 12px;
    bottom: max(88px, calc(env(safe-area-inset-bottom) + 72px));
    z-index: 1040;
    font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.4;
    /* Root itself never intercepts page clicks */
    pointer-events: none;
    width: 56px;
    height: 56px;
}

.dk-help-fab-root.dk-help-hidden {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

@media (max-width: 480px) {
    .dk-help-fab-root {
        right: 10px;
        bottom: max(96px, calc(env(safe-area-inset-bottom) + 80px));
    }
}

.dk-help-fab-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 2px solid #1C140F;
    background: #FEC832;
    color: #1C140F;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
    padding: 0;
    position: relative;
    z-index: 3;
    pointer-events: auto;
}

.dk-help-fab-btn:focus-visible {
    outline: 3px solid rgba(254, 200, 50, 0.45);
    outline-offset: 3px;
}

.dk-help-fab-btn svg {
    width: 28px;
    height: 28px;
    fill: currentColor;
}

/* Closed panel must be fully out of hit-testing */
.dk-help-panel {
    position: absolute;
    right: 0;
    bottom: 70px;
    min-width: 240px;
    max-width: 300px;
    background: #fffdf7;
    border: 1px solid rgba(28, 20, 15, 0.12);
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(7, 7, 7, 0.22);
    overflow: hidden;
    z-index: 2;
    opacity: 0;
    visibility: hidden;
    pointer-events: none !important;
    transform: translateY(8px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}

.dk-help-panel.dk-help-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto !important;
    transform: translateY(0);
}

.dk-help-panel:not(.dk-help-open),
.dk-help-panel:not(.dk-help-open) * {
    pointer-events: none !important;
}

.dk-help-panel.dk-help-open a {
    pointer-events: auto !important;
}

.dk-help-panel-header {
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 700;
    color: #FEC832;
    background: #1C140F;
    border-bottom: 3px solid #FEC832;
}

.dk-help-panel-body {
    padding: 8px;
}

.dk-help-panel a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    color: #1a1a1a;
    font-size: 14px;
    font-weight: 600;
}

.dk-help-panel a:hover {
    background: #fff6dc;
}

.dk-help-panel a.dk-help-wa {
    color: #128C7E;
}

.dk-help-panel a.dk-help-tg {
    color: #0088cc;
}

.dk-help-panel a.dk-help-page {
    color: #4b3b31;
    font-weight: 500;
    font-size: 13px;
}

.dk-help-panel-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dk-help-panel-icon svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.dk-help-icon-wa {
    background: #e7f8f0;
}

.dk-help-icon-tg {
    background: #e0f4fb;
}

.dk-help-icon-page {
    color: #1C140F;
    background: #FEC832;
}

.dk-help-panel-sub {
    font-size: 11px;
    font-weight: 400;
    color: #999;
    margin-top: 2px;
}

/* NO full-screen backdrop in v3.5 — it blocked the whole store */
.dk-help-backdrop {
    display: none !important;
    pointer-events: none !important;
    visibility: hidden !important;
    width: 0 !important;
    height: 0 !important;
}

@media (prefers-reduced-motion: reduce) {
    .dk-help-panel {
        transition: none;
    }
}
