/* =========================================================
   SANGIOLELE - CHECKOUT PREMIUM
========================================================= */

.sg-checkout-page {
    min-height: 100vh;
    background: #f6f2e9;
    color: #292824;
}

.sg-checkout-container {
    width: min(1600px, calc(100% - 64px));
    margin-inline: auto;
}

.sg-booking-checkout .mphb_sc_checkout-form {
    display: grid !important;
    grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.85fr);
    grid-template-areas:
        "customer booking"
        "customer price"
        "checkout-text price"
        "coupon price"
        "billing total"
        "terms total"
        "submit total";
    column-gap: 90px;
    row-gap: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
}

/* HERO */

.sg-checkout-hero {
    padding: 200px 0 55px;
    text-align: center;
}

.sg-checkout-eyebrow {
    display: block;
    margin-bottom: 12px;
    color: #9b8150;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.sg-checkout-hero h1 {
    padding-top: 80px;
	padding-bottom: 30px;
	margin: 0;
    color: #292824;
    font-size: clamp(44px, 5vw, 76px);
    font-weight: 300;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.sg-checkout-hero p {
    max-width: 700px;
    margin: 18px auto 0;
    color: #777168;
    font-size: 15px;
    line-height: 1.7;
}

.sg-checkout-section {
    padding: 20px 0 110px;
}

/* LOGIN */

.sg-booking-checkout .mphb-login-form-wrap,
.sg-booking-checkout > .mphb-errors-wrapper {
    max-width: 1500px;
    margin: 0 auto 32px;
	text-align: center;
}

/* =========================================================
   LAYOUT PRINCIPALE
========================================================= */

.sg-booking-checkout .mphb_sc_checkout-form {
    display: grid !important;
    grid-template-columns: minmax(0, 1.3fr) minmax(360px, 0.7fr);
    grid-template-areas:
        "customer booking"
        "customer price"
        "checkout-text price"
        "coupon price"
        "billing price"
        "terms total"
        "submit total";
    column-gap: 72px;
    row-gap: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
}

/* COLONNA SINISTRA*/

.sg-booking-checkout #mphb-customer-details {
    grid-area: customer;
}

.sg-booking-checkout .mphb-checkout-text-wrapper {
    grid-area: checkout-text;
}

.sg-booking-checkout #mphb-coupon-details {
    grid-area: coupon;
}

.sg-booking-checkout #mphb-billing-details {
    grid-area: billing;
	margin-top: 0;
    padding-top: 0;
}

.sg-booking-checkout .mphb-checkout-terms-wrapper {
    grid-area: terms;
}

.sg-booking-checkout .mphb_sc_checkout-submit-wrapper {
    grid-area: submit;
}


.sg-booking-checkout #mphb-booking-details {
    grid-area: booking;
}

.sg-booking-checkout #mphb-price-details {
    grid-area: price;
}

.sg-booking-checkout .mphb-total-price,
.sg-booking-checkout .mphb-deposit-amount {
    grid-area: total;
} 

/* Quando il deposito è presente, non sovrapporlo */
.sg-booking-checkout .mphb-deposit-amount {
    align-self: end;
    margin-top: 90px;
}

/* =========================================================
   SEZIONI SINISTRA
========================================================= */

.sg-booking-checkout .mphb-customer-details,
.sg-booking-checkout .mphb-billing-fields-wrapper,
.sg-booking-checkout .mphb-checkout-text-wrapper,
.sg-booking-checkout .mphb-coupon-code-wrapper,
.sg-booking-checkout .mphb-checkout-terms-wrapper {
    width: 100%;
    margin: 0 0 44px;
    padding: 0 0 38px;
    border: 0;
    border-bottom: 1px solid rgba(41, 40, 36, 0.16);
    background: transparent;
    box-shadow: none;
}

/* TITOLI */

.sg-booking-checkout h3,
.sg-booking-checkout h4 {
    margin: 0 0 28px;
    color: #292824;
    font-weight: 400;
    line-height: 1.25;
}

