/*
Theme Name: Hello Elementor Child
Template: hello-elementor
Version: 1.0.4
*/

/* ============================================
   CUSTOM CHECKOUT - VARIABLES
   ============================================ */
   :root {
    --cc-primary: #0E496F;
    --cc-primary-dark: #0B3753;
    --cc-yellow: #f5d547;
    --cc-yellow-dark: #e5c537;
	--cc-red: #CC0511;
    --cc-border: #0E496F;
    --cc-border-active: #0E496F;
    --cc-bg-light: #f8f8f8;
    --cc-text: #0E496F;
    --cc-text-muted: #0E496F;
    --cc-text-light: #999999;
    --cc-radius: 12px;
    --cc-radius-sm: 8px;
}

/* ============================================
   RESET ELEMENTOR - SOLO DENTRO DEL FORM
   ============================================ */

/* Hacer transparentes los contenedores de Elementor SOLO dentro del form */
form.custom-checkout .e-checkout__container,
form.custom-checkout .e-checkout__column,
form.custom-checkout .e-checkout__column-start,
form.custom-checkout .e-checkout__column-end,
form.custom-checkout .e-checkout__column-inner,
form.custom-checkout .e-checkout__order_review,
form.custom-checkout .e-checkout__order_review-2,
form.custom-checkout .e-coupon,
form.custom-checkout .e-coupon-box {
    display: none !important;
}

form.custom-checkout #customer_details {
    display: none !important;
}

/* ============================================
   LAYOUT PRINCIPAL - FORZADO CON SELECTORES ESPECÍFICOS
   ============================================ */
form.custom-checkout {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
}

form.custom-checkout .cc-wrap {
    display: grid !important;
    grid-template-columns: 1fr 380px !important;
    gap: 40px !important;
    align-items: start !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 40px 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

form.custom-checkout .cc-left {
    display: flex !important;
    flex-direction: column !important;
    gap: 24px !important;
    grid-column: 1 / 2 !important;
    grid-row: 1 / 2 !important;
    min-width: 0 !important;
    width: 100% !important;
}

/* ============================================
   SIDEBAR DERECHO - FORZADO
   ============================================ */
form.custom-checkout .cc-right {
    display: flex !important;
    flex-direction: column !important;
    gap: 20px !important;
    grid-column: 2 / 3 !important;
    grid-row: 1 / 2 !important;
    position: sticky !important;
    top: 100px !important;
    min-width: 0 !important;
    width: 100% !important;
}

.custom-checkout .cc-pay-top {
    order: 1;
}

.custom-checkout .cc-order {
    order: 2;
    background: var(--cc-bg-light);
    border-radius: var(--cc-radius);
    padding: 24px;
}

.custom-checkout .cc-order-title {
    margin: 0 0 16px 0;
    font-size: 20px;
    font-weight: 700;
    color: var(--cc-text);
}

/* Botón Pagar personalizado */
.custom-checkout .cc-btn-pagar {
    width: 100%;
    background: var(--cc-red) !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--cc-radius) !important;
    padding: 18px 32px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: background 0.2s ease;
    text-transform: none !important;
}

.custom-checkout .cc-btn-pagar:hover {
    background: var(--cc-primary-dark) !important;
}

/* ============================================
   LÍNEA DE ENVÍO EN RESUMEN DEL PEDIDO
   ============================================ */

/* Estilos base para la fila de envío */
.custom-checkout .woocommerce-checkout-review-order-table tr.shipping td,
.custom-checkout .woocommerce-checkout-review-order-table tr.cart-shipping td {
    text-align: right !important;
}

/* Lista de métodos de envío - solo estilos, NO ocultar */
.custom-checkout .woocommerce-checkout-review-order-table .shipping td ul,
.custom-checkout .woocommerce-checkout-review-order-table .cart-shipping td ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ocultar radio buttons */
.custom-checkout .woocommerce-checkout-review-order-table .shipping td input[type="radio"],
.custom-checkout .woocommerce-checkout-review-order-table .cart-shipping td input[type="radio"] {
    display: none !important;
}

/* En resumen: solo precio (la etiqueta "Envío" ya está en th) */
.custom-checkout .woocommerce-checkout-review-order-table .shipping td label,
.custom-checkout .woocommerce-checkout-review-order-table .cart-shipping td label,
.custom-checkout .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals td label {
    display: inline-block !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: default !important;
    font-size: 0 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.custom-checkout .woocommerce-checkout-review-order-table .shipping td label .woocommerce-Price-amount,
.custom-checkout .woocommerce-checkout-review-order-table .cart-shipping td label .woocommerce-Price-amount,
.custom-checkout .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals td label .woocommerce-Price-amount {
    font-size: 14px !important;
    font-weight: 400;
    color: var(--cc-text);
}

.custom-checkout .woocommerce-checkout-review-order-table .shipping td label:not(:has(.woocommerce-Price-amount)),
.custom-checkout .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals td label:not(:has(.woocommerce-Price-amount)) {
    font-size: 14px !important;
}

/* Items de envío: mostrados por defecto, JavaScript controlará visibilidad */
.custom-checkout .woocommerce-checkout-review-order-table .shipping td li,
.custom-checkout .woocommerce-checkout-review-order-table .cart-shipping td li {
    margin: 0 !important;
    padding: 0 !important;
}

/* Clase para items ocultos (agregada por JavaScript) */
.custom-checkout .woocommerce-checkout-review-order-table .shipping td li.cc-hidden,
.custom-checkout .woocommerce-checkout-review-order-table .cart-shipping td li.cc-hidden {
    display: none !important;
}

/* ============================================
   ESTADOS: PICKUP (ocultar fila) vs DELIVERY (mostrar)
   ============================================ */

/* Cuando es PICKUP: ocultar la fila de envío completamente */
form.custom-checkout.is-pickup .woocommerce-checkout-review-order-table tr.shipping,
form.custom-checkout.is-pickup .woocommerce-checkout-review-order-table tr.cart-shipping {
    display: none !important;
}

/* Cuando es DELIVERY: misma fila flex que subtotal/total */
form.custom-checkout.is-delivery .woocommerce-checkout-review-order-table tr.shipping,
form.custom-checkout.is-delivery .woocommerce-checkout-review-order-table tr.cart-shipping,
form.custom-checkout.is-delivery .woocommerce-checkout-review-order-table tr.woocommerce-shipping-totals {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

/* ============================================
   TIPO DE ENTREGA - TOGGLE
   ============================================ */
.custom-checkout .cc-delivery {
    margin-bottom: 8px;
}

.custom-checkout .cc-section-title {
    margin: 0 0 16px 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--cc-text);
}

.custom-checkout .cc-toggle {
    display: flex;
    gap: 16px;
}

.custom-checkout .cc-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    border: 2px solid var(--cc-border);
    border-radius: var(--cc-radius);
    background: #fff;
    cursor: pointer;
    min-width: 200px;
    transition: all 0.2s ease;
}

