/* Aula Mapas - campos editables con fondo blanco */

/* Formulario de datos personales */
#customer-form input.form-control:not(:disabled):not([readonly]),
#customer-form select.form-control:not(:disabled),
#customer-form textarea.form-control:not(:disabled):not([readonly]),

/* Checkout / información de contacto */
#checkout-personal-information-step input.form-control:not(:disabled):not([readonly]),
#checkout-personal-information-step select.form-control:not(:disabled),
#checkout-personal-information-step textarea.form-control:not(:disabled):not([readonly]),
#checkout-addresses-step input.form-control:not(:disabled):not([readonly]),
#checkout-addresses-step select.form-control:not(:disabled),
#checkout-addresses-step textarea.form-control:not(:disabled):not([readonly]) {
    background-color: #ffffff !important;
}

/* Mantener diferenciados los campos realmente deshabilitados */
#customer-form input.form-control:disabled,
#customer-form input.form-control[readonly],
#checkout-personal-information-step input.form-control:disabled,
#checkout-personal-information-step input.form-control[readonly],
#checkout-addresses-step input.form-control:disabled,
#checkout-addresses-step input.form-control[readonly] {
    opacity: 0.7;
}


/* PrestaShop 8.2.x: corrección específica del bloque de privacidad */
#checkout-personal-information-step .mapas-privacy-row,
#customer-form .mapas-privacy-row {
    clear: both;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    margin-top: 8px;
    margin-bottom: 18px;
}

#checkout-personal-information-step .mapas-privacy-row .custom-checkbox,
#customer-form .mapas-privacy-row .custom-checkbox,
#checkout-personal-information-step .mapas-privacy-row .checkbox,
#customer-form .mapas-privacy-row .checkbox {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
}

#checkout-personal-information-step .mapas-privacy-row label,
#customer-form .mapas-privacy-row label {
    display: block !important;
    height: auto !important;
    min-height: 0 !important;
    line-height: 1.35 !important;
    white-space: normal !important;
}

#checkout-personal-information-step .mapas-privacy-row em,
#customer-form .mapas-privacy-row em,
#checkout-personal-information-step .mapas-privacy-row p,
#customer-form .mapas-privacy-row p,
#checkout-personal-information-step .mapas-privacy-row .form-control-comment,
#customer-form .mapas-privacy-row .form-control-comment {
    display: block !important;
    position: static !important;
    height: auto !important;
    white-space: normal !important;
    margin-top: 4px;
    line-height: 1.35 !important;
}


/* v1.4.9 - Corrección reforzada del bloque "Privacidad de los datos del cliente" */
#checkout-personal-information-step .mapas-privacy-block,
#customer-form .mapas-privacy-block {
    display: block !important;
    position: relative !important;
    clear: both !important;
    float: none !important;
    width: 100% !important;
    height: auto !important;
    min-height: 85px !important;
    overflow: visible !important;
    box-sizing: border-box !important;
    margin-top: 10px !important;
    margin-bottom: 22px !important;
    padding-bottom: 6px !important;
}

#checkout-personal-information-step .mapas-privacy-block::after,
#customer-form .mapas-privacy-block::after {
    content: "";
    display: table;
    clear: both;
}

#checkout-personal-information-step .mapas-privacy-block label,
#customer-form .mapas-privacy-block label {
    position: static !important;
    float: none !important;
    display: inline-block !important;
    vertical-align: top !important;
    width: calc(100% - 34px) !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 5px 6px !important;
    padding: 0 !important;
    line-height: 1.35 !important;
    white-space: normal !important;
}

#checkout-personal-information-step .mapas-privacy-block input[type="checkbox"],
#customer-form .mapas-privacy-block input[type="checkbox"] {
    position: static !important;
    float: none !important;
    display: inline-block !important;
    vertical-align: top !important;
    margin: 3px 0 0 0 !important;
}