.sg-booking-checkout h3 {
    font-size: 17px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sg-booking-checkout h4 {
    font-size: 16px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* =========================================================
   DATI CLIENTE A DUE COLONNE
========================================================= */

.sg-booking-checkout .mphb-customer-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 30px;
    row-gap: 4px;
	margin-bottom: 28px;
    padding-bottom: 28px;
}

.sg-booking-checkout .mphb-customer-details > .mphb-customer-details-title,
.sg-booking-checkout .mphb-customer-details > .mphb-required-fields-tip,
.sg-booking-checkout .mphb-customer-details > .mphb-customer-email,
.sg-booking-checkout .mphb-customer-details > .mphb-customer-address1,
.sg-booking-checkout .mphb-customer-details > .mphb-customer-note,
.sg-booking-checkout .mphb-customer-details > .mphb-customer-create-account {
    grid-column: 1 / -1;
}

.sg-booking-checkout .mphb-customer-details p {
    margin: 0 0 24px;
}

/* CAMPI */

.sg-booking-checkout label {
    display: block;
    margin-bottom: 7px;
    color: #666057;
    font-size: 12px;
    line-height: 1.4;
}

.sg-booking-checkout input[type="text"],
.sg-booking-checkout input[type="email"],
.sg-booking-checkout input[type="tel"],
.sg-booking-checkout input[type="number"],
.sg-booking-checkout input[type="password"],
.sg-booking-checkout select,
.sg-booking-checkout textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 50px;
    padding: 12px 2px !important;
    border: 0 !important;
    border-bottom: 1px solid #aaa397 !important;
    border-radius: 0 !important;
    outline: none;
    background: transparent !important;
    color: #292824;
    box-shadow: none !important;
    font: inherit;
}

.sg-booking-checkout textarea {
    min-height: 120px;
    padding: 14px !important;
    border: 1px solid #bbb4a8 !important;
    resize: vertical;
}

.sg-booking-checkout input:focus,
.sg-booking-checkout select:focus,
.sg-booking-checkout textarea:focus {
    border-color: #9b8150 !important;
    box-shadow: none !important;
}

/* =========================================================
   RIEPILOGO DESTRA
========================================================= */

.sg-booking-checkout #mphb-booking-details,
.sg-booking-checkout #mphb-price-details {
    width: 100%;
    padding: 34px 38px;
    background: rgba(255, 255, 255, 0.58);
}

.sg-booking-checkout #mphb-booking-details {
    border: 1px solid rgba(155, 129, 80, 0.28);
    border-bottom: 0;
}

.sg-booking-checkout #mphb-price-details {
    position: static;
    border: 1px solid rgba(155, 129, 80, 0.28);
    border-top: 1px solid rgba(41, 40, 36, 0.12);
}

.sg-booking-checkout .mphb-booking-details-title,
.sg-booking-checkout .mphb-price-breakdown-title {
    font-size: 16px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.sg-booking-checkout .mphb-check-in-date,
.sg-booking-checkout .mphb-check-out-date {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.6;
}

.sg-booking-checkout .mphb-room-number {
    margin-top: 28px;
    font-size: 13px;
}

.sg-booking-checkout .mphb-room-type-title {
    margin: 12px 0 22px;
    font-size: 24px;
    line-height: 1.25;
}

.sg-booking-checkout .mphb-room-type-title a {
    color: #292824;
    text-decoration: none;
}

.sg-booking-checkout .mphb-room-details p {
    margin-bottom: 18px;
}
.sg-booking-checkout h3, .sg-booking-checkout h4 {
	display: none;
}
.mphb_checkout-services-list, .mphb_sc_checkout-services-list {
	display: none;
}

/* TABELLA PREZZI */

.sg-booking-checkout #mphb-price-details table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.sg-booking-checkout #mphb-price-details th,
.sg-booking-checkout #mphb-price-details td {
    padding: 11px 0;
    border-bottom: 1px solid rgba(41, 40, 36, 0.12);
    text-align: left;
    vertical-align: top;
}

.sg-booking-checkout #mphb-price-details td:last-child {
    text-align: right;
    white-space: nowrap;
}

/* TOTALE */

.sg-booking-checkout .mphb-total-price,
.sg-booking-checkout .mphb-deposit-amount {
    margin: 0;
    padding: 28px 38px;
    border: 1px solid rgba(155, 129, 80, 0.28);
    border-top: 0;
    background: #eee5d5;
}