.custom-checkout .cc-option:hover {
    border-color: #bbb;
}

.custom-checkout .cc-option.active {
    border-color: var(--cc-border-active);
    background: #fff;
}

.custom-checkout .cc-option-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--cc-primary);
}

.custom-checkout .cc-option-icon svg {
    width: 24px;
    height: 24px;
}

.custom-checkout .cc-option-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--cc-text);
    flex: 1;
}

.custom-checkout .cc-option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--cc-primary);
    cursor: pointer;
    margin: 0;
}

/* ============================================
   SECCIONES DEL FORMULARIO
   ============================================ */
.custom-checkout .cc-section {
    background: #fff;
}

.custom-checkout .cc-step-title {
    margin: 0 0 6px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--cc-text);
}

.custom-checkout .cc-step-num {
    color: var(--cc-text);
}

.custom-checkout .cc-step-desc {
    margin: 0 0 16px 0;
    font-size: 13px;
    color: var(--cc-text-muted);
}

/* ============================================
   CAMPOS DE FORMULARIO
   ============================================ */
.custom-checkout .cc-field-wrap {
    margin-bottom: 12px;
}

.custom-checkout .cc-input,
.custom-checkout .cc-select {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--cc-border);
    border-radius: var(--cc-radius-sm);
    font-size: 14px;
    color: var(--cc-text);
    background: #fff;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.custom-checkout .cc-input:focus,
.custom-checkout .cc-select:focus {
    outline: none;
    border-color: var(--cc-primary);
}

.custom-checkout .cc-input::placeholder {
    color: var(--cc-text-light);
}

.custom-checkout .cc-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
    cursor: pointer;
}

/* Labels */
.custom-checkout .cc-field label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--cc-text);
}

.custom-checkout .cc-field label abbr.required {
    color: #e74c3c;
    text-decoration: none;
}

/* Filas de campos */
.custom-checkout .cc-fields-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.custom-checkout .cc-fields-row-3 {
    grid-template-columns: 1fr 1fr 1fr;
}

.custom-checkout .cc-field-full {
    margin-bottom: 16px;
}

/* ============================================
   SECCIÓN FACTURA / BOLETA
   ============================================ */
.custom-checkout .cc-invoice-card {
    border: 1px solid var(--cc-border);
    border-radius: var(--cc-radius);
    padding: 20px;
    background: #fff;
}

.custom-checkout .cc-invoice-toggle {
    display: flex;
    gap: 24px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--cc-border);
}

.custom-checkout .cc-invoice-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--cc-text);
}

.custom-checkout .cc-invoice-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--cc-primary);
    cursor: pointer;
    margin: 0;
}

.custom-checkout .cc-invoice-fields .cc-field {
    margin-bottom: 16px;
}

.custom-checkout .cc-btn-confirm {
    width: 100%;
    max-width: 200px;
    padding: 12px 24px;
    background: var(--cc-red);
    color: #fff;
    border: none;
    border-radius: var(--cc-radius-sm);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
    margin-top: 8px;
}

.custom-checkout .cc-btn-confirm:hover {
    background: var(--cc-primary-dark);
}

/* ============================================
   MÉTODOS DE PAGO - WOOCOMMERCE NATIVO
   ============================================ */
.custom-checkout .cc-payment-section {
    margin-top: 8px;
}

.custom-checkout .cc-payment-section > .cc-step-title {
    margin-bottom: 16px;
    font-size: 18px;
    font-weight: 700;
    color: var(--cc-primary);
}

.custom-checkout .cc-payment-section .woocommerce-privacy-policy-text {
    display: none;
}

.custom-checkout .cc-payment-section #payment {
    background: transparent !important;
    padding: 0 !important;
    border: none !important;
}

.custom-checkout .cc-payment-section #payment .wc_payment_methods {
    display: flex !important;
    flex-direction: column;
    gap: 14px;
    padding: 0;
    margin: 0;
    list-style: none;
    border: none;
    background: transparent;
}

.custom-checkout .cc-payment-section #payment .wc_payment_method {
    display: flex;
    flex-direction: column;
    padding: 18px 20px;
    border: 1px solid rgba(14, 73, 111, 0.18);
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    margin: 0;
    box-shadow: none;
}

.custom-checkout .cc-payment-section #payment .wc_payment_method:hover {
    border-color: rgba(14, 73, 111, 0.35);
}

.custom-checkout .cc-payment-section #payment .wc_payment_method.active,
.custom-checkout .cc-payment-section #payment .wc_payment_method:has(input:checked) {
    border: 2px solid var(--cc-primary);
    background: #fff;
    box-shadow: 0 0 0 1px rgba(14, 73, 111, 0.04);
}

.custom-checkout .cc-payment-section #payment .wc_payment_method label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    cursor: pointer;
    margin: 0;
    padding: 0;
}

.custom-checkout .cc-payment-section #payment .cc-payment-label-text {
    flex: 1 1 auto;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--cc-primary);
}

.custom-checkout .cc-payment-section #payment .cc-payment-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-shrink: 0;
    min-height: 32px;
}

.custom-checkout .cc-payment-section #payment .cc-payment-icon svg,
.custom-checkout .cc-payment-section #payment .cc-payment-icon-img {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.custom-checkout .cc-payment-section #payment .cc-payment-brands {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    max-width: 220px;
}

.custom-checkout .cc-payment-section #payment .cc-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 2px 7px;
    border-radius: 4px;
    background: #f3f6f8;
    color: #0E496F;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.custom-checkout .cc-payment-section #payment .cc-brand--visa {
    background: #1a1f71;
    color: #fff;
}

.custom-checkout .cc-payment-section #payment .cc-brand--mc {
    background: #eb001b;
    color: #fff;
}

.custom-checkout .cc-payment-section #payment .cc-brand--amex {
    background: #006fcf;
    color: #fff;
}

