/**
 * jana-beds24 — Checkout (page de demande)
 * Styles de base — à surcharger dans le thème.
 */

.jana-checkout {
    max-width: 640px;
    margin: 0 auto;
    font-family: inherit;
    color: #1a1a1a;
}

.jana-checkout_intro {
    color: #555;
    line-height: 1.6;
    margin-bottom: 32px;
}

/* ---------- RÉCAP ---------- */

.jana-booking-summary {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

/* Un bloc = un titre + sa/ses row(s). Le gap du recap dissocie les blocs. */
.jana-booking-summary_block {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Sous-détail des prix : rows resserrées sous le total */
.jana-booking-summary_details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-top: 0.25rem;
}

.jana-booking-summary_row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
}

.jana-booking-summary_property span {
}

/* Ligne du total : label à gauche, montant à droite */
.jana-booking-summary_total-row {
    align-items: baseline;
}

.jana-booking-summary_total {
    font-size: 1.3rem;
    font-weight: 600;
    white-space: nowrap;
}

.jana-booking-summary_row-muted {
    color: var(--color-gray-40, #999);
    font-style: italic;
}

/* ---------- FORMULAIRE ---------- */

.jana-checkout_form-wrap {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-top: 1px solid #e5e5e5;
    padding-top: 24px;
}

.jana-checkout_field {
    margin-bottom: 20px;
    flex: 1;
}

.jana-checkout_field-group {
    display: flex;
    gap: 20px;
}

.jana-checkout_field label {
    display: block;
    font-size: 14px;
    color: #1a1a1a;
    margin-bottom: 6px;
}

.jana-checkout_field input,
.jana-checkout_field textarea {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid #ccc;
    background: transparent;
    font-size: 15px;
    font-family: inherit;
    color: #1a1a1a;
    box-sizing: border-box;
    transition: border-color 0.15s ease;
}

.jana-checkout_field input:focus,
.jana-checkout_field textarea:focus {
    outline: none;
    border-bottom-color: #1a1a1a;
}

.jana-checkout_field textarea {
    resize: vertical;
}

.jana-checkout_btn {
    width: 100%;
    padding: 16px;
    margin-top: 12px;
    background: var(--color-link);
    color: #fff;
    border: none;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.jana-checkout_btn:hover {
    background: var(--color-link-hover);
}

/* ---------- MESSAGES ---------- */

.jana-checkout_success {
    padding: 16px;
    background: #eaf7ef;
    color: #1a7f37;
    border-radius: 6px;
}

.jana-checkout_error {
    padding: 16px;
    background: #fdf0ef;
    color: #b32d2e;
    border-radius: 6px;
}

@media (max-width: 600px) {
    .jana-checkout_field-group {
        flex-direction: column;
        gap: 0;
    }
}

/* ---------- ERREURS INLINE ---------- */

.jana-checkout_input-error {
    border-bottom-color: #b32d2e !important;
}

.jana-checkout_field-error {
    display: block;
    color: #b32d2e;
    font-size: 13px;
    margin-top: 4px;
    min-height: 16px;
}

/* ---------- CONFIRMATION ---------- */

.jana-confirmation_thanks {
    color: #444;
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* ---------- PHOTO DU LOGEMENT ---------- */

.jana-booking-summary_photo {
    width: 100%;
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    margin-bottom: 24px;
}