.sg-booking-checkout .mphb-total-price output,
.sg-booking-checkout .mphb-deposit-amount output {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.sg-booking-checkout .mphb-total-price-field,
.sg-booking-checkout .mphb-deposit-amount-field {
    color: #8e7141;
    font-size: 27px;
    font-weight: 500;
}

/* =========================================================
   PAGAMENTO
========================================================= */

.sg-booking-checkout .mphb-gateway-title {
    margin-bottom: 10px;
    color: #292824;
    font-size: 15px;
}

.sg-booking-checkout .mphb-gateway-description {
    margin: 0 0 20px;
    color: #777168;
    font-size: 13px;
}

.sg-booking-checkout .mphb-billing-fields {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.sg-booking-checkout .mphb-stripe-payment-container,
.sg-booking-checkout .mphb-stripe-card-element {
    margin-top: 16px;
    padding: 16px;
    border: 1px solid #bbb4a8;
    background: #fff;
}

/* =========================================================
   CHECKBOX
========================================================= */

.sg-booking-checkout input[type="checkbox"],
.sg-booking-checkout input[type="radio"] {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 2px 10px 0 0;
    accent-color: #9b8150;
}

.sg-booking-checkout .mphb-terms-and-conditions-accept label,
.sg-booking-checkout .mphb-customer-create-account {
    display: flex;
    align-items: flex-start;
    line-height: 1.6;
}

.sg-booking-checkout a {
    color: #9b8150;
    text-underline-offset: 3px;
}

/* =========================================================
   PULSANTE
========================================================= */

.sg-booking-checkout .mphb_sc_checkout-submit-wrapper {
    margin: 0;
}

.sg-booking-checkout .mphb_sc_checkout-submit-wrapper input[type="submit"] {
    width: 100%;
    min-height: 58px;
    padding: 15px 28px !important;
    border: 1px solid #9b8150 !important;
    border-radius: 4px;
    background: #9b8150 !important;
    color: #fff !important;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.2s ease;
}

.sg-booking-checkout .mphb_sc_checkout-submit-wrapper input[type="submit"]:hover {
    background: transparent !important;
    color: #9b8150 !important;
	border-radius: 4px;
}

/* ERRORI */

.sg-booking-checkout .mphb-errors-wrapper,
.sg-booking-checkout .mphb-error {
    color: #a52820;
}

.sg-booking-checkout .mphb-errors-wrapper:not(.mphb-hide),
.sg-booking-checkout .mphb-error {
    margin-top: 10px;
    padding: 11px 13px;
    border-left: 3px solid #a52820;
    background: rgba(165, 40, 32, 0.06);
    font-size: 13px;
}

/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 1050px) {

    .sg-booking-checkout .mphb_sc_checkout-form {
        grid-template-columns: 1fr;
        grid-template-areas:
            "booking"
            "price"
            "customer"
            "checkout-text"
            "coupon"
            "billing"
            "total"
            "terms"
            "submit";
        gap: 0;
    }

    .sg-booking-checkout #mphb-price-details {
        position: static;
        margin-bottom: 48px;
    }

    .sg-booking-checkout .mphb-total-price,
    .sg-booking-checkout .mphb-deposit-amount {
        margin-bottom: 35px;
    }
}

@media (max-width: 700px) {

    .sg-checkout-container {
        width: min(100% - 32px, 650px);
    }

    .sg-checkout-hero {
        padding: 55px 0 35px;
    }

    .sg-checkout-hero h1 {
        font-size: 42px;
    }

    .sg-booking-checkout .mphb-customer-details {
        grid-template-columns: 1fr;
    }

    .sg-booking-checkout .mphb-customer-details > * {
        grid-column: 1 !important;
    }

    .sg-booking-checkout #mphb-booking-details,
    .sg-booking-checkout #mphb-price-details,
    .sg-booking-checkout .mphb-total-price,
    .sg-booking-checkout .mphb-deposit-amount {
        padding-left: 22px;
        padding-right: 22px;
    }
}

/* =========================================================
   STRUTTURA REALE A DUE COLONNE
========================================================= */

.sg-booking-checkout .mphb_sc_checkout-form {
    display: block !important;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    background: transparent;
}

.sg-checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(390px, 0.75fr);
    gap: 80px;
    align-items: start;
}

.sg-checkout-main,
.sg-checkout-sidebar {
    min-width: 0;
}

.sg-checkout-sidebar {
    position: sticky;
    top: 100px;
}

/* Il riepilogo diventa un unico pannello */

.sg-checkout-sidebar #mphb-booking-details,
.sg-checkout-sidebar #mphb-price-details,
.sg-checkout-sidebar .mphb-total-price,
.sg-checkout-sidebar .mphb-deposit-amount {
    position: static;
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    background: rgba(255, 255, 255, 0.58);
}

.sg-checkout-sidebar #mphb-booking-details {
    padding: 34px 36px 28px;
    border: 1px solid rgba(155, 129, 80, 0.28);
    border-bottom: 0;
}

