/* 
  3wCookies - Theme Premium Dark Mode & Glassmorphism 
  Compatible Loi 25
*/

.tw-cookies-banner {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 420px;
    max-width: calc(100vw - 60px);
    background: rgba(20, 20, 20, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
    color: #F5F5F7;
    font-family: 'Inter', sans-serif;
    z-index: 99999;
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1), 
                transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.tw-cookies-banner.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
}

.tw-cookies-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
}

.tw-cookies-logo {
    color: #00FF88;
    font-size: 24px;
}

.tw-cookies-title {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.tw-cookies-text {
    font-size: 14px;
    line-height: 1.6;
    color: #A1A1A6;
    margin-bottom: 25px;
}

.tw-cookies-text strong {
    color: #F5F5F7;
}

.tw-cookies-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tw-cookies-btn {
    flex: 1;
    min-width: 100px;
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.tw-cookies-btn-accept {
    background: #00FF88;
    color: #0B0B0B;
}

.tw-cookies-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 255, 136, 0.3);
}

.tw-cookies-btn-refuse {
    background: transparent;
    color: #F5F5F7;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tw-cookies-btn-refuse:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.2);
}

.tw-cookies-btn-settings {
    background: transparent;
    color: #A1A1A6;
    text-decoration: underline;
    font-size: 12px;
    padding: 10px 0;
    flex: none;
    width: 100%;
    text-align: center;
    border: none;
    cursor: pointer;
    font-weight: 500;
}

.tw-cookies-btn-settings:hover {
    color: #00FF88;
}

/* Settings Panels */
.tw-cookies-settings-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    margin-top: 0;
}

.tw-cookies-settings-panel.open {
    max-height: 400px;
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 20px;
}

.tw-cookies-setting-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.tw-cookies-setting-info {
    flex: 1;
}

.tw-cookies-setting-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: #F5F5F7;
}

.tw-cookies-setting-desc {
    font-size: 12px;
    color: #A1A1A6;
    line-height: 1.5;
}

/* Switch Styling */
.tw-cookies-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
    flex-shrink: 0;
}

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

.tw-cookies-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .3s;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tw-cookies-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: #A1A1A6;
    transition: .3s;
    border-radius: 50%;
}

.tw-cookies-switch input:checked + .tw-cookies-slider {
    background-color: rgba(0, 255, 136, 0.2);
    border-color: #00FF88;
}

.tw-cookies-switch input:checked + .tw-cookies-slider:before {
    transform: translateX(20px);
    background-color: #00FF88;
}

.tw-cookies-switch input:disabled + .tw-cookies-slider {
    cursor: not-allowed;
    opacity: 0.5;
}

.tw-cookies-switch input:disabled + .tw-cookies-slider:before {
    background-color: #666;
}

/* Floating re-open trigger button */
.tw-cookies-trigger {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(20, 20, 20, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 99998;
    color: #A1A1A6;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tw-cookies-trigger:hover {
    color: #00FF88;
    border-color: #00FF88;
    transform: scale(1.1) rotate(15deg);
    box-shadow: 0 10px 35px rgba(0, 255, 136, 0.2);
}

.tw-cookies-trigger i {
    font-size: 18px;
}

/* Mobile optimizations */
@media (max-width: 576px) {
    .tw-cookies-banner {
        bottom: 0;
        right: 0;
        left: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 24px 24px 0 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
        padding: 24px;
        transform: translateY(100%);
    }

    .tw-cookies-banner.show {
        transform: translateY(0);
    }
    
    .tw-cookies-trigger {
        bottom: 15px;
        left: 15px;
        width: 40px;
        height: 40px;
    }
}
