/* Banner de consentimiento de Fideltour (REQ-888). Sin recursos de terceros. */

#CookielawBanner,
.fdt-consent-reopen {
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: #1f1f1f;
}

#CookielawBanner *,
#CookielawBanner *::before,
#CookielawBanner *::after {
    box-sizing: inherit;
}

#CookielawBanner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2147483000;
    max-height: 90vh;
    overflow-y: auto;
    padding: 20px 24px;
    background: #ffffff;
    border-top: 1px solid #d0d0d0;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
}

#CookielawBanner[hidden],
#CookielawBanner [hidden],
.fdt-consent-reopen[hidden] {
    display: none !important;
}

.fdt-consent__title {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 700;
}

.fdt-consent__text {
    margin: 0 0 16px;
}

.fdt-consent__text p {
    margin: 0 0 8px;
}

.fdt-consent__text a {
    color: inherit;
    text-decoration: underline;
}

.fdt-consent__panel {
    margin: 0 0 16px;
    padding: 16px 0 0;
    border-top: 1px solid #e5e5e5;
}

.fdt-consent__category {
    margin: 0 0 12px;
}

.fdt-consent__category p {
    margin: 4px 0 0 52px;
    font-size: 14px;
    color: #4a4a4a;
}

.fdt-consent__switch {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    cursor: pointer;
}

.fdt-consent__switch input {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    flex: none;
    width: 40px;
    height: 22px;
    margin: 0;
    border-radius: 11px;
    background: #b5b5b5;
    cursor: pointer;
    transition: background 0.15s;
}

.fdt-consent__switch input::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #ffffff;
    transition: transform 0.15s;
}

.fdt-consent__switch input:checked {
    background: #1f1f1f;
}

.fdt-consent__switch input:checked::after {
    transform: translateX(18px);
}

.fdt-consent__switch input:disabled {
    opacity: 0.5;
    cursor: default;
}

.fdt-consent__switch input:focus-visible {
    outline: 2px solid #1f1f1f;
    outline-offset: 2px;
}

.fdt-consent__buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

/* Aceptar, Rechazar y Configurar con el mismo peso visual. */
.fdt-consent__button {
    flex: 0 1 auto;
    min-width: 160px;
    margin: 0;
    padding: 10px 20px;
    border: 1px solid #1f1f1f;
    border-radius: 4px;
    background: #1f1f1f;
    color: #ffffff;
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
}

.fdt-consent__button:hover {
    background: #3a3a3a;
}

.fdt-consent__button:focus-visible,
.fdt-consent-reopen:focus-visible {
    outline: 2px solid #1f1f1f;
    outline-offset: 2px;
}

/* Botón fijo para reabrir la configuración. */
.fdt-consent-reopen {
    position: fixed;
    left: 16px;
    bottom: 16px;
    z-index: 2147483000;
    margin: 0;
    padding: 8px 14px;
    border: 1px solid #1f1f1f;
    border-radius: 4px;
    background: #ffffff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

@media (max-width: 600px) {
    #CookielawBanner {
        padding: 16px;
    }

    .fdt-consent__button {
        flex: 1 1 100%;
        min-width: 0;
    }

    .fdt-consent__category p {
        margin-left: 0;
    }
}