.sg-checkout-sidebar #mphb-price-details {
    padding: 28px 36px;
    border: 1px solid rgba(155, 129, 80, 0.28);
    border-top: 1px solid rgba(41, 40, 36, 0.12);
}

.sg-checkout-sidebar .mphb-total-price,
.sg-checkout-sidebar .mphb-deposit-amount {
    padding: 26px 36px;
    border: 1px solid rgba(155, 129, 80, 0.28);
    border-top: 0;
    background: #eee5d5;
}

.sg-checkout-sidebar .mphb-total-price output,
.sg-checkout-sidebar .mphb-deposit-amount output {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.sg-checkout-sidebar .mphb-total-price-field,
.sg-checkout-sidebar .mphb-deposit-amount-field {
    color: #8e7141;
    font-size: 27px;
    font-weight: 500;
}

/* Bottone e sezioni principali */

.sg-checkout-main .mphb_sc_checkout-submit-wrapper {
    width: 100%;
    margin: 26px 0 0;
}

.sg-checkout-main .mphb_sc_checkout-submit-wrapper input {
    width: 100%;
}

/* Responsive */

@media (max-width: 1050px) {
    .sg-checkout-layout {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .sg-checkout-sidebar {
        position: static;
        grid-row: 1;
    }
}

@media (max-width: 700px) {
    .sg-checkout-layout {
        gap: 32px;
    }

    .sg-checkout-sidebar #mphb-booking-details,
    .sg-checkout-sidebar #mphb-price-details,
    .sg-checkout-sidebar .mphb-total-price,
    .sg-checkout-sidebar .mphb-deposit-amount {
        padding-left: 22px;
        padding-right: 22px;
    }
}

/* =========================================================
   CHECKOUT — RIEPILOGO PREMIUM
   ========================================================= */

.sg-summary-premium {
    margin: 18px 0 30px;
}

.sg-summary-photo {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    margin-bottom: 22px;
    border-radius: 18px;
    background: #eee8dc;
}

.sg-summary-photo::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;
    background:
        linear-gradient(
            180deg,
            transparent 55%,
            rgba(20, 17, 11, 0.18) 100%
        );
}

.sg-summary-photo img,
.sg-summary-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition:
        transform 700ms cubic-bezier(.2, .7, .2, 1);
}

.sg-summary-photo:hover img {
    transform: scale(1.035);
}

.sg-summary-heading {
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(110, 91, 54, 0.16);
}

.sg-summary-eyebrow {
    display: block;
    margin-bottom: 7px;
    color: #9a7b3f;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.sg-summary-title {
    margin: 0;
    font-size: clamp(24px, 2vw, 31px);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.025em;
}

.sg-summary-title a {
    color: inherit;
    text-decoration: none;
}

.sg-summary-primary-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 17px;
}

.sg-summary-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 34px;
    padding: 8px 12px;
    border: 1px solid rgba(120, 98, 57, 0.11);
    border-radius: 999px;
    background: #f7f3ea;
    color: #4f4739;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
}

.sg-summary-pill svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    fill: none;
    stroke: #a27e36;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* DATE */

.sg-summary-dates {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 24px 0;
    border-bottom: 1px solid rgba(110, 91, 54, 0.16);
}

.sg-summary-date-card {
    min-width: 0;
}

.sg-summary-date-label {
    display: block;
    margin-bottom: 11px;
    color: #8d7a57;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.sg-summary-date-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sg-summary-date-day {
    color: #3e382f;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 35px;
    font-weight: 400;
    line-height: 1;
}

.sg-summary-date-month,
.sg-summary-date-weekday,
.sg-summary-date-time {
    display: block;
}

.sg-summary-date-month {
    color: #39342c;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.25;
    text-transform: capitalize;
}

.sg-summary-date-weekday {
    margin-top: 3px;
    color: #8d8475;
    font-size: 11px;
    line-height: 1.25;
    text-transform: capitalize;
}

.sg-summary-date-time {
    margin-top: 11px;
    color: #7b7264;
    font-size: 10px;
    line-height: 1.4;
}

.sg-summary-date-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #a27e36;
}

.sg-summary-date-arrow svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* CARATTERISTICHE CAMERA */

.sg-summary-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    padding: 22px 0 4px;
}

.sg-summary-feature {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    min-width: 0;
}

.sg-summary-feature svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    margin-top: 1px;
    fill: none;
    stroke: #a27e36;
    stroke-width: 1.45;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sg-summary-feature span,
