/* ==============================
   COOKIE BANNER
   ============================== */

.scb-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    color: #333;
    padding: 20px 24px;
    z-index: 9999;
    box-shadow: 0 -4px 24px rgba(0,0,0,0.12);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    border-top: 2px solid #4CAF50;
    transform: translateY(100%);
    visibility: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
}

.scb-banner.scb-show {
    transform: translateY(0);
    visibility: visible;
}

.scb-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.scb-text {
    flex: 1;
    min-width: 280px;
}

.scb-main-text {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-weight: 600;
    color: #222;
}

.scb-sub-text {
    margin: 0;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

.scb-link {
    color: #2271b1;
    text-decoration: underline;
    font-weight: 500;
}

.scb-link:hover {
    color: #135e96;
}

.scb-buttons {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* ==============================
   BUTTONS
   ============================== */

.scb-button {
    border: none;
    color: white;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 6px;
    white-space: nowrap;
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
}

.scb-accept-btn {
    background-color: #4CAF50;
    color: #fff;
}

.scb-accept-btn:hover {
    background-color: #43a047;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(76,175,80,0.3);
}

.scb-settings-btn {
    background-color: transparent;
    border: 1px solid #ccc;
    color: #555;
}

.scb-settings-btn:hover {
    background-color: #f5f5f5;
    border-color: #999;
}

.scb-reject-btn {
    background-color: transparent;
    border: 1px solid #ddd;
    color: #888;
}

.scb-reject-btn:hover {
    background-color: #fafafa;
    border-color: #bbb;
    color: #555;
}

/* ==============================
   MODAL
   ============================== */

.scb-modal {
    position: fixed;
    z-index: 10000000000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(2px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.scb-modal.scb-show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.scb-modal-content {
    background-color: #fff;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 520px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    overflow: hidden;
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.scb-modal.scb-show .scb-modal-content {
    transform: translateY(0) scale(1);
}

.scb-modal-header {
    padding: 18px 24px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
}

.scb-modal-header h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #222;
}

.scb-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.scb-close:hover {
    color: #333;
}

.scb-modal-body {
    padding: 20px 24px;
}

.scb-modal-intro {
    font-size: 13px;
    color: #666;
    margin: 0 0 16px 0;
    line-height: 1.5;
}

/* ==============================
   COOKIE OPTIONS
   ============================== */

.scb-option {
    margin-bottom: 12px;
    padding: 14px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #eee;
    transition: border-color 0.2s;
}

.scb-option:hover {
    border-color: #ddd;
}

.scb-option-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.scb-label {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.scb-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.scb-badge-required {
    background: #e8f5e9;
    color: #2e7d32;
}

.scb-option-desc {
    margin: 8px 0 0 0;
    font-size: 12px;
    color: #888;
    line-height: 1.5;
    padding-left: 62px;
}

/* ==============================
   MODAL FOOTER
   ============================== */

.scb-modal-footer {
    padding: 16px 24px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fafafa;
}

.scb-footer-link {
    font-size: 12px;
    color: #999;
    text-decoration: underline;
}

.scb-footer-link:hover {
    color: #666;
}

/* ==============================
   TOGGLE SWITCH
   ============================== */

.scb-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
    flex-shrink: 0;
}

.scb-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.scb-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .3s;
    border-radius: 22px;
}

.scb-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

input:checked + .scb-slider {
    background-color: #4CAF50;
}

input:focus + .scb-slider {
    box-shadow: 0 0 2px #4CAF50;
}

input:checked + .scb-slider:before {
    transform: translateX(22px);
}

    input:disabled + .scb-slider {
        opacity: 0.6;
        cursor: not-allowed;
    }

/* ==============================
   FLOATING BUTTON
   ============================== */
.scb-floating-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: #fff;
    border: 1px solid #ddd;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 9998;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, visibility 0.3s ease, box-shadow 0.3s ease;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
}

.scb-floating-btn.scb-show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scb-floating-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.2);
}

/* ==============================
   RESPONSIVE
   ============================== */

@media (max-width: 768px) {
    .scb-banner {
        padding: 16px;
    }

    .scb-content {
        flex-direction: column;
        align-items: stretch;
    }

    .scb-buttons {
        width: 100%;
        flex-direction: column;
    }

    .scb-button {
        width: 100%;
        text-align: center;
    }

    .scb-option-desc {
        padding-left: 0;
        margin-top: 6px;
    }

    .scb-modal-footer {
        flex-direction: column;
        gap: 10px;
    }

    .scb-footer-link {
        order: 2;
    }
}