.custom-checkout .cc-payment-section #payment .cc-brand--pp {
    background: #003087;
    color: #fff;
}

.custom-checkout .cc-payment-section #payment .cc-payment-logo {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.custom-checkout .cc-payment-section #payment .cc-payment-logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #f5c400;
    color: #0E496F;
    font-size: 14px;
    font-weight: 800;
}

.custom-checkout .cc-payment-section #payment .cc-payment-logo-text {
    font-size: 13px;
    font-weight: 700;
    color: #0E496F;
}

.custom-checkout .cc-payment-section #payment .cc-payment-plugin-icon img {
    display: block;
    max-height: 28px;
    width: auto;
}

.custom-checkout .cc-payment-section #payment .wc_payment_method label > img {
    display: none;
}

.custom-checkout .cc-payment-section #payment .wc_payment_method input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.custom-checkout .cc-payment-section #payment .wc_payment_method .payment_box {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(14, 73, 111, 0.12);
    font-size: 13px;
    color: var(--cc-text-muted);
    line-height: 1.5;
}

.custom-checkout .cc-payment-section #payment .wc_payment_method .payment_box p {
    margin: 0;
}

.custom-checkout .cc-payment-section #payment .place-order {
    display: block;
    margin: 18px 0 0;
    padding: 0;
}

.custom-checkout .cc-payment-section #payment .place-order #place_order,
.custom-checkout .cc-payment-section #payment .place-order .button {
    display: none !important;
}

/* ============================================
   TÉRMINOS Y CONDICIONES - WOOCOMMERCE
   ============================================ */
.custom-checkout .cc-payment-section .woocommerce-terms-and-conditions-wrapper {
    margin-top: 0;
}

.custom-checkout .cc-payment-section .woocommerce-terms-and-conditions-wrapper .form-row {
    margin: 0;
    padding: 0;
}

.custom-checkout .cc-payment-section .woocommerce-terms-and-conditions-wrapper .woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: var(--cc-primary);
    line-height: 1.45;
}

.custom-checkout .cc-payment-section .woocommerce-terms-and-conditions-wrapper input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid var(--cc-primary);
    border-radius: 4px;
    background: #fff;
    cursor: pointer;
    margin: 2px 0 0;
    flex-shrink: 0;
}

.custom-checkout .cc-payment-section .woocommerce-terms-and-conditions-wrapper input[type="checkbox"]:checked {
    background: var(--cc-primary);
    box-shadow: inset 0 0 0 2px #fff;
}

.custom-checkout .cc-payment-section .woocommerce-terms-and-conditions-wrapper .required {
    display: none;
}

.custom-checkout .cc-payment-section .woocommerce-terms-and-conditions-wrapper a {
    color: var(--cc-primary);
    text-decoration: underline;
}

/* ============================================
   AVISO DE CUENTA (email section)
   ============================================ */
.custom-checkout .cc-account-notice {
    background: #B4C7D2;
    border-radius: var(--cc-radius-sm);
    padding: 14px 20px;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    color: #0E496F;
}

/* ============================================
   LISTA DE TIENDAS (RETIRO)
   ============================================ */
.custom-checkout .cc-stores-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.custom-checkout .cc-store-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border: 2px solid var(--cc-border);
    border-radius: var(--cc-radius);
    background: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
}

.custom-checkout .cc-store-option:has(input:checked) {
    border-color: var(--cc-border-active);
}

.custom-checkout .cc-store-info {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.custom-checkout .cc-store-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--cc-primary);
    border-radius: 8px;
    color: #fff;
    flex-shrink: 0;
}

.custom-checkout .cc-store-details {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.custom-checkout .cc-store-details strong {
    font-size: 15px;
    font-weight: 600;
    color: var(--cc-text);
}

.custom-checkout .cc-store-address {
    font-size: 13px;
    color: var(--cc-text-muted);
}

.custom-checkout .cc-store-hours {
    font-size: 12px;
    color: var(--cc-primary);
    font-weight: 500;
}

.custom-checkout .cc-store-option input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: var(--cc-primary);
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

/* ============================================
   RADIO OPTIONS (QUIEN RETIRA)
   ============================================ */
.custom-checkout .cc-radio-group {
    display: flex;
    gap: 24px;
    margin-bottom: 12px;
}

.custom-checkout .cc-radio-option {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--cc-text);
}

.custom-checkout .cc-radio-option input[type="radio"] {
    width: 18px;
    height: 18px;
    accent-color: var(--cc-primary);
    cursor: pointer;
    margin: 0;
}

.custom-checkout .cc-notice {
    margin: 0;
    font-size: 13px;
    color: var(--cc-text-muted);
}

/* ============================================
   ORDER REVIEW - PRODUCTOS
   ============================================ */
.custom-checkout .woocommerce-checkout-review-order-table {
    width: 100%;
    border: none;
    margin: 0;
    border-collapse: collapse;
}

.custom-checkout .woocommerce-checkout-review-order-table thead {
    display: none;
}

.custom-checkout .woocommerce-checkout-review-order-table tbody tr.cart_item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--cc-border);
}

.custom-checkout .woocommerce-checkout-review-order-table td {
    padding: 0;
    border: none;
}

.custom-checkout .woocommerce-checkout-review-order-table .product-name {
    flex: 1;
    font-size: 14px;
    color: var(--cc-text);
}

.custom-checkout .woocommerce-checkout-review-order-table .product-total {
    flex: 0 0 auto;
    min-width: 72px;
    font-size: 15px;
    font-weight: 600;
    color: var(--cc-text);
    text-align: right;
    white-space: nowrap;
}

/* Totales */
.custom-checkout .woocommerce-checkout-review-order-table tfoot tr {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 8px 0;
}

.custom-checkout .woocommerce-checkout-review-order-table tfoot tr:first-child {
    border-top: 1px solid var(--cc-border);
    padding-top: 16px;
    margin-top: 4px;
}

.custom-checkout .woocommerce-checkout-review-order-table tfoot tr.order-total {
    border-top: 2px solid var(--cc-border);
    padding-top: 16px;
    margin-top: 8px;
}

.custom-checkout .woocommerce-checkout-review-order-table tfoot th,
.custom-checkout .woocommerce-checkout-review-order-table tfoot td {
    padding: 0;
    border: none;
    font-size: 14px;
    font-weight: 400;
    background: transparent;
}

.custom-checkout .woocommerce-checkout-review-order-table tfoot th {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}