.sg-summary-feature strong {
    display: block;
}

.sg-summary-feature span {
    margin-bottom: 4px;
    color: #958b7a;
    font-size: 9px;
    line-height: 1.25;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sg-summary-feature strong {
    overflow-wrap: anywhere;
    color: #4a4338;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.35;
}


/*
 * Nascondiamo le vecchie date MotoPress perché ora sono già
 * presentate nel blocco premium.
 */
#mphb-booking-details > .mphb-check-in-date,
#mphb-booking-details > .mphb-check-out-date {
    display: none;
}


/* BLOCCO ALLOGGIO NATIVO MOTOPRESS */

#mphb-booking-details .mphb-reserve-rooms-details {
    margin-top: 25px;
    padding-top: 23px;
    border-top: 1px solid rgba(110, 91, 54, 0.16);
}

#mphb-booking-details .mphb-room-number {
    margin: 0 0 17px;
    color: #9a7b3f;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

#mphb-booking-details .mphb-room-type-title {
    margin-bottom: 18px;
}

#mphb-booking-details .mphb-room-type-title > span {
    display: block;
    margin-bottom: 6px;
    color: #958b7a;
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

#mphb-booking-details .mphb-room-type-title > a {
    color: #3f392f;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 20px;
    line-height: 1.25;
    text-decoration: none;
}

#mphb-booking-details .mphb-adults-chooser,
#mphb-booking-details .mphb-children-chooser,
#mphb-booking-details .mphb-guest-name-wrapper {
    margin: 17px 0 0;
}

#mphb-booking-details .mphb-adults-chooser label,
#mphb-booking-details .mphb-children-chooser label,
#mphb-booking-details .mphb-guest-name-wrapper label {
    color: #817765;
    font-size: 10px;
}

#mphb-booking-details select,
#mphb-booking-details input[type="text"] {
    width: 100%;
}


/* MOBILE */

@media (max-width: 767px) {

    .sg-summary-photo {
        border-radius: 14px;
    }

    .sg-summary-dates {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .sg-summary-date-arrow {
        display: none;
    }

    .sg-summary-date-card + .sg-summary-date-card {
        padding-top: 17px;
        border-top: 1px solid rgba(110, 91, 54, 0.13);
    }

    .sg-summary-features {
        grid-template-columns: minmax(0, 1fr);
        gap: 17px;
    }

    .sg-summary-title {
        font-size: 25px;
    }

}

/* =========================================================
   CHECKOUT — COLONNA SINISTRA PREMIUM
   ========================================================= */

#mphb-customer-details,
#mphb-billing-details,
.mphb-checkout-terms-wrapper,
.mphb_sc_checkout-submit-wrapper {
    position: relative;
}

#mphb-customer-details {
    padding-bottom: 34px;
    border-bottom: 1px solid rgba(110, 91, 54, 0.18);
}

#mphb-customer-details .mphb-customer-details-title,
#mphb-billing-details .mphb-gateway-chooser-title {
    margin: 0 0 28px;
    color: #3d372f;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

#mphb-customer-details .mphb-required-fields-tip {
    margin: -15px 0 25px;
    color: #8d8475;
    font-size: 10px;
}

#mphb-customer-details p {
    margin-top: 0;
}

#mphb-customer-details label {
    display: inline-block;
    margin-bottom: 10px;
    color: #7e7464;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.02em;
}

#mphb-customer-details input[type="text"],
#mphb-customer-details input[type="email"],
#mphb-customer-details input[type="tel"],
#mphb-customer-details select {
    width: 100%;
    height: 46px;
    padding: 7px 2px 10px;
    border: 0;
    border-bottom: 1px solid rgba(77, 67, 51, 0.55);
    border-radius: 0;
    outline: 0;
    background: transparent;
    color: #353028;
    font-size: 13px;
    box-shadow: none;
    transition:
        border-color 180ms ease,
        box-shadow 180ms ease;
}

#mphb-customer-details input:focus,
#mphb-customer-details select:focus,
#mphb-customer-details textarea:focus {
    border-color: #a27e36;
    box-shadow: 0 1px 0 #a27e36;
}

#mphb-customer-details textarea {
    width: 100%;
    min-height: 125px;
    padding: 14px;
    border: 1px solid rgba(77, 67, 51, 0.32);
    border-radius: 0;
    outline: 0;
    background: rgba(255, 255, 255, 0.18);
    color: #353028;
    font-size: 13px;
    resize: vertical;
    box-shadow: none;
}

