/**
 * Cookie Consent Bar
 */

/* Bar container */
.aw-cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    background: #12121a;
    border-top: 1px solid rgba(0, 255, 136, 0.2);
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.aw-cookie-consent.aw-visible {
    transform: translateY(0);
}

/* Main bar row */
.aw-cookie-consent__bar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.aw-cookie-consent__text {
    flex: 1;
    color: #c8c8d0;
    font-size: 0.9rem;
    line-height: 1.5;
}
.aw-cookie-consent__text a {
    color: #00ff88;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.aw-cookie-consent__text a:hover {
    color: #33ffaa;
}

/* Button group */
.aw-cookie-consent__actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}
.aw-cookie-consent__btn {
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: background 0.2s, color 0.2s, transform 0.15s;
    white-space: nowrap;
    font-family: inherit;
}
.aw-cookie-consent__btn:active {
    transform: scale(0.97);
}
.aw-cookie-consent__btn--accept {
    background: #00ff88;
    color: #0a0a0f;
}
.aw-cookie-consent__btn--accept:hover {
    background: #33ffaa;
}
.aw-cookie-consent__btn--reject {
    background: rgba(255, 255, 255, 0.08);
    color: #c8c8d0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.aw-cookie-consent__btn--reject:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}
.aw-cookie-consent__btn--manage {
    background: transparent;
    color: #00ff88;
    border: 1px solid rgba(0, 255, 136, 0.3);
}
.aw-cookie-consent__btn--manage:hover {
    background: rgba(0, 255, 136, 0.1);
}

/* Expanded manage panel */
.aw-cookie-consent__details {
    display: none;
    padding: 0 24px 20px;
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.aw-cookie-consent__details.aw-open {
    display: block;
}

/* Category row */
.aw-cookie-category {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.aw-cookie-category:last-child {
    border-bottom: none;
}
.aw-cookie-category__info {
    flex: 1;
    min-width: 0;
}
.aw-cookie-category__name {
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
}
.aw-cookie-category__desc {
    color: #888;
    font-size: 0.8rem;
    margin-top: 2px;
}
.aw-cookie-category__control {
    flex-shrink: 0;
}

/* Always-on label */
.aw-cookie-always-on {
    font-size: 0.75rem;
    color: #00ff88;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}

/* Toggle switch */
.aw-cookie-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}
.aw-cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
}
.aw-cookie-toggle__slider {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    cursor: pointer;
    transition: background 0.2s;
}
.aw-cookie-toggle__slider::before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    left: 3px;
    bottom: 3px;
    background: #666;
    border-radius: 50%;
    transition: transform 0.2s, background 0.2s;
}
.aw-cookie-toggle input:checked + .aw-cookie-toggle__slider {
    background: rgba(0, 255, 136, 0.25);
}
.aw-cookie-toggle input:checked + .aw-cookie-toggle__slider::before {
    transform: translateX(20px);
    background: #00ff88;
}

/* Save button in details */
.aw-cookie-consent__save {
    margin-top: 16px;
    text-align: right;
}

/* Mobile */
@media (max-width: 640px) {
    .aw-cookie-consent__bar {
        flex-direction: column;
        align-items: stretch;
        padding: 16px;
        gap: 12px;
    }
    .aw-cookie-consent__actions {
        flex-direction: column;
    }
    .aw-cookie-consent__btn {
        text-align: center;
        padding: 12px 16px;
    }
    .aw-cookie-consent__details {
        padding: 0 16px 16px;
    }
    .aw-cookie-category {
        gap: 12px;
    }
}