.custom-checkout .woocommerce-checkout-review-order-table tfoot td {
    flex: 0 0 auto;
    min-width: 72px;
    text-align: right;
}

.custom-checkout .woocommerce-checkout-review-order-table tfoot tr.shipping td,
.custom-checkout .woocommerce-checkout-review-order-table tfoot tr.woocommerce-shipping-totals td {
    width: auto;
}

.custom-checkout .woocommerce-checkout-review-order-table tfoot tr.shipping td ul,
.custom-checkout .woocommerce-checkout-review-order-table tfoot tr.woocommerce-shipping-totals td ul {
    display: block;
    text-align: right;
}

.custom-checkout .woocommerce-checkout-review-order-table tfoot tr.order-total th,
.custom-checkout .woocommerce-checkout-review-order-table tfoot tr.order-total td {
    font-size: 18px;
    font-weight: 700;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 980px) {
    form.custom-checkout .cc-wrap {
        grid-template-columns: 1fr !important;
        padding: 20px 16px !important;
    }

    form.custom-checkout .cc-left {
        grid-column: 1 / 2 !important;
        grid-row: 2 / 3 !important;
    }

    form.custom-checkout .cc-right {
        grid-column: 1 / 2 !important;
        grid-row: 1 / 2 !important;
        position: static !important;
    }

    .custom-checkout .cc-toggle {
        flex-direction: column;
    }

    .custom-checkout .cc-option {
        min-width: 100%;
    }

    .custom-checkout .cc-fields-row,
    .custom-checkout .cc-fields-row-3 {
        grid-template-columns: 1fr;
    }

    .custom-checkout .cc-radio-group {
        flex-direction: column;
        gap: 12px;
    }

    .custom-checkout .cc-invoice-toggle {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .custom-checkout .cc-section-title {
        font-size: 18px;
    }

    .custom-checkout .cc-option {
        padding: 12px 16px;
    }

    .custom-checkout .cc-store-info {
        flex-direction: column;
        gap: 8px;
    }

    .custom-checkout .cc-payment-section #payment .wc_payment_method label {
        gap: 12px;
    }

    .custom-checkout .cc-payment-section #payment .cc-payment-brands {
        max-width: 100%;
        justify-content: flex-start;
    }
}










/* ============================================
   newsletter
   ============================================ */
.newsletter-form p {
    display: flex;
    gap: 40px;
    align-items: center;
}

.newsletter-form p {
    margin: 0;
}

.newsletter-form input[type="email"] {
    width: 450px;
    background: transparent;
    border: none;
    border-bottom: 2px solid #fff;
    color: #fff;
    font-size: 20px;
    padding: 15px 0;
    outline: none;
}

.newsletter-form input[type="email"]::placeholder {
    color: #fff;
    opacity: 1;
}

.newsletter-form input[type="submit"] {
    background: #e30613;
    color: #fff;
    border: none;
    border-radius: 12px;
    padding: 13px 80px;
    font-size: 25px;
    cursor: pointer;
    transition: .3s;
}

.newsletter-form input[type="submit"]:hover {
    opacity: .9;
}

@media (max-width: 768px) {
    .newsletter-form {
        flex-direction: column;
        gap: 20px;
    }

    .newsletter-form input[type="email"] {
        width: 100%;
    }

    .newsletter-form input[type="submit"] {
        width: 100%;
        padding: 16px;
    }
}


.breadcrumb-separator {
    margin: 0 8px;
    color: #0E496F;
}
.breadcrumb-separator svg{
    width: 12px;
    color: #0E496F;
}

/* ============================================
   ELEMENTOR MENU CART — LAYOUT PERSONALIZADO
   ============================================ */

.elementor-menu-cart__main {
    display: flex;
    flex-direction: column;
}

.elementor-menu-cart__main .widget_shopping_cart_content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    height: 100%;
}

.cc-menu-cart-inner {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    height: 100%;
}

.cc-menu-cart-title {
    margin: 0;
    padding: 20px 48px 16px 20px;
    font-size: 1.125rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--cc-primary, #0E496F);
    border-bottom: 1px solid rgba(14, 73, 111, 0.12);
    flex-shrink: 0;
}

.elementor-menu-cart__main .elementor-menu-cart__products {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    margin-top: 0 !important;
}

.cc-menu-cart-footer {
    margin-top: auto;
    flex-shrink: 0;
    padding: 16px 20px 20px;
    border-top: 1px solid rgba(14, 73, 111, 0.12);
    background: #fff;
}

.cc-menu-cart-footer .elementor-menu-cart__subtotal {
    margin: 0 0 14px;
    padding: 0;
    border: 0;
}

.cc-menu-cart-footer .elementor-menu-cart__footer-buttons {
    margin: 0;
}

body.izar-compare-bar-visible .elementor-menu-cart--shown .elementor-menu-cart__main {
    padding-bottom: var(--izar-compare-bar-height, 120px) !important;
}

.elementor-menu-cart__main .woocommerce-mini-cart__empty-message {
    flex: 1;
    padding: 24px 20px;
}

/* ============================================
   ORDER RECEIVED — PÁGINA COMPLETA
   ============================================ */
.cc-order-received-page .woocommerce-order {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 20px 56px;
    color: var(--cc-text);
}

/* Aviso superior — ancho completo */
.cc-order-received-page .cc-thankyou-reminder-wrap {
    width: 99.5vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-bottom: 40px;
}

