/**
 * WPilot Checkout Deposits — tienda: precio completo tachado con la etiqueta «Depósito», caja de
 * la ficha, nota de cada línea del carrito y fila «Resto pendiente». Hereda colores y tipografía
 * del tema; solo marca jerarquía.
 */

.wpcd-price del {
    opacity: 0.6;
}

.wpcd-price ins {
    font-weight: 600;
    text-decoration: none;
}

.wpcd-badge {
    display: inline-block;
    margin-left: 0.35em;
    padding: 0.1em 0.6em;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.1);
    color: #1d4fd8;
    font-size: 0.75em;
    font-weight: 600;
    line-height: 1.6;
    vertical-align: middle;
}

.wpcd-box {
    margin: 0 0 1em;
    padding: 0.9em 1.1em;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.02);
}

.wpcd-box [hidden] {
    display: none !important;
}

.wpcd-box__title {
    margin: 0 0 0.35em;
    font-weight: 600;
}

.wpcd-box__notice {
    margin: 0;
    font-size: 0.9em;
}

.wpcd-box__rows {
    display: grid;
    gap: 0.25em;
    margin: 0;
}

.wpcd-box__row {
    display: flex;
    justify-content: space-between;
    gap: 1em;
}

.wpcd-box__row dt,
.wpcd-box__row dd {
    margin: 0;
}

.wpcd-box__row:first-child dd {
    font-weight: 600;
}

.wpcd-item-note {
    display: block;
    margin-top: 0.25em;
    font-size: 0.85em;
    opacity: 0.8;
}

.wpcd-remaining-row th,
.wpcd-remaining-row td {
    font-weight: normal;
}

/* Pagos exprés de la ficha (Stripe, WooPayments, PayPal, Redsys): arman su propio total, así que
   en productos con depósito no se muestran. Respaldo de los filtros de ExpressPayments y de
   RedsysButtons (marcado de WooCommerce Redsys Gateway 32.2.1: Apple Pay / Google Pay exprés y
   compra en 1 clic). */
body.wpcd-has-deposit #wc-stripe-payment-request-wrapper,
body.wpcd-has-deposit #wc-stripe-payment-request-button-separator,
body.wpcd-has-deposit #wc-stripe-express-checkout-element,
body.wpcd-has-deposit #wc-stripe-express-checkout-button-separator,
body.wpcd-has-deposit #wcpay-payment-request-wrapper,
body.wpcd-has-deposit #wcpay-payment-request-button-separator,
body.wpcd-has-deposit #wcpay-express-checkout-element,
body.wpcd-has-deposit #wcpay-express-checkout-button-separator,
body.wpcd-has-deposit #wcpay-woopay-button,
body.wpcd-has-deposit .wcpay-express-checkout-wrapper,
body.wpcd-has-deposit #ppc-button-ppcp-gateway,
body.wpcd-has-deposit #ppc-button-applepay-container,
body.wpcd-has-deposit #ppc-button-googlepay-container,
body.wpcd-has-deposit .ppc-button-wrapper,
body.wpcd-has-deposit #redsys-express-pay-container,
body.wpcd-has-deposit #redsys-express-inline-fields,
body.wpcd-has-deposit #one-click-buy-button,
body.wpcd-has-deposit .redsys-one-click-variation-notice {
    display: none !important;
}

/*
 * Caja de totales del formulario de reserva de YITH: «Total» con el completo tachado y, debajo, con
 * las clases de YITH (su mismo diseño), «Pagas hoy el depósito» destacado y «Resto pendiente».
 * --wpcd-accent: Ajustes › «Color destacado» o el color de acento del tema.
 */
.yith-wcbk-booking-form-total--total-price .wpcd-price del {
    opacity: 0.7;
}

.wpcd-yith-split__now {
    align-items: baseline;
    color: var(--wpcd-accent, inherit);
    font-weight: 700;
}

.wpcd-yith-split__now .yith-wcbk-booking-form-total__value {
    font-size: 1.35em;
    line-height: 1.2;
}

.wpcd-yith-split__remaining {
    opacity: 0.85;
}