#mphb-customer-details abbr {
    color: #9a7b3f;
    text-decoration: none;
}


/* PAGAMENTO */

#mphb-billing-details {
    margin-top: 34px;
    padding-top: 0;
}

#mphb-billing-details .mphb-gateways-list {
    display: grid;
    gap: 14px;
    margin: 0 0 22px;
    padding: 0;
    list-style: none;
}

#mphb-billing-details .mphb-gateway {
    position: relative;
    margin: 0;
    padding: 16px 18px;
    border: 1px solid rgba(110, 91, 54, 0.18);
    background: rgba(255, 255, 255, 0.22);
    transition:
        border-color 180ms ease,
        background 180ms ease,
        transform 180ms ease;
}

#mphb-billing-details .mphb-gateway:hover {
    border-color: rgba(162, 126, 54, 0.55);
    background: rgba(247, 243, 234, 0.8);
}

#mphb-billing-details .mphb-gateway:has(input:checked) {
    border-color: #a27e36;
    background: #f7f3ea;
}

#mphb-billing-details .mphb-gateway input[type="radio"] {
    position: absolute;
    top: 18px;
    left: 18px;
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: #a27e36;
}

#mphb-billing-details .mphb-gateway-title {
    display: block;
    padding-left: 28px;
    color: #39342c;
    cursor: pointer;
}

#mphb-billing-details .mphb-gateway-title strong {
    font-size: 12px;
    font-weight: 600;
}

#mphb-billing-details .mphb-gateway-description {
    margin: 8px 0 0;
    padding-left: 28px;
    color: #8a8172;
    font-size: 10px;
    line-height: 1.6;
}

#mphb-billing-details .mphb-billing-fields {
    margin-top: 18px;
    padding: 16px;
    border: 1px solid rgba(110, 91, 54, 0.22);
    background: rgba(255, 255, 255, 0.68);
}

#mphb-billing-details .mphb-billing-fields legend {
    color: #7e7464;
    font-size: 10px;
}

#mphb-billing-details iframe {
    max-width: 100%;
}


/* CARD ACCETTATE */

.sg-payment-trust {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 18px 0 0;
    padding: 14px 16px;
    border: 1px solid rgba(110, 91, 54, 0.15);
    background: rgba(247, 243, 234, 0.65);
}

.sg-payment-trust-copy {
    min-width: 0;
}

.sg-payment-trust-copy strong,
.sg-payment-trust-copy span {
    display: block;
}

.sg-payment-trust-copy strong {
    color: #4b4439;
    font-size: 11px;
    font-weight: 600;
}

.sg-payment-trust-copy span {
    margin-top: 3px;
    color: #8c8272;
    font-size: 9px;
    line-height: 1.45;
}

.sg-payment-cards {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.sg-payment-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 30px;
    padding: 5px 7px;
    border: 1px solid rgba(77, 67, 51, 0.14);
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(45, 38, 27, 0.04);
}

.sg-payment-card img {
    display: block;
    width: 100%;
    max-width: 36px;
    max-height: 19px;
    object-fit: contain;
}


/* PRIVACY E TERMINI */

.mphb-checkout-terms-wrapper {
    margin-top: 28px;
    padding: 18px 20px;
    border: 1px solid rgba(110, 91, 54, 0.16);
    background: rgba(247, 243, 234, 0.42);
}

.mphb-terms-and-conditions-accept {
    margin: 0;
}

.mphb-terms-and-conditions-accept label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #655d50;
    font-size: 10px;
    line-height: 1.6;
}

.mphb-terms-and-conditions-accept input {
    margin-top: 3px;
    accent-color: #a27e36;
}

.mphb-terms-and-conditions-link {
    color: #8f6c2d;
    text-decoration: underline;
    text-underline-offset: 2px;
}


/* PULSANTE FINALE */

.mphb_sc_checkout-submit-wrapper {
    margin: 28px 0 0;
}

.mphb_sc_checkout-submit-wrapper input[type="submit"] {
    width: 100%;
    min-height: 58px;
    padding: 16px 24px;
    border: 1px solid #8f6c2d;
    border-radius: 0;
    background: #9a7735;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        background 180ms ease,
        transform 180ms ease,
        box-shadow 180ms ease;
}

.mphb_sc_checkout-submit-wrapper input[type="submit"]:hover {
    background: #806124;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(91, 68, 28, 0.18);
}