.cc-order-received-page .cc-thankyou-reminder {
    width: 100%;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 72px 32px;
    background: linear-gradient(180deg, #eef4f8 0%, var(--cc-bg-light) 100%);
    border-top: 1px solid rgba(14, 73, 111, 0.08);
    border-bottom: 1px solid rgba(14, 73, 111, 0.08);
    color: var(--cc-text);
}

.cc-order-received-page .cc-thankyou-reminder__inner {
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
}

.cc-order-received-page .cc-thankyou-reminder__title {
    margin: 0 0 20px;
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 700;
    line-height: 1.1;
    color: var(--cc-primary);
}

.cc-order-received-page .cc-thankyou-reminder__text {
    max-width: 680px;
    margin: 0 auto 32px;
    font-size: clamp(16px, 2.2vw, 18px);
    line-height: 1.7;
    color: var(--cc-text-muted);
}

.cc-order-received-page .cc-thankyou-reminder__whatsapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 14px 28px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid rgba(14, 73, 111, 0.12);
    box-shadow: 0 8px 24px rgba(14, 73, 111, 0.08);
    color: var(--cc-primary);
    text-decoration: none;
    font-size: clamp(22px, 3vw, 34px);
    font-weight: 700;
    line-height: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.cc-order-received-page .cc-thankyou-reminder__whatsapp:hover {
    color: var(--cc-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(14, 73, 111, 0.12);
}

.cc-order-received-page .cc-thankyou-reminder__whatsapp-icon {
    display: inline-flex;
    flex-shrink: 0;
    color: #25d366;
}

/* Mensaje de éxito */
.cc-order-received-page .woocommerce-thankyou-order-received {
    margin: 0 0 20px;
    padding: 20px 24px;
    border: 1px solid rgba(14, 73, 111, 0.12);
    border-radius: var(--cc-radius);
    background: #fff;
    color: var(--cc-primary);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    box-shadow: 0 4px 16px rgba(14, 73, 111, 0.06);
}

/* Resumen del pedido (número, fecha, total…) */
.cc-order-received-page .woocommerce-order-overview,
.cc-order-received-page ul.order_details {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    list-style: none;
    margin: 0 0 40px;
    padding: 0;
    width: 100%;
    clear: both;
    overflow: hidden;
}

/* WooCommerce añade clearfix con ::before/::after — rompen el grid */
.cc-order-received-page .woocommerce-order-overview::before,
.cc-order-received-page .woocommerce-order-overview::after,
.cc-order-received-page ul.order_details::before,
.cc-order-received-page ul.order_details::after {
    display: none !important;
    content: none !important;
}

.cc-order-received-page .woocommerce-order-overview li,
.cc-order-received-page ul.order_details li {
    float: none !important;
    width: auto !important;
    min-width: 0;
    margin: 0 !important;
    padding: 20px 22px !important;
    border: 1px solid rgba(14, 73, 111, 0.12) !important;
    border-right: 1px solid rgba(14, 73, 111, 0.12) !important;
    border-radius: var(--cc-radius-sm);
    background: #fff;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--cc-text-muted);
    box-shadow: 0 2px 8px rgba(14, 73, 111, 0.04);
}

.cc-order-received-page .woocommerce-order-overview li strong,
.cc-order-received-page ul.order_details li strong {
    display: block;
    margin-top: 8px;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0;
    text-transform: none;
    color: var(--cc-primary);
    overflow-wrap: anywhere;
    word-break: break-word;
}

/* Correo largo: ocupa toda la fila */
.cc-order-received-page .woocommerce-order-overview li.email,
.cc-order-received-page ul.order_details li.email {
    grid-column: 1 / -1;
}

.cc-order-received-page .woocommerce-order-overview li.email strong,
.cc-order-received-page ul.order_details li.email strong {
    font-size: 16px;
}

@media (min-width: 900px) {
    .cc-order-received-page .woocommerce-order-overview,
    .cc-order-received-page ul.order_details {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 16px;
    }

    .cc-order-received-page .woocommerce-order-overview li.order,
    .cc-order-received-page .woocommerce-order-overview li.date,
    .cc-order-received-page ul.order_details li.order,
    .cc-order-received-page ul.order_details li.date {
        grid-column: span 2;
    }

    .cc-order-received-page .woocommerce-order-overview li.email,
    .cc-order-received-page ul.order_details li.email {
        grid-column: span 2;
    }

    .cc-order-received-page .woocommerce-order-overview li.total,
    .cc-order-received-page .woocommerce-order-overview li.method,
    .cc-order-received-page ul.order_details li.total,
    .cc-order-received-page ul.order_details li.method {
        grid-column: span 3;
    }
}

.cc-order-received-page .woocommerce-customer-details {
    margin-bottom: 32px;
    padding: 28px;
    background: #fff;
    border: 1px solid rgba(14, 73, 111, 0.12);
    border-radius: var(--cc-radius);
}

.cc-order-received-page .woocommerce-order-details {
    margin-bottom: 32px;
    padding: 28px;
    background: #fff;
    border: 1px solid rgba(14, 73, 111, 0.12);
    border-radius: var(--cc-radius);
}

.cc-order-received-page .woocommerce-order-details__title,
.cc-order-received-page .woocommerce-column__title {
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(14, 73, 111, 0.1);
    font-size: 22px;
    font-weight: 700;
    color: var(--cc-primary);
}

.cc-order-received-page .woocommerce-table--order-details {
    width: 100%;
    border: none;
    border-collapse: collapse;
    margin: 0;
}

.cc-order-received-page .woocommerce-table--order-details thead th {
    padding: 12px 0;
    border-bottom: 1px solid rgba(14, 73, 111, 0.12);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--cc-text-muted);
    background: transparent;
}

.cc-order-received-page .woocommerce-table--order-details tbody td,
.cc-order-received-page .woocommerce-table--order-details tbody th {
    padding: 16px 0;
    border-bottom: 1px solid rgba(14, 73, 111, 0.08);
    vertical-align: top;
    background: transparent;
}

.cc-order-received-page .woocommerce-table--order-details tfoot th,
.cc-order-received-page .woocommerce-table--order-details tfoot td {
    padding: 10px 0;
    border: none;
    background: transparent;
    font-size: 14px;
}

.cc-order-received-page .woocommerce-table--order-details tfoot tr:last-child th,
.cc-order-received-page .woocommerce-table--order-details tfoot tr:last-child td {
    padding-top: 16px;
    border-top: 2px solid rgba(14, 73, 111, 0.12);
    font-size: 18px;
    font-weight: 700;
    color: var(--cc-primary);
}

.cc-order-received-page .woocommerce-table--order-details .product-name {
    font-weight: 500;
    color: var(--cc-text);
}

.cc-order-received-page .woocommerce-table--order-details .product-total,
.cc-order-received-page .woocommerce-table--order-details td {
    text-align: right;
    white-space: nowrap;
}

.cc-order-received-page .woocommerce-customer-details address {
    font-style: normal;
    line-height: 1.7;
    color: var(--cc-text);
    margin: 0;
    padding: 18px 20px;
    background: var(--cc-bg-light);
    border: 1px solid rgba(14, 73, 111, 0.08);
    border-radius: var(--cc-radius-sm);
}

.cc-order-received-page .woocommerce-customer-details .woocommerce-customer-details--phone,
.cc-order-received-page .woocommerce-customer-details .woocommerce-customer-details--email {
    margin: 8px 0 0;
    color: var(--cc-text-muted);
}

/* Direcciones — reset floats de WooCommerce col2-set */
.cc-order-received-page .woocommerce-columns--addresses,
.cc-order-received-page .col2-set.addresses {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    clear: both;
}

.cc-order-received-page .woocommerce-columns--addresses::before,
.cc-order-received-page .woocommerce-columns--addresses::after,
.cc-order-received-page .col2-set.addresses::before,
.cc-order-received-page .col2-set.addresses::after {
    display: none !important;
    content: none !important;
}

.cc-order-received-page .woocommerce-columns--addresses .col-1,
.cc-order-received-page .woocommerce-columns--addresses .col-2,
.cc-order-received-page .woocommerce-column,
.cc-order-received-page .col2-set.addresses .col-1,
.cc-order-received-page .col2-set.addresses .col-2 {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    clear: none !important;
}

/* Solo facturación (sin envío) */
.cc-order-received-page .woocommerce-customer-details > .woocommerce-column__title {
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(14, 73, 111, 0.1);
    font-size: 22px;
    font-weight: 700;
    color: var(--cc-primary);
}

/* Productos sugeridos */
.cc-order-received-page .cc-thankyou-suggested {
    margin-top: 16px;
    padding-top: 40px;
    border-top: 1px solid rgba(14, 73, 111, 0.12);
}

.cc-order-received-page .cc-thankyou-suggested__title {
    margin: 0 0 28px;
    text-align: center;
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 700;
    color: var(--cc-primary);
}

.cc-order-received-page .cc-thankyou-suggested__grid {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
    width: 100%;
}

.cc-order-received-page .cc-thankyou-suggested__grid::before,
.cc-order-received-page .cc-thankyou-suggested__grid::after {
    display: none !important;
    content: none !important;
}

.cc-order-received-page .cc-suggested-product {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin: 0 !important;
    padding: 16px;
    background: #fff;
    border: 1px solid rgba(14, 73, 111, 0.12);
    border-radius: var(--cc-radius-sm);
    box-shadow: 0 2px 10px rgba(14, 73, 111, 0.05);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.cc-order-received-page .cc-suggested-product:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(14, 73, 111, 0.1);
}

.cc-order-received-page .cc-suggested-product__link {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 12px;
    min-width: 0;
    text-decoration: none;
    color: inherit;
    margin-bottom: 20px;
}

.cc-order-received-page .cc-suggested-product__image {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: var(--cc-radius-sm);
}

.cc-order-received-page .cc-suggested-product__image img,
.cc-order-received-page .cc-suggested-product__img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cc-order-received-page .cc-suggested-product__name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
    min-height: 3.9em;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    color: var(--cc-primary);
}

