/*======= REVISION DEL CARRITO CLIENTCORE =======*/

/* Tarjeta de productos dentro del checkout */
.cc-checkout-page .cc-checkout-cart-review {
    background: var(--neutral-white);
    border: 1px solid var(--brand-border);
    border-radius: 15px;
    overflow: hidden;
    margin: 0 0 22px;

    width: 100% !important;
}

/* Cabecera */
.cc-checkout-page .cc-cart-review-header {
    padding: 15px 18px;
    border-bottom: 1px solid var(--brand-border);
}

.cc-checkout-page .cc-cart-review-header h2 {
    margin: 0;
    font-family: "Plus Jakarta Sans", sans-serif;
    color: var(--brand-dark);
    font-size: 17px;
    font-weight: 700;
}

.cc-checkout-page .cc-cart-review-header > span {
    display: block;
    color: var(--brand-muted-3);
    font-size: 12px;
    margin-top: 4px;
}

/* Productos y precios */
.cc-checkout-page .cc-cart-review-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content;
    gap: 16px;
    align-items: start;
    padding: 15px 18px;
    border-bottom: 1px solid var(--brand-border);
}

.cc-checkout-page .cc-cart-review-line:last-child {
    border-bottom: 0;
}

.cc-checkout-page .cc-cart-review-info {
    min-width: 0;
}

