/*======= CHECKOUT CLIENTCORE =======*/

/* Distribucion del formulario y resumen */
.cc-checkout-page .cc-checkout-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(290px, 34%);
    gap: 24px;
    align-items: start;
    margin-top: 20px;
}

.cc-checkout-page .cc-checkout-main {
    min-width: 0;
}

.cc-checkout-page .cc-checkout-summary {
    min-width: 0;
    position: sticky;
    top: 24px;
}

.cc-checkout-page .cc-checkout-summary-card {
    background: var(--brand-primary);
    border-radius: 18px;
    padding: 26px;
    color: var(--neutral-white);
    box-shadow: 0 12px 30px rgba(var(--brand-dark-rgb), .10);
}

.cc-checkout-page .cc-checkout-summary-title {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: 23px;
    font-weight: 750;
    color: var(--neutral-white);
}

.cc-checkout-page .cc-checkout-summary-description {
    color: var(--brand-soft-4);
    font-size: 13px;
    line-height: 1.6;
    margin: 10px 0 14px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(var(--neutral-white-rgb), .22);
}

.cc-checkout-page .cc-checkout-summary-divider {
    height: 1px;
    background: rgba(var(--neutral-white-rgb), .22);
    margin: 22px 0;
}

.cc-checkout-page .cc-checkout-summary-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--brand-soft-3);
}

.cc-checkout-page .cc-checkout-summary-total {
    font-family: "Plus Jakarta Sans", sans-serif;
    font-size: clamp(28px, 3vw, 36px);
    font-weight: 800;
    line-height: 1.3;
    margin: 6px 0;
    color: var(--neutral-white);
    overflow-wrap: anywhere;
}

.cc-checkout-page .cc-checkout-summary-tax {
    color: var(--brand-soft-4);
    font-size: 12px;
    line-height: 1.5;
}

.cc-checkout-page .cc-checkout-review-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--neutral-white);
    text-decoration: underline;
    font-size: 13px;
    font-weight: 600;
    margin-top: 15px;
}

.cc-checkout-page .cc-checkout-review-link:hover,
.cc-checkout-page .cc-checkout-review-link:focus {
    color: var(--brand-accent);
}

/* Ancho del formulario original */
.cc-checkout-page .cc-checkout-main #frmCheckout {
    width: 100%;
    min-width: 0;
}

@media (max-width: 991px) {
    .cc-checkout-page .cc-checkout-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .cc-checkout-page .cc-checkout-summary {
        position: static;
    }
}

@media (max-width: 575px) {
    .cc-checkout-page .cc-checkout-layout {
        gap: 18px;
    }

    .cc-checkout-page .cc-checkout-summary-card {
        padding: 21px;
    }
}

/* CC_CHECKOUT_BREAKDOWN_CSS_V1 */

/* Conceptos del pedido */
.cc-checkout-page .cc-checkout-breakdown {
    margin: 19px 0;
}

.cc-checkout-page .cc-checkout-breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin: 12px 0;
    color: var(--neutral-white);
    font-size: 13px;
    line-height: 1.5;
}

.cc-checkout-page .cc-checkout-breakdown-item > :last-child {
    flex-shrink: 0;
    text-align: right;
}

.cc-checkout-page .cc-checkout-breakdown-detail {
    font-size: 12px;
    color: var(--brand-soft-4);
    margin-top: -8px;
    margin-bottom: 10px;
    overflow-wrap: anywhere;
}

.cc-checkout-page .cc-checkout-addon {
    padding-left: 12px;
    color: var(--brand-soft-3);
}

.cc-checkout-page .cc-checkout-subtotal {
    border-top: 1px solid rgba(var(--neutral-white-rgb), .2);
    padding-top: 16px;
}


/* Ajuste visual del desglose ClientCore */
.cc-checkout-page .cc-checkout-summary-card .cc-checkout-breakdown {
    display: block;
    margin: 20px 0;
}

.cc-checkout-page .cc-checkout-summary-card .cc-checkout-breakdown-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin: 12px 0;
    font-size: 13px;
    line-height: 1.55;
    color: var(--neutral-white);
}

.cc-checkout-page .cc-checkout-summary-card .cc-checkout-breakdown-item > :first-child {
    min-width: 0;
    flex: 1 1 auto;
    overflow-wrap: anywhere;
}

.cc-checkout-page .cc-checkout-summary-card .cc-checkout-breakdown-item > :last-child {
    flex: 0 0 auto;
    text-align: right;
    font-weight: 650;
    white-space: nowrap;
}

.cc-checkout-page .cc-checkout-summary-card .cc-checkout-breakdown-detail {
    display: block;
    margin: -7px 0 10px;
    font-size: 12px;
    line-height: 1.5;
    color: var(--brand-soft-4);
    overflow-wrap: anywhere;
}

.cc-checkout-page .cc-checkout-summary-card .cc-checkout-addon {
    padding-left: 12px;
}

.cc-checkout-page .cc-checkout-summary-card .cc-checkout-subtotal {
    border-top: 1px solid rgba(var(--neutral-white-rgb), .22);
    padding-top: 12px;
    margin-bottom: 0;
}

@media (max-width: 400px) {
    .cc-checkout-page .cc-checkout-summary-card .cc-checkout-breakdown-item {
        gap: 8px;
        font-size: 12px;
    }
}

/* Compactar subtotal e impuestos */
.cc-checkout-page .cc-checkout-summary-card .cc-checkout-subtotal ~ .cc-checkout-breakdown-item {
    margin-top: 3px;
    margin-bottom: 5px;
}

/* CC_SUMMARY_COMPACT_V2_START */

/* Compactar encabezado del resumen */
.cc-checkout-page .cc-checkout-summary-card {
    padding-top: 22px;
    padding-bottom: 22px;
}

.cc-checkout-page .cc-checkout-summary-description {
    margin: 4px 0 9px;
    padding-bottom: 10px;
    line-height: 1.4;
}

/* Reducir separaciones y conservar divisores */
.cc-checkout-page .cc-checkout-summary-divider {
    margin: 12px 0;
}

.cc-checkout-page .cc-checkout-summary-card .cc-order-section {
    margin: 7px 0;
    gap: 2px;
}

.cc-checkout-page .cc-checkout-summary-card .cc-checkout-subtotal {
    padding-top: 9px;
    margin-top: 8px;
    margin-bottom: 0;
}

.cc-checkout-page .cc-checkout-summary-card .cc-checkout-subtotal ~ .cc-checkout-breakdown-item {
    margin-top: 2px;
    margin-bottom: 2px;
}

/* Acercar total a su separador */
.cc-checkout-page .cc-checkout-summary-total {
    margin: 3px 0 5px;
}

.cc-checkout-page .cc-checkout-summary-label {
    margin: 0;
}

/* CC_SUMMARY_COMPACT_V2_END */