.cc-order-received-page .cc-suggested-product__price {
    font-size: 15px;
    font-weight: 700;
    color: var(--cc-primary);
}

.cc-order-received-page .cc-suggested-product__price del {
    opacity: 0.55;
    font-weight: 400;
    font-size: 13px;
}

.cc-order-received-page .cc-suggested-product__price ins {
    text-decoration: none;
}

.cc-order-received-page .cc-suggested-product__btn {
    display: block;
    width: 100%;
    margin-top: 14px;
    padding: 12px 16px !important;
    border: none !important;
    border-radius: var(--cc-radius-sm) !important;
    background: var(--cc-primary) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    text-align: center;
    text-decoration: none;
    white-space: normal;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cc-order-received-page .cc-suggested-product__btn:hover {
    background: var(--cc-primary-dark) !important;
    color: #fff !important;
}

.cc-order-received-page .cc-suggested-product__compare {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
}

.cc-order-received-page .cc-suggested-product__compare .izar-compare-button,
.cc-order-received-page .cc-suggested-product__compare .izar-compare-checkbox {
    margin: 0;
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.2;
    border-radius: var(--cc-radius-sm);
}

.cc-order-received-page .cc-suggested-product__compare .izar-compare-button svg,
.cc-order-received-page .cc-suggested-product__compare .izar-compare-checkbox svg {
    width: 14px;
    height: 14px;
}

.cc-order-received-page .cc-suggested-product__badge {
    position: absolute;
    top: 10px;
    right: 10px;
    left: auto;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    padding: 0;
    border-radius: 50%;
    background: #ff0000;
    color: #fff;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    box-shadow: 0 4px 10px rgba(255, 0, 0, 0.35);
}

.cc-order-received-page .cc-suggested-product__badge-value {
    font-size: 10px;
    letter-spacing: -0.02em;
}

.cc-order-received-page .cc-suggested-product__badge-label {
    margin-top: 2px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@media (max-width: 1024px) {
    .cc-order-received-page .cc-thankyou-suggested__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .cc-order-received-page .woocommerce-order {
        padding-bottom: 40px;
    }

    .cc-order-received-page .cc-thankyou-reminder-wrap {
        margin-bottom: 28px;
    }

    .cc-order-received-page .cc-thankyou-reminder {
        min-height: 260px;
        padding: 48px 20px;
    }

    .cc-order-received-page .cc-thankyou-reminder__whatsapp {
        width: 100%;
        max-width: 340px;
        padding: 14px 20px;
        font-size: 22px;
    }

    .cc-order-received-page .woocommerce-order-overview,
    .cc-order-received-page ul.order_details {
        grid-template-columns: 1fr !important;
        gap: 12px;
        margin-bottom: 28px;
    }

    .cc-order-received-page .woocommerce-order-overview li.email,
    .cc-order-received-page ul.order_details li.email,
    .cc-order-received-page .woocommerce-order-overview li.order,
    .cc-order-received-page .woocommerce-order-overview li.date,
    .cc-order-received-page .woocommerce-order-overview li.total,
    .cc-order-received-page .woocommerce-order-overview li.method,
    .cc-order-received-page ul.order_details li.order,
    .cc-order-received-page ul.order_details li.date,
    .cc-order-received-page ul.order_details li.total,
    .cc-order-received-page ul.order_details li.method {
        grid-column: auto !important;
    }

    .cc-order-received-page .woocommerce-order-details,
    .cc-order-received-page .woocommerce-customer-details {
        padding: 20px 16px;
    }

    .cc-order-received-page .woocommerce-table--order-details thead {
        display: none;
    }

    .cc-order-received-page .woocommerce-table--order-details tbody tr {
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 14px 0;
        border-bottom: 1px solid rgba(14, 73, 111, 0.08);
    }

    .cc-order-received-page .woocommerce-table--order-details tbody td,
    .cc-order-received-page .woocommerce-table--order-details tbody th {
        display: block;
        width: 100%;
        padding: 0;
        border: none;
        text-align: left;
    }

    .cc-order-received-page .woocommerce-table--order-details .product-total {
        text-align: left;
        font-weight: 700;
        color: var(--cc-primary);
    }

    .cc-order-received-page .woocommerce-columns--addresses,
    .cc-order-received-page .col2-set.addresses {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cc-order-received-page .cc-thankyou-suggested__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .cc-order-received-page .cc-suggested-product {
        padding: 12px;
    }

    .cc-order-received-page .cc-suggested-product__name {
        font-size: 13px;
        min-height: auto;
        -webkit-line-clamp: 4;
    }

    .cc-order-received-page .cc-suggested-product__btn {
        padding: 10px 12px !important;
        font-size: 13px !important;
    }
}

/* ============================================
   MI CUENTA — WOOCOMMERCE + ELEMENTOR
   ============================================ */
.cc-my-account-page .woocommerce {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 20px 56px;
    color: var(--cc-text);
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.cc-my-account-page .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce,
.cc-my-account-page .woocommerce-account .woocommerce {
    display: flex !important;
    flex-direction: column;
    gap: 24px;
}

.cc-my-account-page .woocommerce::before,
.cc-my-account-page .woocommerce::after {
    display: none !important;
    content: none !important;
}

/* Navegación — pills horizontales */
.cc-my-account-page .woocommerce-MyAccount-navigation {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
    order: 1;
}

.cc-my-account-page .woocommerce-MyAccount-content {
    order: 2;
}

.cc-my-account-page .woocommerce-MyAccount-navigation ul {
    display: flex !important;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

.cc-my-account-page .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-navigation ul li,
.cc-my-account-page .woocommerce-MyAccount-navigation li {
    float: none !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    border: none !important;
}

.cc-my-account-page .woocommerce-MyAccount-navigation li + li {
    margin-top: 0 !important;
}

.cc-my-account-page .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-navigation ul li a,
.cc-my-account-page .woocommerce-MyAccount-navigation a {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: auto !important;
    padding: 10px 18px !important;
    border: 1px solid rgba(14, 73, 111, 0.16) !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: var(--cc-text-muted) !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.cc-my-account-page .woocommerce-MyAccount-navigation a br{
    display: none;
}

.cc-my-account-page .woocommerce-MyAccount-navigation a:hover {
    background: rgba(14, 73, 111, 0.06) !important;
    border-color: rgba(14, 73, 111, 0.28) !important;
    color: var(--cc-primary) !important;
}

.cc-my-account-page .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-navigation ul li.is-active a,
.cc-my-account-page .woocommerce-MyAccount-navigation li.is-active a {
    background: var(--cc-primary) !important;
    border-color: var(--cc-primary) !important;
    color: #fff !important;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(14, 73, 111, 0.18);
}

.cc-my-account-page .woocommerce-MyAccount-navigation-link--customer-logout a {
    color: var(--cc-red) !important;
    border-color: rgba(204, 5, 17, 0.22) !important;
}

.cc-my-account-page .woocommerce-MyAccount-navigation-link--customer-logout a:hover {
    background: rgba(204, 5, 17, 0.06) !important;
    border-color: rgba(204, 5, 17, 0.35) !important;
    color: var(--cc-red) !important;
}

.cc-my-account-page .woocommerce-MyAccount-navigation-link--customer-logout.is-active a {
    background: var(--cc-red) !important;
    border-color: var(--cc-red) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(204, 5, 17, 0.2);
}

/* Contenido principal */
.cc-my-account-page .woocommerce-MyAccount-content {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 28px 32px !important;
    background: #fff;
    border: 1px solid rgba(14, 73, 111, 0.12);
    border-radius: var(--cc-radius);
    box-shadow: 0 4px 18px rgba(14, 73, 111, 0.06);
}

.cc-my-account-page .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce-MyAccount-content {
    float: none !important;
    width: 100% !important;
    padding: 28px 32px !important;
    padding-inline-start: 28px !important;
}

.cc-my-account-page .woocommerce-MyAccount-content p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--cc-text-muted);
    margin-bottom: 1em;
}

.cc-my-account-page .woocommerce-MyAccount-content a:not(.button):not(.woocommerce-Button):not(.woocommerce-button) {
    color: var(--cc-primary) !important;
    font-weight: 600;
    text-decoration: none;
}

.cc-my-account-page .woocommerce-MyAccount-content a:not(.button):not(.woocommerce-Button):not(.woocommerce-button):hover {
    color: var(--cc-primary-dark) !important;
    text-decoration: underline;
}

.cc-my-account-page .woocommerce-MyAccount-content h2,
.cc-my-account-page .woocommerce-MyAccount-content h3,
.cc-my-account-page .woocommerce-MyAccount-content header.title h2 {
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(14, 73, 111, 0.1);
    font-size: 22px;
    font-weight: 700;
    color: var(--cc-primary);
}

/* Formularios */
.cc-my-account-page .woocommerce form .form-row {
    margin-bottom: 18px;
}

.cc-my-account-page .woocommerce form .form-row label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--cc-primary);
}

.cc-my-account-page .woocommerce form .form-row .input-text,
.cc-my-account-page .woocommerce form .form-row select,
.cc-my-account-page .woocommerce form .form-row textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(14, 73, 111, 0.2);
    border-radius: var(--cc-radius-sm);
    background: #fff;
    color: var(--cc-text);
    font-size: 15px;
    line-height: 1.4;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.cc-my-account-page .woocommerce form .form-row .input-text:focus,
.cc-my-account-page .woocommerce form .form-row select:focus,
.cc-my-account-page .woocommerce form .form-row textarea:focus {
    outline: none;
    border-color: var(--cc-primary);
    box-shadow: 0 0 0 3px rgba(14, 73, 111, 0.12);
}

/* Botones */
.cc-my-account-page .woocommerce .button,
.cc-my-account-page .woocommerce button.button,
.cc-my-account-page .woocommerce a.button,
.cc-my-account-page .woocommerce input.button,
.cc-my-account-page .woocommerce .woocommerce-Button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px !important;
    border: none !important;
    border-radius: var(--cc-radius-sm) !important;
    background: var(--cc-primary) !important;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.3 !important;
    text-decoration: none !important;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cc-my-account-page .woocommerce .button:hover,
.cc-my-account-page .woocommerce button.button:hover,
.cc-my-account-page .woocommerce a.button:hover,
.cc-my-account-page .woocommerce input.button:hover,
.cc-my-account-page .woocommerce .woocommerce-Button:hover {
    background: var(--cc-primary-dark) !important;
    color: #fff !important;
}

/* Tablas (pedidos, descargas…) */
.cc-my-account-page .woocommerce table.shop_table {
    width: 100%;
    border: 1px solid rgba(14, 73, 111, 0.12);
    border-radius: var(--cc-radius-sm);
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    margin-bottom: 20px;
}

.cc-my-account-page .woocommerce table.shop_table thead th {
    padding: 14px 16px;
    background: var(--cc-bg-light);
    border-bottom: 1px solid rgba(14, 73, 111, 0.12);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--cc-text-muted);
}

.cc-my-account-page .woocommerce table.shop_table tbody td,
.cc-my-account-page .woocommerce table.shop_table tbody th {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(14, 73, 111, 0.08);
    font-size: 14px;
    vertical-align: middle;
}

.cc-my-account-page .woocommerce table.shop_table tbody tr:last-child td,
.cc-my-account-page .woocommerce table.shop_table tbody tr:last-child th {
    border-bottom: none;
}

.cc-my-account-page .woocommerce table.shop_table .woocommerce-orders-table__cell-order-actions a {
    margin-right: 6px;
}

/* Direcciones */
.cc-my-account-page .woocommerce-Addresses,
.cc-my-account-page .woocommerce-columns--addresses,
.cc-my-account-page .u-columns.col2-set {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.cc-my-account-page .woocommerce-columns--addresses::before,
.cc-my-account-page .woocommerce-columns--addresses::after,
.cc-my-account-page .u-columns.col2-set::before,
.cc-my-account-page .u-columns.col2-set::after {
    display: none !important;
    content: none !important;
}

.cc-my-account-page .woocommerce-Address,
.cc-my-account-page .u-columns.col2-set .col-1,
.cc-my-account-page .u-columns.col2-set .col-2,
.cc-my-account-page .woocommerce-column {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
}

.cc-my-account-page .woocommerce-Address address,
.cc-my-account-page .woocommerce-Address-title + address,
.cc-my-account-page address {
    font-style: normal;
    line-height: 1.7;
    margin: 0;
    padding: 18px 20px;
    background: var(--cc-bg-light);
    border: 1px solid rgba(14, 73, 111, 0.08);
    border-radius: var(--cc-radius-sm);
    color: var(--cc-text);
}

.cc-my-account-page .woocommerce-Address-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.cc-my-account-page .woocommerce-Address-title h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--cc-primary);
}