.cc-checkout-page .cc-cart-review-name {
    color: var(--brand-ink);
    font-weight: 600;
    font-size: 13px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.cc-checkout-page .cc-cart-review-detail {
    color: var(--brand-muted-2);
    font-size: 12px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.cc-checkout-page .cc-cart-review-edit {
    display: inline-block;
    color: var(--brand-primary-650);
    font-size: 12px;
    margin-top: 5px;
    text-decoration: none;
}

.cc-checkout-page .cc-cart-review-edit:hover {
    color: var(--brand-primary);
    text-decoration: underline;
}

/* Eliminar un complemento dentro del mismo checkout */
.cc-checkout-page .cc-addon-remove-form {
    display: block;
    margin: 5px 0 0;
    padding: 0;
}

.cc-checkout-page .cc-cart-review-remove {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--state-danger);
    font-family: Inter, sans-serif;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    text-align: left;
}

.cc-checkout-page .cc-cart-review-remove:hover {
    color: var(--state-danger-dark);
    text-decoration: underline;
}

.cc-checkout-page .cc-cart-review-remove:focus-visible {
    outline: 2px solid var(--brand-primary-650);
    outline-offset: 3px;
    border-radius: 2px;
}

.cc-checkout-page .cc-cart-review-amount {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    text-align: right;
    white-space: nowrap;
}

.cc-checkout-page .cc-cart-review-amount strong {
    font-size: 15px;
    color: var(--brand-primary);
    font-weight: 700;
}

.cc-checkout-page .cc-cart-review-amount > span {
    color: var(--brand-muted-2);
    font-size: 12px;
}

.cc-checkout-page .cc-cart-review-empty {
    padding: 20px;
    font-size: 13px;
    color: var(--brand-muted-2);
}

/* Diseño móvil */
@media (max-width: 575px) {
    .cc-checkout-page .cc-cart-review-line {
        gap: 10px;
        padding: 13px;
    }

    .cc-checkout-page .cc-cart-review-header {
        padding: 13px;
    }

    .cc-checkout-page .cc-cart-review-amount strong {
        font-size: 13px;
    }
}

/* Acciones nativas del carrito */
.cc-checkout-page .cc-cart-review-remove {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 5px;
}

.cc-checkout-page .cc-cart-review-remove:disabled {
    opacity: .6;
    cursor: wait;
}

.cc-checkout-page .cc-cart-review-domain-years {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin: 8px 0 3px;
    font-family: Inter, sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: var(--brand-primary);
}

.cc-checkout-page .cc-cart-review-domain-period {
    height: 34px;
    min-width: 95px;
    padding: 5px 25px 5px 9px;
    border: 1px solid var(--brand-border-6);
    border-radius: 8px;
    background: var(--brand-tint);
    color: var(--brand-dark);
    font: inherit;
    cursor: pointer;
}

.cc-checkout-page .cc-cart-review-domain-period:focus-visible {
    outline: 2px solid var(--brand-primary-650);
    outline-offset: 2px;
}

.cc-checkout-page .cc-cart-review-domain-period:disabled {
    opacity: .65;
    cursor: wait;
}

.cc-checkout-page .cc-cart-action-error {
    margin: 0 0 12px;
    font-size: 13px;
}

/*======= V5 · CONFIRMACIÓN EN LÍNEA Y ACTUALIZACIÓN SIN RECARGA =======*/

.cc-checkout-page .cc-remove-confirm {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 8px 10px;
    border: 1px solid var(--state-danger-border);
    border-radius: 9px;
    background: var(--state-danger-bg);
    font-family: Inter, sans-serif;
    font-size: 12px;
    color: var(--state-danger-ink);
}

.cc-checkout-page .cc-remove-confirm > span {
    flex: 1 1 100%;
    font-weight: 500;
}

.cc-checkout-page .cc-remove-yes,
.cc-checkout-page .cc-remove-no {
    padding: 5px 12px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1.4;
}

.cc-checkout-page .cc-remove-yes {
    border: 1px solid var(--state-danger);
    background: var(--state-danger);
    color: var(--neutral-white);
}

.cc-checkout-page .cc-remove-yes:hover { background: var(--state-danger-dark); border-color: var(--state-danger-dark); }

.cc-checkout-page .cc-remove-no {
    border: 1px solid var(--brand-border-6);
    background: var(--neutral-white);
    color: var(--brand-dark);
}

.cc-checkout-page .cc-remove-yes:focus-visible,
.cc-checkout-page .cc-remove-no:focus-visible {
    outline: 2px solid var(--brand-primary-650);
    outline-offset: 2px;
}

.cc-checkout-page .cc-remove-yes:disabled,
.cc-checkout-page .cc-remove-no:disabled {
    opacity: .6;
    cursor: wait;
}

/* Línea que se está quitando */
.cc-checkout-page .cc-cart-review-addon.is-removing {
    opacity: .45;
    transition: opacity .2s ease;
    pointer-events: none;
}

/* Cuadro "Tu pedido" mientras se recalcula */
.cc-checkout-page.cc-cart-busy .cc-checkout-summary-card {
    opacity: .7;
    transition: opacity .2s ease;
}

.cc-checkout-page .cc-cart-action-msg {
    margin: 0 0 12px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 13px;
}

/* V34 · "+IVA" junto a cada precio, mismo formato que los ciclos de los planes */
.cc-checkout-page .cc-cart-review-amount strong .cc-cart-review-tax {
    margin-left: 4px;
    color: var(--brand-muted);
    font-family: var(--cc-font-body, 'Inter', sans-serif);
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
}

/* V75: la lista de años usa el estilo global de listas (flecha de la plantilla) */
.cc-checkout-page .cc-cart-review-domain-period { min-width: 120px; }

/*======= V99 · OPCIONES ELEGIDAS DEL PLAN =======*/
.cc-checkout-page .cc-cart-review-options {
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    font-size: 12px;
    line-height: 1.55;
    color: var(--brand-muted-2);
    overflow-wrap: anywhere;
}

.cc-checkout-page .cc-cart-review-options span { color: var(--brand-dark-2); font-weight: 500; }
#order-standard_cart.cc-checkout-page .cc-cart-review-options li,
.cc-checkout-page .cc-cart-review-options li { font-size: 12px; line-height: 1.55; margin: 0; }

/* V100 · "+IVA" en opciones con precio */
#order-standard_cart.cc-checkout-page .cc-cart-review-options .cc-opt-tax { font-size: 11px; font-weight: 500; opacity: .85; }
