/* RGPD Cookie Banner Styles */

.art-cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--art-dark, #1e293b);
    color: var(--txt-1, #f4ecd0);
    padding: 1.5rem;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.3);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    transform: translateY(100%);
    transition: transform 0.4s ease-in-out;
    font-family: 'Inter', sans-serif;
}

.art-cookie-banner.art-cookie-show {
    transform: translateY(0);
}

.art-cookie-banner__text {
    flex: 1;
    font-size: 0.95rem;
    line-height: 1.5;
    text-align: center;
}

.art-cookie-banner__text a {
    color: var(--art-brown, #9a634e);
    text-decoration: underline;
}

.art-cookie-banner__text a:hover {
    text-decoration: none;
}

.art-cookie-banner__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.art-cookie-btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.art-cookie-btn--primary {
    background-color: var(--art-brown, #9a634e);
    color: #fff;
}

.art-cookie-btn--primary:hover {
    background-color: #7a4e3d;
}

.art-cookie-btn--secondary {
    background-color: transparent;
    border: 1px solid var(--txt-1, #f4ecd0);
    color: var(--txt-1, #f4ecd0);
}

.art-cookie-btn--secondary:hover {
    background-color: rgba(244, 236, 208, 0.1);
}

.art-cookie-btn--link {
    background-color: transparent;
    color: var(--txt-1, #f4ecd0);
    text-decoration: underline;
    padding: 0.5rem;
}

.art-cookie-btn--link:hover {
    color: var(--art-brown, #9a634e);
}

/* Modal de Configuración */
.art-cookie-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
}

.art-cookie-modal-overlay.art-cookie-show {
    opacity: 1;
    visibility: visible;
}

.art-cookie-modal {
    background-color: var(--fondo-2, #e1d9c0);
    color: var(--art-dark, #1e293b);
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    padding: 2rem;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s;
}

.art-cookie-modal-overlay.art-cookie-show .art-cookie-modal {
    transform: scale(1);
}

.art-cookie-modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 1rem;
}

.art-cookie-modal__title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--art-dark, #1e293b);
}

.art-cookie-modal__close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--art-dark, #1e293b);
    line-height: 1;
}

.art-cookie-group {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.art-cookie-group:last-child {
    border-bottom: none;
}

.art-cookie-group__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.art-cookie-group__title {
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
}

.art-cookie-group__desc {
    font-size: 0.9rem;
    margin: 0;
    opacity: 0.8;
}

/* Toggle Switch */
.art-cookie-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.art-cookie-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.art-cookie-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.art-cookie-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .art-cookie-slider {
    background-color: var(--art-brown, #9a634e);
}

input:focus + .art-cookie-slider {
    box-shadow: 0 0 1px var(--art-brown, #9a634e);
}

input:checked + .art-cookie-slider:before {
    transform: translateX(26px);
}

.art-cookie-toggle--disabled .art-cookie-slider {
    background-color: var(--art-brown, #9a634e);
    opacity: 0.6;
    cursor: not-allowed;
}

.art-cookie-modal__footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

@media (min-width: 768px) {
    .art-cookie-banner {
        flex-direction: row;
        text-align: left;
    }
    
    .art-cookie-banner__text {
        text-align: left;
    }
}