/* Login / registro */
.cc-my-account-page #customer_login.col2-set {
    max-width: 900px;
    margin: 0 auto;
}

.cc-my-account-page .u-column1,
.cc-my-account-page .u-column2 {
    padding: 28px;
    background: #fff;
    border: 1px solid rgba(14, 73, 111, 0.12);
    border-radius: var(--cc-radius);
    box-shadow: 0 4px 18px rgba(14, 73, 111, 0.06);
}

.cc-my-account-page .woocommerce-form-login,
.cc-my-account-page .woocommerce-form-register,
.cc-my-account-page .woocommerce-ResetPassword {
    max-width: 480px;
    margin: 0 auto;
    padding: 28px 32px;
    background: #fff;
    border: 1px solid rgba(14, 73, 111, 0.12);
    border-radius: var(--cc-radius);
    box-shadow: 0 4px 18px rgba(14, 73, 111, 0.06);
}

/* Avisos */
.cc-my-account-page .woocommerce-message,
.cc-my-account-page .woocommerce-info,
.cc-my-account-page .woocommerce-error {
    margin-bottom: 20px;
    padding: 14px 18px;
    border-radius: var(--cc-radius-sm);
    border-left: 4px solid var(--cc-primary);
    background: rgba(14, 73, 111, 0.06);
    color: var(--cc-primary);
    list-style: none;
}