#checkout-personal-information-step .mapas-privacy-block p,
#customer-form .mapas-privacy-block p,
#checkout-personal-information-step .mapas-privacy-block em,
#customer-form .mapas-privacy-block em,
#checkout-personal-information-step .mapas-privacy-block small,
#customer-form .mapas-privacy-block small,
#checkout-personal-information-step .mapas-privacy-block .form-control-comment,
#customer-form .mapas-privacy-block .form-control-comment {
    position: static !important;
    float: none !important;
    display: block !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 4px 0 0 28px !important;
    padding: 0 !important;
    line-height: 1.35 !important;
    white-space: normal !important;
    overflow: visible !important;
}


/* v1.5.2 - Datos específicos de la PRE-RESERVA */
.mapas-reservation-data {
    margin: 0 0 24px;
    padding: 20px;
    border: 1px solid #d8d8d8;
    border-radius: 4px;
    background: #fff;
}
.mapas-reservation-data h4 {
    margin: 0 0 6px;
}
.mapas-reservation-intro {
    margin-bottom: 18px;
}
.mapas-reservation-data .form-group {
    margin-bottom: 16px;
}
.mapas-reservation-data label {
    display: block;
    margin-bottom: 6px;
}
.mapas-reservation-data .form-control {
    background: #fff !important;
}
.mapas-required {
    font-weight: 700;
}
.mapas-priority-checkout {
    padding-top: 4px;
}
.mapas-priority-help {
    margin-bottom: 10px;
    line-height: 1.45;
}
.mapas-priority-label {
    display: flex !important;
    align-items: flex-start;
    gap: 8px;
    font-weight: 400;
}
.mapas-priority-label input {
    margin-top: 4px;
}
.mapas-reservation-status {
    min-height: 18px;
    margin-top: 8px;
    font-size: .875rem;
}
.mapas-contact-warning {
    margin-top: 14px;
}


/* v1.5.4 - Corrección definitiva del bloque de privacidad de cliente */
#checkout-personal-information-step .mapas-customer-privacy-fixed,
#customer-form .mapas-customer-privacy-fixed {
    display: block !important;
    position: relative !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 90px !important;
    overflow: visible !important;
    margin: 16px 0 22px !important;
    padding: 0 0 8px !important;
    box-sizing: border-box !important;
}

#checkout-personal-information-step .mapas-customer-privacy-fixed::after,
#customer-form .mapas-customer-privacy-fixed::after {
    content: "";
    display: block;
    clear: both;
}

#checkout-personal-information-step .mapas-customer-privacy-fixed .custom-checkbox,
#customer-form .mapas-customer-privacy-fixed .custom-checkbox,
#checkout-personal-information-step .mapas-customer-privacy-fixed .checkbox,
#customer-form .mapas-customer-privacy-fixed .checkbox {
    display: block !important;
    position: static !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
}

#checkout-personal-information-step .mapas-customer-privacy-fixed input[type="checkbox"],
#customer-form .mapas-customer-privacy-fixed input[type="checkbox"] {
    position: static !important;
    float: left !important;
    margin: 4px 8px 0 0 !important;
}

#checkout-personal-information-step .mapas-customer-privacy-fixed label,
#customer-form .mapas-customer-privacy-fixed label {
    display: block !important;
    position: static !important;
    float: none !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 6px 28px !important;
    padding: 0 !important;
    white-space: normal !important;
    overflow: visible !important;
    line-height: 1.4 !important;
}

#checkout-personal-information-step .mapas-customer-privacy-fixed p,
#customer-form .mapas-customer-privacy-fixed p,
#checkout-personal-information-step .mapas-customer-privacy-fixed em,
#customer-form .mapas-customer-privacy-fixed em,
#checkout-personal-information-step .mapas-customer-privacy-fixed small,
#customer-form .mapas-customer-privacy-fixed small,
#checkout-personal-information-step .mapas-customer-privacy-fixed span,
#customer-form .mapas-customer-privacy-fixed span,
#checkout-personal-information-step .mapas-customer-privacy-fixed .form-control-comment,
#customer-form .mapas-customer-privacy-fixed .form-control-comment {
    display: block !important;
    position: static !important;
    float: none !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 3px 0 0 28px !important;
    padding: 0 !important;
    white-space: normal !important;
    overflow: visible !important;
    line-height: 1.4 !important;
}