.mphb_sc_checkout-submit-wrapper::after {
    display: block;
    margin-top: 12px;
    content: "Pagamento sicuro e dati protetti";
    color: #8c8272;
    font-size: 9px;
    letter-spacing: 0.04em;
    text-align: center;
}


/* MOBILE */

@media (max-width: 767px) {

    .sg-payment-trust {
        align-items: flex-start;
        flex-direction: column;
    }

    .sg-payment-cards {
        justify-content: flex-start;
    }

}

/* =========================================================
   CHECKOUT — FINALIZZAZIONE PAGAMENTO
   ========================================================= */


/* STRIPE */

#mphb-billing-details .mphb-billing-fields {
    position: relative;
    margin-top: 22px;
    padding: 30px 28px;
    border: 1px solid rgba(106, 89, 57, 0.20);
    background: rgba(255, 255, 255, 0.55);
    box-shadow: none;
}

#mphb-billing-details .mphb-billing-fields::before {
    display: block;
    margin-bottom: 18px;
    content: "Inserisci i dati della carta";
    color: #4a4338;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.03em;
}

#mphb-billing-details .mphb-billing-fields legend {
    display: none;
}

#mphb-billing-details .mphb-billing-fields > div,
#mphb-billing-details .mphb-billing-fields iframe {
    width: 100%;
}

#mphb-billing-details .mphb-billing-fields-hidden {
    display: none;
}


/* BOX PAGAMENTO SICURO */

.sg-payment-trust {
    position: relative;
    min-height: 76px;
    margin-top: 18px;
    padding: 18px 18px 18px 22px;
    border: 1px solid rgba(110, 91, 54, 0.16);
    border-left: 3px solid #a27e36;
    background: rgba(247, 243, 234, 0.68);
}

.sg-payment-trust-copy {
    position: relative;
    padding-left: 35px;
}

.sg-payment-lock {
    position: absolute;
    top: 0;
    left: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: rgba(162, 126, 54, 0.10);
    color: #9a7735;
}

.sg-payment-lock svg {
    width: 25px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.sg-payment-trust-copy strong {
    color: #463f35;
    font-size: 11px;
    font-weight: 600;
}

.sg-payment-trust-copy span:not(.sg-payment-lock) {
    max-width: 420px;
    margin-top: 5px;
    color: #827867;
    font-size: 9px;
    line-height: 1.55;
}

.sg-payment-card {
    min-width: 43px;
    height: 28px;
    border-color: rgba(77, 67, 51, 0.16);
    background: #fff;
    color: #403a32;
    box-shadow: 0 2px 5px rgba(45, 38, 27, 0.04);
}


/* TERMINI E CONDIZIONI */

.mphb-checkout-terms-wrapper {
    position: relative;
    margin-top: 36px;
    padding: 23px 24px;
    border: 1px solid rgba(110, 91, 54, 0.20);
    background: rgba(255, 255, 255, 0.25);
}

.mphb-checkout-terms-wrapper::before {
    display: block;
    margin-bottom: 17px;
    content: "Consensi obbligatori";
    color: #4b4439;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.mphb-terms-and-conditions-accept {
    margin: 0;
}

.mphb-terms-and-conditions-accept label {
    position: relative;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    gap: 13px;
    color: #625a4d;
    font-size: 10px;
    line-height: 1.7;
    cursor: pointer;
}

.mphb-terms-and-conditions-accept input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    border: 1px solid #9b8e78;
    border-radius: 0;
    accent-color: #9a7735;
    cursor: pointer;
}

.mphb-terms-and-conditions-link {
    color: #8f6c2d;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.mphb-checkout-terms-wrapper abbr {
    color: #9a7735;
    text-decoration: none;
}


/* PULSANTE CONFERMA E PAGA */

.mphb_sc_checkout-submit-wrapper {
    margin: 24px 0 0;
}

.mphb_sc_checkout-submit-wrapper input[type="submit"] {
    position: relative;
    width: 100%;
    min-height: 66px;
    padding: 18px 26px;
    border: 1px solid #806125;
    background:
        linear-gradient(
            135deg,
            #a4803a 0%,
            #8c6929 100%
        );
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    box-shadow:
        0 12px 28px rgba(95, 70, 26, 0.16);
    cursor: pointer;
    appearance: none;
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        background 180ms ease;
}

.mphb_sc_checkout-submit-wrapper input[type="submit"]:hover {
    background:
        linear-gradient(
            135deg,
            #94702d 0%,
            #77581f 100%
        );
    transform: translateY(-2px);
    box-shadow:
        0 16px 34px rgba(95, 70, 26, 0.24);
}