.cc-my-account-page .woocommerce-error {
    border-left-color: var(--cc-red);
    background: rgba(204, 5, 17, 0.06);
    color: var(--cc-red);
}

.cc-my-account-page .woocommerce-message {
    border-left-color: #2ecc71;
    background: rgba(46, 204, 113, 0.08);
    color: #1e7e45;
}

@media (max-width: 900px) {
    .cc-my-account-page .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce,
    .cc-my-account-page .woocommerce-account .woocommerce {
        gap: 18px;
    }

    .cc-my-account-page .woocommerce-MyAccount-navigation ul {
        gap: 8px;
    }

    .cc-my-account-page .elementor-widget-woocommerce-my-account .woocommerce-MyAccount-navigation ul li a,
    .cc-my-account-page .woocommerce-MyAccount-navigation a {
        padding: 9px 14px !important;
        font-size: 13px;
    }

    .cc-my-account-page .woocommerce-MyAccount-content,
    .cc-my-account-page .elementor-widget-woocommerce-my-account .e-my-account-tab .woocommerce-MyAccount-content {
        padding: 22px 18px !important;
        padding-inline-start: 18px !important;
    }

    .cc-my-account-page .woocommerce-Addresses,
    .cc-my-account-page .woocommerce-columns--addresses,
    .cc-my-account-page .u-columns.col2-set,
    .cc-my-account-page #customer_login.col2-set {
        grid-template-columns: 1fr !important;
    }

    .cc-my-account-page .woocommerce table.shop_table thead {
        display: none;
    }

    .cc-my-account-page .woocommerce table.shop_table tbody tr {
        display: block;
        margin-bottom: 16px;
        border: 1px solid rgba(14, 73, 111, 0.12);
        border-radius: var(--cc-radius-sm);
        overflow: hidden;
    }

    .cc-my-account-page .woocommerce table.shop_table tbody td {
        display: flex;
        justify-content: space-between;
        gap: 12px;
        padding: 12px 14px;
        border-bottom: 1px solid rgba(14, 73, 111, 0.08);
        text-align: right;
    }

    .cc-my-account-page .woocommerce table.shop_table tbody td::before {
        font-weight: 700;
        color: var(--cc-primary);
        text-align: left;
    }
}
