/* Cookie Banner Styles - Arthur Hunt Theme Integration */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--white, #ffffff);
    border-top: 2px solid var(--blue-arthur, #3E89B5);
    box-shadow: 0 -8px 32px rgba(6, 74, 104, 0.15);
    z-index: 9999;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
    padding: 32px 0;
    font-family: 'Acumin-Light', Helvetica, Arial, Lucida, sans-serif;
}

/* Ensure button text is always visible */
.cookie-banner-btn * {
    position: relative;
    z-index: 2;
    pointer-events: none;
}

.cookie-banner.show {
    transform: translateY(0);
}

.cookie-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cookie-banner-text {
    flex: 1;
    min-width: 320px;
}

.cookie-banner-text .title-20-500 {
    font-family: 'Acumin-Light', sans-serif;
    font-size: 24px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.48px;
    margin-bottom: 12px;
    color: var(--black-l, #122139);
}

.cookie-banner-text .text-16 {
    font-family: 'Acumin-Light', sans-serif;
    color: var(--gray-1, #4D4D4C);
    line-height: 1.6;
    font-size: 16px;
    margin: 0;
    letter-spacing: -0.32px;
}

.cookie-banner-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
}

.cookie-banner-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font-family: 'Acumin-Light', sans-serif;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    text-decoration: none;
    white-space: nowrap;
    min-width: 140px;
    text-align: center;
    letter-spacing: -0.32px;
    padding: 12px 24px;
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.cookie-banner-btn-primary {
    background: var(--blue-arthur, #3E89B5);
    color: var(--white, #ffffff);
    position: relative;
    z-index: 1;
}

.cookie-banner-btn-primary::before {
    content: '';
    width: 100%; 
    height: 100%;
    background: var(--blue-arthur2, #084A68);
    position: absolute;
    top: 0; 
    left: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.cookie-banner-btn-primary:hover {
    color: var(--white, #ffffff) !important;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(62, 137, 181, 0.3);
}

.cookie-banner-btn-primary:hover::before {
    opacity: 1;
}

.cookie-banner-btn-secondary {
    background: transparent;
    color: var(--gray-1, #4D4D4C);
    border: 2px solid var(--gray-3, #C0C4CB);
    z-index: 1;
}

.cookie-banner-btn-secondary:hover {
    background: var(--gray-4, #F0F1F3);
    color: var(--black-l, #122139) !important;
    text-decoration: none;
    border-color: var(--gray-2, #828A97);
    transform: translateY(-1px);
}

.cookie-banner-btn-text {
    background: transparent;
    color: var(--blue-arthur, #3E89B5);
    padding: 12px 16px;
    border: none;
    position: relative;
    z-index: 1;
}

.cookie-banner-btn-text::after {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 16px;
    right: 16px;
    height: 1px;
    background: var(--blue-arthur, #3E89B5);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.cookie-banner-btn-text:hover {
    color: var(--blue-arthur2, #084A68) !important;
    text-decoration: none;
}

.cookie-banner-btn-text:hover::after {
    transform: scaleX(1);
}

/* Cookie Settings Modal */
.cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 33, 57, 0.8);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Acumin-Light', Helvetica, Arial, Lucida, sans-serif;
}

.cookie-modal.show {
    display: flex;
}

.cookie-modal-content {
    background: var(--white, #ffffff);
    border-radius: 12px;
    padding: 40px;
    max-width: 640px;
    width: 100%;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(18, 33, 57, 0.4);
    border: 2px solid var(--blue-arthur, #3E89B5);
}

.cookie-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--gray-4, #F0F1F3);
}

.cookie-modal-header h2 {
    margin: 0;
    font-family: 'Acumin-Light', sans-serif;
    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.56px;
    color: var(--black-l, #122139);
}

.cookie-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: var(--gray-2, #828A97);
    padding: 8px;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    transition: all 0.3s ease;
}

.cookie-modal-close:hover {
    color: var(--black-l, #122139);
    background: var(--gray-4, #F0F1F3);
    transform: scale(1.1);
}

.cookie-category {
    margin-bottom: 32px;
    padding: 24px;
    background: var(--gray-4, #F0F1F3);
    border-radius: 12px;
    border-left: 4px solid var(--blue-arthur, #3E89B5);
}

.cookie-category:last-child {
    margin-bottom: 0;
}

.cookie-category-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    gap: 20px;
}

.cookie-category-title {
    font-family: 'Acumin-Light', sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--black-l, #122139);
    margin: 0;
    letter-spacing: -0.4px;
}

.cookie-category-desc {
    color: var(--gray-1, #4D4D4C);
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
    letter-spacing: -0.3px;
}

.cookie-toggle {
    position: relative;
    width: 56px;
    height: 28px;
    flex-shrink: 0;
    cursor: pointer;
    display: inline-block;
}

.cookie-toggle input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    cursor: pointer;
    z-index: 1;
}

.cookie-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-3, #C0C4CB);
    transition: all 0.4s ease;
    border-radius: 28px;
    border: 2px solid var(--gray-3, #C0C4CB);
    z-index: 0;
    display: block;
}

.cookie-toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
    background-color: var(--white, #ffffff);
    transition: all 0.4s ease;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(18, 33, 57, 0.2);
    z-index: 1;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
    background-color: var(--blue-arthur, #3E89B5);
    border-color: var(--blue-arthur, #3E89B5);
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
    transform: translateX(28px);
}

.cookie-toggle:hover .cookie-toggle-slider {
    box-shadow: 0 0 0 3px rgba(62, 137, 181, 0.2);
}

.cookie-toggle.disabled:hover .cookie-toggle-slider {
    box-shadow: none;
}

.cookie-toggle.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.cookie-toggle.disabled input {
    cursor: not-allowed;
}

.cookie-toggle.disabled .cookie-toggle-slider {
    background-color: var(--gray-2, #828A97);
    border-color: var(--gray-2, #828A97);
    cursor: not-allowed;
}

.cookie-toggle.disabled .cookie-toggle-slider:before {
    background-color: var(--gray-4, #F0F1F3);
}

.cookie-modal-actions {
    display: flex;
    gap: 16px;
    justify-content: flex-end;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 2px solid var(--gray-4, #F0F1F3);
}

/* Responsive Design */
@media screen and (max-width: 1024px) {
    .cookie-banner {
        padding: 24px 0;
    }
    
    .cookie-banner-content {
        gap: 24px;
        padding: 0 20px;
    }
}

@media screen and (max-width: 768px) {
    .cookie-banner {
        padding: 20px 0;
    }
    
    .cookie-banner-content {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 0 16px;
        gap: 20px;
    }
    
    .cookie-banner-text {
        min-width: auto;
    }
    
    .cookie-banner-text .title-20-500 {
        font-size: 20px;
        margin-bottom: 8px;
    }
    
    .cookie-banner-actions {
        justify-content: center;
        flex-direction: column;
        gap: 12px;
    }
    
    .cookie-banner-btn {
        width: 100%;
        min-width: auto;
    }
    
    .cookie-modal {
        padding: 16px;
    }
    
    .cookie-modal-content {
        padding: 24px;
        margin: 0;
        max-height: 90vh;
        border-radius: 8px;
    }
    
    .cookie-modal-header {
        margin-bottom: 24px;
        padding-bottom: 16px;
    }
    
    .cookie-modal-header h2 {
        font-size: 24px;
    }
    
    .cookie-modal-actions {
        flex-direction: column;
        margin-top: 24px;
    }
    
    .cookie-category {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .cookie-category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .cookie-toggle {
        align-self: flex-end;
        margin-top: 8px;
    }
}

@media screen and (max-width: 480px) {
    .cookie-banner-content {
        padding: 0 12px;
    }
    
    .cookie-banner-text .title-20-500 {
        font-size: 18px;
    }
    
    .cookie-banner-text .text-16 {
        font-size: 14px;
    }
    
    .cookie-modal-content {
        padding: 20px;
    }
    
    .cookie-banner-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .cookie-category {
        padding: 16px;
    }
    
    .cookie-category-title {
        font-size: 18px;
    }
    
    .cookie-category-desc {
        font-size: 14px;
    }
}
