/* ────────────────────────────────────────────────────────────────────
   Hafidzku CTA Suite — Sticky Bar CSS (v1.1)
   Scoped: .hk-sticky-* | z-index 2147483645 | < 1.5KB
   Theme compat: GeneratePress, Kadence, LandingPress, Elementor.
   ──────────────────────────────────────────────────────────────────── */

.hk-sticky {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 2147483645 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 48px 8px 16px;
    margin: 0 !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.15);
    box-sizing: border-box;
    line-height: 1.4;
}
.hk-sticky * { box-sizing: border-box; }
.hk-sticky[hidden] { display: none !important; }

.hk-sticky__link {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    text-decoration: none !important;
    font-weight: 600 !important;
    color: inherit !important;
    line-height: 1.4;
}
.hk-sticky__link:hover {
    opacity: 0.92;
    text-decoration: none !important;
}
.hk-sticky__link:focus-visible {
    outline: 2px solid rgba(255,255,255,0.7);
    outline-offset: 2px;
    border-radius: 4px;
}

.hk-sticky__wa-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.hk-sticky__close {
    position: absolute !important;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border: none !important;
    background: rgba(255,255,255,0.25) !important;
    color: inherit !important;
    border-radius: 50%;
    font-size: 16px;
    cursor: pointer;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1;
    appearance: none;
    -webkit-appearance: none;
    transition: background 0.15s;
}
.hk-sticky__close:hover {
    background: rgba(255,255,255,0.4) !important;
}

/* Device visibility */
@media (max-width: 768px) {
    .hk-sticky--desktop-only { display: none !important; }
    .hk-sticky { font-size: 13px; padding: 6px 44px 6px 12px; min-height: 40px; }
}
@media (min-width: 769px) {
    .hk-sticky--mobile-only { display: none !important; }
}

/* Safe area for iOS notch */
@supports (padding: env(safe-area-inset-bottom)) {
    .hk-sticky { padding-bottom: calc(8px + env(safe-area-inset-bottom)); }
}

/* Page body padding so sticky doesn't cover content (optional, opt-in via JS later) */