.mphb_sc_checkout-submit-wrapper input[type="submit"]:active {
    transform: translateY(0);
}

.mphb_sc_checkout-submit-wrapper input[type="submit"]:focus-visible {
    outline: 2px solid #a27e36;
    outline-offset: 4px;
}

.mphb_sc_checkout-submit-wrapper input[type="submit"]:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}


/* Nasconde il vecchio testo generato con ::after */
.mphb_sc_checkout-submit-wrapper::after {
    display: none;
}

.sg-submit-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 13px;
    color: #827868;
    font-size: 9px;
    line-height: 1.4;
    letter-spacing: 0.025em;
    text-align: center;
}

.sg-submit-security-icon {
    display: inline-flex;
    color: #9a7735;
}

.sg-submit-security-icon svg {
    width: 13px;
    height: 13px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ERRORI CHECKOUT */

.mphb-errors-wrapper:not(.mphb-hide) {
    margin: 16px 0;
    padding: 13px 16px;
    border: 1px solid rgba(154, 58, 48, 0.25);
    border-left: 3px solid #9a3a30;
    background: rgba(154, 58, 48, 0.06);
    color: #7f3028;
    font-size: 10px;
    line-height: 1.6;
}


/* RESPONSIVE */

@media (max-width: 767px) {

    #mphb-billing-details .mphb-billing-fields {
        padding: 22px 18px;
    }

    .sg-payment-trust {
        padding: 18px;
    }

    .sg-payment-trust-copy {
        padding-left: 34px;
    }

    .sg-payment-cards {
        width: 100%;
        margin-top: 5px;
    }

    .mphb-checkout-terms-wrapper {
        padding: 20px 18px;
    }

    .mphb_sc_checkout-submit-wrapper input[type="submit"] {
        min-height: 61px;
        padding: 16px 18px;
        font-size: 11px;
        letter-spacing: 0.09em;
    }

}

/* =========================================================
   CHECKOUT — ULTIME RIFINITURE
   ========================================================= */

/* Avvicina consensi e pulsante */
.mphb-checkout-terms-wrapper {
    margin-bottom: 22px;
}

.mphb_sc_checkout-submit-wrapper {
    margin-top: 18px;
}

/* Consensi più leggibili */
.mphb-checkout-terms-wrapper {
    padding: 22px 24px;
}

.mphb-terms-and-conditions-accept label {
    align-items: center;
    font-size: 11px;
}

.mphb-terms-and-conditions-accept input[type="checkbox"] {
    width: 19px;
    height: 19px;
}

/* Campo Stripe più compatto */
#mphb-billing-details .mphb-billing-fields {
    padding: 26px;
}

/* Box sicurezza più compatto */
.sg-payment-trust {
    min-height: 68px;
    padding-top: 15px;
    padding-bottom: 15px;
}

/* Pulsante finale leggermente più elegante */
.mphb_sc_checkout-submit-wrapper input[type="submit"] {
    min-height: 62px;
    letter-spacing: 0.14em;
}

/* Elimina margini eccessivi generati dal plugin */
.mphb-checkout-terms-wrapper + .mphb_sc_checkout-submit-wrapper {
    padding-top: 0;
}

/* Responsive */
@media (max-width: 767px) {
    .mphb-checkout-terms-wrapper {
        margin-bottom: 18px;
        padding: 19px 17px;
    }

    .mphb_sc_checkout-submit-wrapper {
        margin-top: 16px;
    }

    #mphb-billing-details .mphb-billing-fields {
        padding: 20px 16px;
    }
}

/* Due consensi separati */

.mphb-checkout-terms-wrapper {
    display: grid;
    gap: 14px;
}

.sg-privacy-consent-row,
.mphb-terms-and-conditions-accept {
    margin: 0;
}

.sg-privacy-consent-row label,
.mphb-terms-and-conditions-accept label {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    gap: 13px;
    color: #625a4d;
    font-size: 10px;
    line-height: 1.7;
    cursor: pointer;
}

.sg-privacy-consent-row input[type="checkbox"],
.mphb-terms-and-conditions-accept input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    accent-color: #9a7735;
    cursor: pointer;
}

.sg-privacy-consent-row a,
.mphb-terms-and-conditions-accept a {
    color: #8f6c2d;
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.sg-privacy-consent-row abbr,
.mphb-terms-and-conditions-accept abbr {
    margin-left: 3px;
    color: #9a7735;
    text-decoration: none;
}
