/**
 * SMC - Cookie Consent Banner
 * File: /wp-content/themes/smc/assets/css/cookie-consent.css
 * Version: 1.1.0
 * Author: NUVREN
 */

/* ----------------------------------------------------------------
   Banner wrapper — desktop: floating card bottom-left
---------------------------------------------------------------- */

#smc-cookie-banner {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 99999;
    width: calc(100% - 40px);
    max-width: 420px;

    transform: translateY(16px);
    opacity: 0;
    transition:
        transform 0.34s cubic-bezier(0.32, 0, 0.18, 1),
        opacity   0.26s ease;
    will-change: transform, opacity;
    pointer-events: none;
}

#smc-cookie-banner.smc-cb-visible {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

/* ----------------------------------------------------------------
   Inner card — desktop
---------------------------------------------------------------- */

.smc-cb-inner {
    background: #ffffff;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.20);
    box-shadow:
        0 8px 28px rgba(15, 23, 42, 0.13),
        0 2px 8px  rgba(15, 23, 42, 0.05);
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ----------------------------------------------------------------
   Icon
---------------------------------------------------------------- */

.smc-cb-icon {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f9ff;
    border-radius: 9px;
}

.smc-cb-icon svg {
    width: 19px;
    height: 19px;
    display: block;
}

/* ----------------------------------------------------------------
   Text block
---------------------------------------------------------------- */

.smc-cb-text {
    flex: 1 1 auto;
    min-width: 0;
}

.smc-cb-title {
    margin: 0 0 3px;
    font-size: 13.5px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.3;
}

.smc-cb-desc {
    margin: 0;
    font-size: 12.5px;
    line-height: 1.5;
    color: #475569;
}

.smc-cb-desc a {
    color: #0ea5e9;
    text-decoration: none;
    font-weight: 500;
}

.smc-cb-desc a:hover {
    text-decoration: underline;
}

/* ----------------------------------------------------------------
   Buttons
---------------------------------------------------------------- */

.smc-cb-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

.smc-cb-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    border: none;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap;
    transition:
        background-color 0.15s ease,
        box-shadow       0.15s ease,
        transform        0.08s ease;
    -webkit-tap-highlight-color: transparent;
    text-decoration: none;
}

/* Accept All */
.smc-cb-btn-accept {
    background: #0ea5e9;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(14, 165, 233, 0.30);
}

.smc-cb-btn-accept:hover {
    background: #0284c7;
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.40);
}

.smc-cb-btn-accept:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.28);
}

/* Essential Only */
.smc-cb-btn-essential {
    background: #f1f5f9;
    color: #475569;
}

.smc-cb-btn-essential:hover {
    background: #e2e8f0;
    color: #334155;
}

.smc-cb-btn-essential:active {
    transform: translateY(1px);
}

/* ----------------------------------------------------------------
   Mobile: compact bottom sheet
   Anchored to bottom edge, rounded top corners only,
   full-width — the standard pattern for mobile/webview
---------------------------------------------------------------- */

@media (max-width: 600px) {
    #smc-cookie-banner {
        bottom: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        transform: translateY(100%);
    }

    #smc-cookie-banner.smc-cb-visible {
        transform: translateY(0);
    }

    .smc-cb-inner {
        border-radius: 16px 16px 0 0;
        border-bottom: none;
        padding: 14px 16px calc(14px + env(safe-area-inset-bottom));
        gap: 10px;
        box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.10);
    }

    .smc-cb-icon {
        display: none;
    }

    .smc-cb-title {
        font-size: 13px;
    }

    .smc-cb-desc {
        font-size: 12px;
        line-height: 1.45;
    }

    .smc-cb-btn {
        height: 40px;
        font-size: 13px;
    }
}

