/* ============================================================
   WooCommerce Cart Page
   ============================================================ */
.wc-cart {
    padding: 64px 24px;
    background: var(--color-white);
}

.wc-cart__wrap,
.wc-checkout__wrap,
.wc-thankyou__wrap,
.wc-account__wrap {
    display: flex;
    margin: 0 auto;
}

.wc-cart__wrap {
    gap: 32px;
    align-items: flex-start;
    justify-content: center;
    max-width: 1100px;
}

.wc-cart__main,
.wc-checkout__main,
.wc-thankyou__main {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.wc-cart__main {
    gap: 32px;
    min-width: 0;
    max-width: 759px;
}

/* Shared box card */
.wc-cart__box,
.wc-checkout__box {
    border: 1px solid var(--color-gray);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
}

.wc-cart__box {
    padding: 24px;
    gap: 16px;
}

.wc-cart__box-title,
.wc-checkout__box-title {
    font-family: 'Raleway', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 28px;
    color: #000;
    margin: 0;
}

.wc-cart__subtitle,
.wc-thankyou__subtitle {
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    margin: 0;
}

.wc-cart__subtitle {
    font-size: 16px;
    line-height: 20px;
    letter-spacing: 0.22px;
    color: var(--color-gray-warm);
}

.wc-cart__subtitle strong {
    font-weight: 600;
    color: var(--color-gray-warm);
}

/* Cart items list */
.wc-cart__form {
    display: contents;
}

.wc-cart__items {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.wc-cart__item {
    display: flex;
    align-items: stretch;
    background: var(--color-white);
    border: 1px solid var(--color-gray);
    border-radius: var(--radius);
    overflow: hidden;
}

.wc-cart__item-thumb {
    position: relative;
    flex-shrink: 0;
    align-self: stretch;
    width: 80px;
    display: block;
    overflow: hidden;
}

/* Asterisco decorativo dentro del cuadro de color */
.wc-cart__item-deco {
    position: absolute;
    right: 0%;
    bottom: 0%;
    width: 56px;
    height: 56px;
    pointer-events: none;
}

/* Sobre el cuadro negro el asterisco oscuro no se ve: lo pintamos en blanco */
.wc-cart__item-thumb--dark .wc-cart__item-deco path {
    fill: #fff;
    fill-opacity: 0.2;
}

.wc-cart__item-img,
.wc-cart__item-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Color rotativo cuando el producto no tiene imagen (negro / gris / amarillo) */
.wc-cart__item-thumb--dark   { background: var(--color-ink); }

.wc-cart__item-thumb--gray   { background: #e4e4e7; }

.wc-cart__item-thumb--yellow { background: var(--color-yellow); }

.wc-cart__item-body {
    flex: 1;
    min-width: 0;
    padding: 8px;
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.wc-cart__item-row {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 8px;
}

.wc-cart__item-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wc-cart__item-name {
    font-family: 'Raleway', sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 22px;
    color: var(--color-ink);
    text-decoration: none;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wc-cart__item-name:hover {
    color: var(--color-ink);
    text-decoration: underline;
}

.wc-cart__item-provider {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    color: #000;
    display: block;
}

/* Etiqueta «Incluido en el pack» en las líneas hijas */
.wc-cart__item-pack-tag {
    display: inline-block;
    font-family: 'Raleway', sans-serif;
    font-size: 13px;
    font-weight: 600;
    line-height: 18px;
    color: #6f6f6e;
    background: var(--color-gray-bg);
    border-radius: 5px;
    padding: 2px 10px;
}

/* Texto «Incluido» en el subtotal de las líneas hijas */
.wc-cart__included {
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #6f6f6e;
}

/* Qty input */
.wc-cart__item-qty {
    background: #e4e4e7;
    border-radius: 4px;
    min-height: 32px;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    flex-shrink: 0;
}

/* Cantidad fija (solo lectura) de las líneas hijas del pack */
.wc-cart__qty-fixed {
    width: 52px;
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    color: #11181c;
    padding: 4px 6px;
    text-align: center;
}

.wc-cart__qty-input.qty {
    background: transparent;
    border: none;
    outline: none;
    width: 52px;
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    color: #11181c;
    padding: 4px 6px 4px 8px;
    text-align: center;
    -moz-appearance: textfield;
    appearance: textfield;
}

.wc-cart__qty-input.qty::-webkit-inner-spin-button,
.wc-cart__qty-input.qty::-webkit-outer-spin-button {
    opacity: 1;
    height: 24px;
}

/* Subtotal price */
.wc-cart__item-price {
    font-family: 'Raleway', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 22px;
    color: var(--color-ink);
    white-space: nowrap;
    flex-shrink: 0;
}

.wc-cart__item-price .woocommerce-Price-amount {
    font: inherit;
    color: inherit;
}

/* Remove button */
a.wc-cart__item-remove.remove {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-ink);
    flex-shrink: 0;
    text-decoration: none;
    padding: 4px;
    align-self: center;
}

a.wc-cart__item-remove.remove:hover {
    opacity: 0.5;
    color: var(--color-ink);
}

/* Update cart button (hidden — WC auto-updates) */
.wc-cart__update-btn {
    display: none;
}

/* Offline section */
.wc-cart__offline {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* Shared button styles */
.wc-cart__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border-radius: var(--radius);
    padding: 8px 24px;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 24px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    transition: background 0.2s, color 0.15s, gap 0.25s ease;
    border: 1px solid #000;
    overflow: hidden;
}

.wc-cart__btn::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
    opacity: 0;
    max-width: 0;
    transition: opacity 0.25s ease, max-width 0.25s ease;
}

.wc-cart__btn:hover::after {
    opacity: 1;
    max-width: 12px;
}

.wc-cart__btn:hover {
    gap: 12px;
}

.wc-cart__btn--ghost {
    background: transparent;
    color: #000;
}

.wc-cart__btn--ghost::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Crect width='9.12' height='2.4' fill='black'/%3E%3Crect x='9.6001' y='12' width='9.12' height='2.4' transform='rotate(-90 9.6001 12)' fill='black'/%3E%3Crect x='0.47998' y='9.80859' width='9.12' height='2.4' transform='rotate(-45 0.47998 9.80859)' fill='black'/%3E%3C/svg%3E");
}

.wc-cart__btn--ghost:hover {
    background: var(--color-yellow);
    color: #000;
}

.wc-cart__btn--dark {
    background: #000;
    color: #fff;
    border-color: #000;
}

.wc-cart__btn--dark::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Crect width='9.12' height='2.4' fill='white'/%3E%3Crect x='9.6001' y='12' width='9.12' height='2.4' transform='rotate(-90 9.6001 12)' fill='white'/%3E%3Crect x='0.47998' y='9.80859' width='9.12' height='2.4' transform='rotate(-45 0.47998 9.80859)' fill='white'/%3E%3C/svg%3E");
}

.wc-cart__btn--dark:hover {
    background: var(--color-yellow);
    border-color: var(--color-yellow);
    color: #000;
}

.wc-cart__btn--dark:hover::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Crect width='9.12' height='2.4' fill='black'/%3E%3Crect x='9.6001' y='12' width='9.12' height='2.4' transform='rotate(-90 9.6001 12)' fill='black'/%3E%3Crect x='0.47998' y='9.80859' width='9.12' height='2.4' transform='rotate(-45 0.47998 9.80859)' fill='black'/%3E%3C/svg%3E");
    opacity: 1;
    max-width: 12px;
}

.wc-cart__btn--full {
    width: 100%;
    box-sizing: border-box;
}

/* Order summary sidebar */
.wc-cart__sidebar {
    flex-shrink: 0;
    width: 302px;
    align-self: stretch;
}

.wc-cart__summary {
    background: var(--color-white);
    border: 1px solid var(--color-gray);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    height: 100%;
    box-sizing: border-box;
}

.wc-cart__summary-title,
.wc-thankyou__summary-title {
    font-family: 'Raleway', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 28px;
    color: #000;
    margin: 0;
}

.wc-cart__summary-title {
    text-align: center;
}

.wc-cart__summary-rows {
    display: flex;
    flex-direction: column;
}

.wc-cart__summary-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #a0a0a0;
    gap: 16px;
    white-space: nowrap;
}

.wc-cart__summary-row:last-child,
.wc-cart__summary-row--total {
    border-bottom: none;
}

.wc-cart__summary-label {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    color: var(--color-ink);
}

.wc-cart__summary-val {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    color: var(--color-ink);
}

.wc-cart__summary-val .woocommerce-Price-amount {
    font: inherit;
    color: inherit;
}

.wc-cart__summary-row--total .wc-cart__summary-label {
    font-size: 20px;
    font-weight: 600;
}

.wc-cart__summary-row--total .wc-cart__summary-val {
    font-size: 20px;
    font-weight: 700;
}

.wc-cart__summary-btns {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: auto;
}

/* Responsive */
@media (max-width: 900px) {
    .wc-cart__wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .wc-cart__main {
        max-width: 100%;
    }

    .wc-cart__sidebar {
        width: 100%;
        align-self: auto;
    }

    .wc-cart__summary {
        height: auto;
    }
}

@media (max-width: 600px) {
    .wc-cart {
        padding: 32px 16px;
    }

    .wc-cart__item-row {
        flex-wrap: wrap;
        gap: 12px;
    }

    .wc-cart__item-name {
        font-size: 16px;
        white-space: normal;
    }
}

/* ============================================================
   Pedir Presupuesto panel (within cart page)
   ============================================================ */
.wc-cart__presupuesto {
    padding: 64px 24px;
}

.wc-cart__presupuesto-wrap {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    justify-content: center;
    max-width: 1280px;
    margin: 0 auto;
}

.wc-cart__presupuesto-box {
    border: 1px solid var(--color-gray);
    border-radius: var(--radius);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
    max-width: 664px;
}

.wc-cart__presupuesto-title {
    font-family: 'Raleway', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 28px;
    color: #000;
    margin: 0;
}

.wc-cart__presupuesto-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wc-cart__presupuesto-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wc-cart__presupuesto-field {
    border-bottom: 1px solid var(--color-gray);
    padding: 12px 0;
}

.wc-cart__presupuesto-input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Raleway', sans-serif;
    font-size: 14.4px;
    font-weight: 400;
    color: #000;
    padding: 2px 0;
}

.wc-cart__presupuesto-input::placeholder {
    color: #000;
    opacity: 1;
}

.wc-cart__presupuesto-textarea {
    resize: none;
    height: 62px;
    line-height: 1.5;
}

.wc-cart__presupuesto-privacy {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wc-cart__presupuesto-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: #000;
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 8px 24px;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 24px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.2s, gap 0.25s ease;
    align-self: flex-start;
    overflow: hidden;
}

.wc-cart__presupuesto-submit::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Crect width='9.12' height='2.4' fill='white'/%3E%3Crect x='9.6001' y='12' width='9.12' height='2.4' transform='rotate(-90 9.6001 12)' fill='white'/%3E%3Crect x='0.47998' y='9.80859' width='9.12' height='2.4' transform='rotate(-45 0.47998 9.80859)' fill='white'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
    opacity: 0;
    max-width: 0;
    transition: opacity 0.25s ease, max-width 0.25s ease;
}

.wc-cart__presupuesto-submit:hover {
    background: var(--color-yellow);
    color: #000;
    gap: 12px;
}

.wc-cart__presupuesto-submit:hover::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Crect width='9.12' height='2.4' fill='black'/%3E%3Crect x='9.6001' y='12' width='9.12' height='2.4' transform='rotate(-90 9.6001 12)' fill='black'/%3E%3Crect x='0.47998' y='9.80859' width='9.12' height='2.4' transform='rotate(-45 0.47998 9.80859)' fill='black'/%3E%3C/svg%3E");
    opacity: 1;
    max-width: 12px;
}

/* Sidebar inside presupuesto panel */
.wc-cart__presupuesto-wrap .wc-cart__sidebar {
    width: 448px;
    flex-shrink: 0;
    position: sticky;
    top: 24px;
    align-self: flex-start;
}

.wc-cart__presupuesto-wrap .wc-cart__summary {
    height: auto;
}

.wc-cart__presupuesto-success {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 32px 0;
    max-width: 600px;
}

.wc-cart__presupuesto-success[hidden] {
    display: none;
}

.wc-cart__summary-items {
    display: flex;
    flex-direction: column;
}

@media (max-width: 900px) {
    .wc-cart__presupuesto-wrap {
        flex-direction: column;
    }

    .wc-cart__presupuesto-wrap .wc-cart__sidebar {
        width: 100%;
        position: static;
    }
}

/* ============================================================
   Caja "¿Ya eres cliente?" (carrito) + modal de solicitud
   ============================================================ */
.wc-cart__client {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}

.wc-cart__client-text {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    line-height: 24px;
    color: var(--color-ink);
    margin: 0;
}

/* Modal de solicitud: reutiliza el shell .contact-modal */
.cart-request-modal[hidden] {
    display: none;
}

.cart-request-modal .contact-modal__form {
    flex: 1 1 0;
    min-width: 0;
}

.cart-request-modal .wc-cart__presupuesto-form {
    width: 600px;
    max-width: 100%;
}

.cart-request-modal .wc-cart__presupuesto-fields {
    gap: 32px;
}

.cart-request-modal__success {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 64px 24px;
}

.cart-request-modal__success[hidden] {
    display: none;
}

.cart-request-modal__success-text {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 600;
    line-height: 1.3;
    color: var(--color-ink);
    margin: 0;
    max-width: 640px;
}

.wc-checkout__next-btn {
    margin-right: auto;
}

.wc-checkout__sum-item-bottom .wc-checkout__sum-qty input.wc-checkout__qty-input {
    padding: 0 6px 2px 8px !important;
    font-weight: bold !important;
    border-bottom: none !important;
    max-width: 30px !important;
}

.wc-checkout {
    padding: 0;
    background: var(--color-white);
}

.wc-checkout__form {
    display: contents;
}

.wc-checkout__wrap {
    gap: 32px;
    align-items: flex-start;
    justify-content: center;
    padding: 96px 24px;
    max-width: 1200px;
}

.wc-checkout__main {
    min-width: 0;
    max-width: 664px;
    gap: 24px;
}

/* Shared box card */
.wc-checkout__box {
    padding: 32px;
    gap: 32px;
}

.wc-checkout__box.is-collapsed {
    gap: 0;
}

.wc-checkout__box.is-collapsed .wc-checkout__box-content {
    display: none;
}

.wc-checkout__box.is-collapsed .wc-checkout__box-title {
    cursor: pointer;
}

.wc-checkout__box.is-collapsed .wc-checkout__box-title:hover {
    opacity: 0.7;
}

.wc-checkout__box-content {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Section (Datos del Cliente / Dirección de…) */
.wc-checkout__section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 16px 0;
    border-bottom: none;
}

.wc-checkout__section-title {
    font-family: 'Raleway', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 28px;
    color: #000;
    margin: 0;
}

/* Form fields — override WooCommerce defaults */
.wc-checkout__fields {
    display: flex;
    flex-direction: column;
}

.wc-checkout .form-row {
    float: none !important;
    clear: both;
    width: 100% !important;
    padding: 0;
    margin: 0;
}

.wc-checkout .form-row-first,
.wc-checkout .form-row-last {
    width: 100% !important;
    float: none !important;
}

/* Hide labels (placeholder acts as label) */
.wc-checkout .form-row label,
.wc-checkout .wc-checkout-hidden-label,
.wc-checkout .form-row label:not(.checkbox) {
    display: none !important;
}

.wc-checkout .form-row label.checkbox {
    display: flex !important;
}

/* Text inputs and textareas */
.wc-checkout .input-text,
.wc-checkout input[type="text"],
.wc-checkout input[type="email"],
.wc-checkout input[type="tel"],
.wc-checkout input[type="number"],
.wc-checkout input[type="password"],
.wc-checkout textarea {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--color-gray) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 12px 0 !important;
    width: 100% !important;
    font-family: 'Raleway', sans-serif !important;
    font-size: 14.4px !important;
    font-weight: 400 !important;
    color: #000 !important;
    line-height: normal !important;
}

.wc-checkout .input-text:focus,
.wc-checkout input[type="text"]:focus,
.wc-checkout input[type="email"]:focus,
.wc-checkout input[type="tel"]:focus {
    border-bottom-color: var(--color-ink) !important;
    background: transparent !important;
}

.wc-checkout .input-text::placeholder,
.wc-checkout textarea::placeholder {
    color: #000;
    opacity: 0.7;
}

/* Select (estado/provincia) */
.wc-checkout select {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--color-gray) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 12px 0 !important;
    width: 100% !important;
    font-family: 'Raleway', sans-serif !important;
    font-size: 14.4px !important;
    color: #000 !important;
    -webkit-appearance: none;
    appearance: none;
}

/* Textarea height for order notes */
.wc-checkout textarea.input-text {
    min-height: 60px;
    resize: vertical;
}

/* woocommerce-input-wrapper */
.wc-checkout .woocommerce-input-wrapper {
    width: 100%;
}

/* Validation errors */
.wc-checkout .form-row.woocommerce-invalid .input-text,
.wc-checkout .form-row.woocommerce-invalid input,
.wc-checkout .form-row.woocommerce-invalid select {
    border-bottom-color: #e2401c !important;
}

.wc-checkout .form-row .required {
    color: #e2401c;
}

/* "Same address" checkbox row */
.wc-checkout__same-addr {
    padding: 16px 0;
}

.wc-checkout__same-addr-label {
    display: flex !important;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-family: 'Raleway', sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 24px;
    color: rgba(0, 0, 0, 0.8);
}

.wc-checkout__same-addr-check {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 16px !important;
    height: 16px !important;
    border: 1.008px solid rgba(0, 0, 0, 0.8) !important;
    border-radius: 2px !important;
    background-color: #eee !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 14px 14px !important;
    flex-shrink: 0;
    padding: 0 !important;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
}

.wc-checkout__same-addr-check:checked {
    background-color: rgba(0, 0, 0, 0.8) !important;
    border-color: rgba(0, 0, 0, 0.8) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E") !important;
}

/* Coupon field */
.wc-checkout__coupon-wrap {
    width: 100%;
}

.wc-checkout__coupon-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--color-gray);
    border-radius: 0;
    padding: 12px 0;
    width: 100%;
    font-family: 'Raleway', sans-serif;
    font-size: 14.4px;
    color: #000;
    outline: none;
}

.wc-checkout__coupon-input::placeholder {
    color: #000;
    opacity: 0.7;
}

/* "Siguiente" button */
.wc-checkout__next-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: #000;
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 8px 24px;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 24px;
    cursor: pointer;
    transition: background 0.2s, gap 0.25s ease;
    overflow: hidden;
}

.wc-checkout__next-btn::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Crect width='9.12' height='2.4' fill='white'/%3E%3Crect x='9.6001' y='12' width='9.12' height='2.4' transform='rotate(-90 9.6001 12)' fill='white'/%3E%3Crect x='0.47998' y='9.80859' width='9.12' height='2.4' transform='rotate(-45 0.47998 9.80859)' fill='white'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
    opacity: 0;
    max-width: 0;
    transition: opacity 0.25s ease, max-width 0.25s ease;
}

.wc-checkout__next-btn:hover {
    background: var(--color-yellow);
    color: #000;
    gap: 12px;
}

.wc-checkout__next-btn:hover::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Crect width='9.12' height='2.4' fill='black'/%3E%3Crect x='9.6001' y='12' width='9.12' height='2.4' transform='rotate(-90 9.6001 12)' fill='black'/%3E%3Crect x='0.47998' y='9.80859' width='9.12' height='2.4' transform='rotate(-45 0.47998 9.80859)' fill='black'/%3E%3C/svg%3E");
    opacity: 1;
    max-width: 12px;
}

/* Shipping methods box */
.wc-checkout__shipping-methods .woocommerce-shipping-methods {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.wc-checkout__shipping-methods .woocommerce-shipping-methods li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #a0a0a0;
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    color: var(--color-ink);
}

.wc-checkout__shipping-methods .woocommerce-shipping-methods li label {
    display: flex;
    align-items: center;
    gap: 16px;
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--color-ink);
    cursor: pointer;
    flex: 1;
}

/* Custom radio button for shipping methods */
.wc-checkout__shipping-methods .woocommerce-shipping-methods li input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid rgba(0, 0, 0, 0.8);
    border-radius: 2px;
    background: #eee;
    flex-shrink: 0;
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
    transition: background-color 0.15s, border-color 0.15s;
}

.wc-checkout__shipping-methods .woocommerce-shipping-methods li input[type="radio"]:checked {
    background-color: rgba(0, 0, 0, 0.8);
    border-color: rgba(0, 0, 0, 0.8);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
}

.wc-checkout__shipping-methods .woocommerce-shipping-methods li .woocommerce-Price-amount {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--color-ink);
    white-space: nowrap;
    flex-shrink: 0;
}

/* Payment box — override WooCommerce defaults */
.wc-checkout__payment #payment {
    background: transparent;
    border-radius: 0;
    border: none;
    padding: 0;
}

.wc-checkout__payment #payment ul.payment_methods {
    list-style: none;
    padding: 0;
    margin: 0 0 32px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.wc-checkout__payment #payment ul.payment_methods li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #a0a0a0;
    flex-wrap: wrap;
}

/* Custom radio for payment methods */
.wc-checkout__payment #payment ul.payment_methods li input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid rgba(0, 0, 0, 0.8);
    border-radius: 2px;
    background: #eee;
    flex-shrink: 0;
    cursor: pointer;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 14px 14px;
    transition: background-color 0.15s, border-color 0.15s;
}

.wc-checkout__payment #payment ul.payment_methods li input[type="radio"]:checked {
    background-color: rgba(0, 0, 0, 0.8);
    border-color: rgba(0, 0, 0, 0.8);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E");
}

.wc-checkout__payment #payment ul.payment_methods li label {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 16px;
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    font-weight: 500;
    color: var(--color-ink);
    cursor: pointer;
}

.wc-checkout__payment #payment ul.payment_methods li label img {
    height: 28px;
    width: auto;
    border-radius: 4px;
    flex-shrink: 0;
}

/* Payment detail box (card fields etc.) */
.wc-checkout__payment #payment .payment_box {
    width: 100%;
    background: #f8f9fa;
    padding: 16px;
    border-radius: 8px;
    margin-top: 0;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    flex-basis: 100%;
}

.wc-checkout__payment #payment .form-row {
    margin-top: 0;
}

/* Place Order button */
.wc-checkout__payment #payment #place_order {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    background: #000;
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 8px 24px;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 24px;
    cursor: pointer;
    transition: background 0.2s, gap 0.25s ease;
    overflow: hidden;
}

.wc-checkout__payment #payment #place_order::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Crect width='9.12' height='2.4' fill='white'/%3E%3Crect x='9.6001' y='12' width='9.12' height='2.4' transform='rotate(-90 9.6001 12)' fill='white'/%3E%3Crect x='0.47998' y='9.80859' width='9.12' height='2.4' transform='rotate(-45 0.47998 9.80859)' fill='white'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
    opacity: 0;
    max-width: 0;
    transition: opacity 0.25s ease, max-width 0.25s ease;
}

.wc-checkout__payment #payment #place_order:hover {
    background: var(--color-yellow);
    color: #000;
    gap: 12px;
}

.wc-checkout__payment #payment #place_order:hover::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Crect width='9.12' height='2.4' fill='black'/%3E%3Crect x='9.6001' y='12' width='9.12' height='2.4' transform='rotate(-90 9.6001 12)' fill='black'/%3E%3Crect x='0.47998' y='9.80859' width='9.12' height='2.4' transform='rotate(-45 0.47998 9.80859)' fill='black'/%3E%3C/svg%3E");
    opacity: 1;
    max-width: 12px;
}

/* ── Order Summary Sidebar ── */
.wc-checkout__sidebar,
.wc-thankyou__sidebar {
    flex-shrink: 0;
    width: 448px;
    position: sticky;
    top: 24px;
}

.wc-checkout__sidebar {
    align-self: flex-start;
    padding-top: 0;
}

.wc-checkout__summary {
    background: var(--color-white);
    border: 1px solid var(--color-gray);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.wc-checkout__summary-title {
    font-family: 'Raleway', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 28px;
    color: #000;
    margin: 0;
    text-align: center;
}

.wc-checkout__summary-items {
    display: flex;
    flex-direction: column;
}

.wc-checkout__sum-item {
    border-top: 1px solid var(--color-gray);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wc-checkout__sum-item-top {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 8px;
}

.wc-checkout__sum-item-info,
.wc-thankyou__sum-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wc-checkout__sum-item-info {
    min-width: 0;
    flex: 1;
}

.wc-checkout__sum-item-remove {
    font-size: 18px;
    line-height: 1;
    color: var(--color-gray);
    text-decoration: none;
    flex-shrink: 0;
    padding: 0 2px;
    transition: color 0.15s;
}

.wc-checkout__sum-item-remove:hover {
    color: var(--color-ink);
}

.wc-checkout__sum-item-name,
.wc-thankyou__sum-item-name {
    font-family: 'Raleway', sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 22px;
    color: var(--color-ink);
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wc-checkout__sum-item-prov,
.wc-thankyou__sum-item-prov {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 20px;
    color: #000;
    display: block;
}

.wc-checkout__sum-item-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 8px 8px;
}

.wc-checkout__sum-qty,
.wc-thankyou__sum-qty {
    background: #e4e4e7;
    border-radius: 4px;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.wc-checkout__sum-qty {
    flex-shrink: 0;
    width: fit-content;
    overflow: hidden;
}

.wc-checkout__qty-input {
    background: transparent;
    border: none;
    outline: none;
    width: 28px;
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 20px;
    color: #11181c;
    text-align: center;
    -moz-appearance: textfield;
    appearance: textfield;
    padding: 2px 4px 2px 8px;
}

.wc-checkout__qty-input::-webkit-inner-spin-button,
.wc-checkout__qty-input::-webkit-outer-spin-button {
    display: none;
}

.wc-checkout__qty-arrows {
    display: flex;
    flex-direction: column;
    align-self: stretch;
}

.wc-checkout__qty-arrow {
    flex: 1;
    width: 20px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background 0.1s;
}

.wc-checkout__qty-arrow:hover {
    background: rgba(0, 0, 0, 0.06);
}

.wc-checkout__sum-price {
    font-family: 'Raleway', sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 22px;
    color: var(--color-ink);
    white-space: nowrap;
}

.wc-checkout__sum-price .woocommerce-Price-amount {
    font: inherit;
    color: inherit;
}

/* ── Select2 overrides (WooCommerce state/country dropdowns) ── */
/* Container */
.wc-checkout .select2-container {
    width: 100% !important;
}

/* Remove box, keep only bottom border */
.wc-checkout .select2-container--default .select2-selection--single {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--color-gray) !important;
    border-radius: 0 !important;
    height: auto !important;
    padding: 12px 24px 12px 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

.wc-checkout .select2-container--default .select2-selection--single:focus,
.wc-checkout .select2-container--default.select2-container--focus .select2-selection--single {
    border-bottom-color: var(--color-ink) !important;
    outline: none !important;
}

/* Rendered text */
.wc-checkout .select2-container--default .select2-selection--single .select2-selection__rendered {
    font-family: 'Raleway', sans-serif !important;
    font-size: 14.4px !important;
    font-weight: 400 !important;
    color: #000 !important;
    line-height: normal !important;
    padding: 0 !important;
}

/* Placeholder color */
.wc-checkout .select2-container--default .select2-selection--single .select2-selection__placeholder {
    color: rgba(0, 0, 0, 0.7) !important;
    font-family: 'Raleway', sans-serif !important;
    font-size: 14.4px !important;
}

/* Arrow — minimal chevron */
.wc-checkout .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100% !important;
    top: 0 !important;
    right: 0 !important;
    width: 20px !important;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wc-checkout .select2-container--default .select2-selection--single .select2-selection__arrow b {
    border-color: var(--color-gray) transparent transparent transparent !important;
    border-width: 5px 4px 0 4px !important;
    margin-top: 0 !important;
    top: auto !important;
    left: auto !important;
    position: static !important;
}

/* Dropdown panel */
.wc-checkout .select2-dropdown {
    border: 1px solid var(--color-gray) !important;
    border-radius: 6px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
    font-family: 'Raleway', sans-serif !important;
    font-size: 14.4px !important;
}

.wc-checkout .select2-container--default .select2-results__option {
    padding: 10px 12px !important;
    font-family: 'Raleway', sans-serif !important;
    font-size: 14.4px !important;
    color: var(--color-ink) !important;
}

.wc-checkout .select2-container--default .select2-results__option--highlighted[aria-selected] {
    background: var(--color-ink) !important;
    color: #fff !important;
}

.wc-checkout .select2-search--dropdown .select2-search__field {
    border: 1px solid #e0e0e0 !important;
    border-radius: 4px !important;
    font-family: 'Raleway', sans-serif !important;
    font-size: 14px !important;
    padding: 6px 8px !important;
    outline: none !important;
}

/* Also style plain <select> elements in case select2 doesn't load */
.wc-checkout .form-row select:not(.select2-hidden-accessible) {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--color-gray) !important;
    border-radius: 0 !important;
    padding: 12px 0 !important;
    width: 100% !important;
    font-family: 'Raleway', sans-serif !important;
    font-size: 14.4px !important;
    color: #000 !important;
    -webkit-appearance: none;
    appearance: none;
    outline: none;
}

/* Responsive */
@media (max-width: 1024px) {
    .wc-checkout__wrap {
        flex-direction: column;
        align-items: stretch;
    }

    .wc-checkout__main {
        max-width: 100%;
    }

    .wc-checkout__sidebar {
        width: 100%;
        position: static;
    }
}

@media (max-width: 600px) {
    .wc-checkout__box {
        padding: 24px 16px;
    }

    .wc-checkout__wrap {
        padding: 48px 16px;
    }
}

/* ============================================================
   Order Received — Thank You page
   ============================================================ */
.wc-thankyou {
    padding: 96px 24px;
}

.wc-thankyou__wrap {
    gap: 32px;
    align-items: flex-start;
    justify-content: center;
    max-width: 1280px;
}

/* Left column */
.wc-thankyou__main {
    gap: 24px;
    max-width: 800px;
}

.wc-thankyou__header,
.wc-account__header {
    display: flex;
    flex-direction: column;
}

.wc-thankyou__header {
    gap: 16px;
    max-width: 600px;
}

.wc-thankyou__title {
    font-family: 'Raleway', sans-serif;
    font-size: 48px;
    font-weight: 500;
    line-height: 60px;
    letter-spacing: 0.56px;
    color: var(--color-ink);
    margin: 0;
}

.wc-thankyou__subtitle {
    font-size: 15.6px;
    line-height: 25.2px;
    letter-spacing: 0.16px;
    color: #000;
    opacity: 0.86;
}

/* Order details box */
.wc-thankyou__details {
    border: 1px solid var(--color-gray);
    border-radius: var(--radius);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 567px;
}

.wc-thankyou__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #a0a0a0;
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    font-weight: 500;
    line-height: 22px;
    color: var(--color-ink);
}

/* Right sidebar */

.wc-thankyou__summary {
    background: #fff;
    border: 1px solid var(--color-gray);
    border-radius: var(--radius);
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.wc-thankyou__sum-item {
    border-top: 1px solid var(--color-gray);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.wc-thankyou__sum-item-top {
    padding: 8px;
}

.wc-thankyou__sum-item-bottom {
    display: flex;
    align-items: center;
    padding: 0 8px 8px;
}

.wc-thankyou__sum-qty {
    padding: 2px 8px;
}

.wc-thankyou__sum-qty-num {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: #11181c;
    line-height: 20px;
}

@media (max-width: 1024px) {
    .wc-thankyou__wrap {
        flex-direction: column;
    }

    .wc-thankyou__sidebar {
        width: 100%;
        position: static;
    }
}

/* ============================================================
   WooCommerce Mi Cuenta
   ============================================================ */
/* ── Layout general ── */
.wc-account__wrap {
    padding: 24px;
    flex-direction: column;
    gap: 40px;
}

.wc-account__header {
    gap: 8px;
}

.wc-account__title {
    font-family: var(--font-primary);
    font-size: 40px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--color-ink);
    margin: 0;
}

.wc-account__greeting {
    font-family: var(--font-primary);
    font-size: 16px;
    color: var(--color-gray-warm);
    margin: 0;
}

.wc-account__greeting strong {
    color: var(--color-ink);
}

.wc-account__layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

/* ── Sidebar de navegación ── */
.wc-account__sidebar.woocommerce-MyAccount-navigation {
    float: none !important;
    width: 280px !important;
    flex-shrink: 0;
    border: 1px solid var(--color-gray);
    border-radius: var(--radius);
    padding: 16px;
    position: sticky;
    top: 140px;
}

.wc-account__nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.wc-account__nav-item a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 16px;
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    color: var(--color-black);
    text-decoration: none;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.wc-account__nav-item a svg {
    flex-shrink: 0;
}

.wc-account__nav-item a:hover {
    background-color: var(--color-gray-bg);
    color: var(--color-black);
}

.wc-account__nav-item.is-active a {
    background-color: var(--color-yellow);
    color: var(--color-black);
}

.wc-account__nav-item--customer-logout {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e0e0e0;
}

/* ── Contenido ── */
.wc-account__content.woocommerce-MyAccount-content {
    float: none !important;
    width: auto !important;
    flex: 1;
    min-width: 0;
    border: 1px solid var(--color-gray);
    border-radius: var(--radius);
    padding: 32px;
}

.wc-account__content h2,
.wc-account__content h3 {
    font-family: var(--font-primary);
    font-size: 24px;
    font-weight: 700;
    line-height: 28px;
    color: #000;
    margin: 0 0 16px;
}

.wc-account__content p {
    font-family: var(--font-primary);
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-ink);
}

.wc-account__content mark {
    background: var(--color-yellow);
    padding: 0 4px;
}

/* ── Escritorio ── */
.wc-account__dashboard {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.wc-account__intro {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-ink);
    margin: 0;
    max-width: 60ch;
}

.wc-account__intro a {
    color: var(--color-ink);
    text-decoration: underline;
}

.wc-account__cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.wc-account__card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    border: 1px solid #d9d9d9;
    border-radius: var(--radius);
    text-decoration: none;
    color: var(--color-black);
    transition: border-color var(--transition-fast), background-color var(--transition-base);
}

.wc-account__card:hover {
    border-color: var(--color-ink);
    background-color: var(--color-gray-bg);
    color: var(--color-black);
}

.wc-account__card-icon svg {
    width: 28px;
    height: 28px;
}

.wc-account__card-title {
    font-family: var(--font-primary);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.6px;
}

.wc-account__card-desc {
    font-family: var(--font-primary);
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-gray-warm);
}

/* ── Recuadro estático de plazos de entrega (no enlaza) ── */
.wc-account__card--static {
    cursor: default;
    background-color: #f7f8fa;
}

.wc-account__card--static:hover {
    border-color: #d9d9d9;
    background-color: #f7f8fa;
}

.wc-account__deadlines {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wc-account__deadlines li {
    font-family: var(--font-primary);
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-gray-warm);
}

.wc-account__deadlines strong {
    display: block;
    color: var(--color-ink);
}

/* ── Bloque de instrucciones (endpoint Facturas) ── */
.wc-account__info {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-ink);
    max-width: 60ch;
}

.wc-account__info-title {
    font-size: 20px;
    margin: 0 0 16px;
}

.wc-account__info p {
    margin: 0 0 16px;
}

.wc-account__info a {
    color: var(--color-ink);
    text-decoration: underline;
    word-break: break-word;
}

.wc-account__info-list {
    margin: 0 0 16px;
    padding-left: 20px;
}

.wc-account__info-list li {
    margin-bottom: 8px;
}

/* ── Tablas (pedidos, descargas, detalle de pedido) ── */
.wc-account__content table.shop_table {
    width: 100%;
    border-collapse: collapse;
    border: none;
    border-radius: 0;
    margin: 0 0 16px;
    font-family: var(--font-primary);
}

.wc-account__content table.shop_table th,
.wc-account__content table.shop_table td {
    border: none;
    text-align: left;
    padding: 14px 12px;
}

.wc-account__content table.shop_table thead th {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--color-ink);
    border-bottom: 1px solid var(--color-ink);
}

.wc-account__content table.shop_table tbody td,
.wc-account__content table.shop_table tfoot th,
.wc-account__content table.shop_table tfoot td {
    font-size: 14px;
    color: var(--color-ink);
    border-bottom: 1px solid #e0e0e0;
    background: transparent;
}

.wc-account__content table.shop_table tbody tr:last-child td {
    border-bottom: none;
}

.wc-account__content table.shop_table .button {
    padding: 4px 16px !important;
    font-size: 12px !important;
    margin-right: 8px;
}

.wc-account__content .woocommerce-pagination {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

/* ── Botones ── */
.wc-account .button,
.wc-account a.button,
.wc-account button.button,
.wc-login .button,
.wc-login a.button,
.wc-login button.button,
.woocommerce form.lost_reset_password .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #000 !important;
    color: #fff !important;
    border: none !important;
    border-radius: var(--radius) !important;
    padding: 8px 24px !important;
    font-family: var(--font-primary) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 24px !important;
    cursor: pointer;
    text-decoration: none;
    transition: background-color var(--transition-fast), color var(--transition-fast);
}

.wc-account .button:hover,
.wc-account a.button:hover,
.wc-account button.button:hover,
.wc-login .button:hover,
.wc-login a.button:hover,
.wc-login button.button:hover,
.woocommerce form.lost_reset_password .button:hover {
    background: var(--color-yellow) !important;
    color: #000 !important;
}

/* ── Direcciones ── */
.wc-account__content .col2-set {
    display: flex;
    gap: 24px;
    width: 100%;
}

.wc-account__content .col2-set .col-1,
.wc-account__content .col2-set .col-2 {
    float: none;
    width: auto;
    max-width: none;
    flex: 1;
}

.wc-account__content .woocommerce-Address {
    border: 1px solid #d9d9d9;
    border-radius: var(--radius);
    padding: 24px;
}

.wc-account__content .woocommerce-Address-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
}

.wc-account__content .woocommerce-Address-title h2,
.wc-account__content .woocommerce-Address-title h3 {
    float: none;
    font-size: 18px;
    margin: 0;
}

.wc-account__content .woocommerce-Address-title .edit {
    float: none;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--color-black);
    text-decoration: underline;
    white-space: nowrap;
}

.wc-account__content .woocommerce-Address-title .edit:hover {
    color: var(--color-ink);
}

.wc-account__content address {
    font-style: normal;
    font-size: 14px;
    line-height: 1.7;
    color: var(--color-gray-warm);
    margin-top: 12px;
}

.wc-account__content .woocommerce-customer-details address {
    border: 1px solid #d9d9d9;
    border-radius: var(--radius);
    padding: 24px;
}

/* ── Formularios (cuenta, direcciones, login) ── */
.wc-account__content .form-row,
.wc-account__content .form-row-first,
.wc-account__content .form-row-last,
.wc-account__content .form-row-wide,
.wc-login .form-row {
    float: none !important;
    clear: both;
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 0 20px !important;
}

/* Nota bajo "Nombre visible" y textos de ayuda */
.wc-account__content .form-row span em,
.wc-account__content .form-row small {
    display: block;
    font-family: var(--font-primary);
    font-size: 12px;
    font-style: normal;
    line-height: 1.5;
    color: var(--color-gray-warm);
    margin-top: 6px;
}

/* Medidor de seguridad de la contraseña */
.wc-account__content .woocommerce-password-strength,
.wc-account__content .woocommerce-password-hint {
    display: block;
    font-family: var(--font-primary);
    font-size: 12px;
    line-height: 1.5;
    color: var(--color-gray-warm);
    background: transparent;
    border: none;
    padding: 6px 0 0;
    margin: 0;
    text-align: left;
}

.wc-account__content .woocommerce-password-strength.short,
.wc-account__content .woocommerce-password-strength.bad {
    color: #e2401c;
}

.wc-account__content .woocommerce-password-strength.good,
.wc-account__content .woocommerce-password-strength.strong {
    color: var(--color-ink);
}

.wc-account__content .form-row label,
.wc-login .form-row label {
    display: block;
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--color-gray-warm);
    margin-bottom: 2px;
}

.wc-account__content .form-row .required,
.wc-login .form-row .required {
    color: #e2401c;
    text-decoration: none;
}

.wc-account__content .input-text,
.wc-account__content input[type="text"],
.wc-account__content input[type="email"],
.wc-account__content input[type="tel"],
.wc-account__content input[type="password"],
.wc-account__content select,
.wc-account__content textarea,
.wc-login .input-text,
.woocommerce form.lost_reset_password .input-text {
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid var(--color-gray) !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    padding: 10px 0 !important;
    width: 100% !important;
    font-family: var(--font-primary) !important;
    font-size: 14.4px !important;
    font-weight: 400 !important;
    color: #000 !important;
    line-height: normal !important;
}

.wc-account__content .input-text:focus,
.wc-login .input-text:focus,
.woocommerce form.lost_reset_password .input-text:focus {
    border-bottom-color: var(--color-ink) !important;
    background: transparent !important;
}

.wc-account .password-input,
.wc-login .password-input,
.woocommerce form.lost_reset_password .password-input {
    position: relative;
    display: block;
    width: 100%;
}

.wc-account .show-password-input,
.wc-login .show-password-input,
.woocommerce form.lost_reset_password .show-password-input {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
}

.wc-account__content fieldset {
    border: 1px solid #d9d9d9;
    border-radius: var(--radius);
    padding: 24px;
    margin: 0 0 20px;
}

.wc-account__content fieldset legend {
    font-family: var(--font-primary);
    font-size: 16px;
    font-weight: 700;
    color: #000;
    padding: 0 8px;
}

/* ── Login / registro ── */
.wc-login {
    max-width: 1040px;
    margin: 0 auto;
    padding: 96px 24px;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.wc-login__header {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Mismo titular que los heros de la web: peso medio y segunda palabra en gris */
.wc-login__title {
    font-family: var(--font-primary);
    font-size: clamp(2.5rem, 5vw, 64px);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.02em;
    color: var(--color-ink);
    margin: 0;
}

.wc-login__muted {
    color: var(--color-gray);
}

.wc-login__subtitle {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-gray-warm);
    margin: 0;
}

/* Las dos tarjetas con la misma altura y los botones alineados abajo */
.wc-login__boxes {
    display: flex;
    gap: 32px;
    align-items: stretch;
    justify-content: center;
}

.wc-login__box {
    position: relative;
    flex: 1;
    max-width: 480px;
    border: 1px solid var(--color-gray);
    border-radius: var(--radius);
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    overflow: hidden;
}

/* Registro: tarjeta amarilla con el asterisco blanco, como el sidebar de
   proveedores y el bloque «Únete a Cumlaude» */
.wc-login__box--register {
    background: var(--color-yellow);
    border-color: var(--color-yellow);
}

.wc-login__deco {
    position: absolute;
    right: -70px;
    bottom: -70px;
    width: 220px;
    height: 220px;
    pointer-events: none;
}

.wc-login__box--register > :not(.wc-login__deco) {
    position: relative;
}

.wc-login__box--register .input-text {
    border-bottom-color: var(--color-ink) !important;
}

.wc-login__box--register .form-row label,
.wc-login__box--register .wc-login__note,
.wc-login__box--register .woocommerce-privacy-policy-text p {
    color: rgba(0, 0, 0, 0.75);
}

.wc-login__box--register .woocommerce-privacy-policy-text a {
    color: #000;
}

/* Sobre el amarillo, el hover amarillo del botón no se vería */
.wc-login .wc-login__box--register .wc-login__submit:hover {
    background: var(--color-white) !important;
}

/* WooCommerce enmarca form.login / form.register con su propio borde y
   padding, lo que creaba una segunda caja dentro de cada tarjeta. */
.woocommerce .wc-login form.wc-login__form {
    border: none;
    border-radius: 0;
    padding: 0;
    margin: 0;
    text-align: left;
    flex: 1;
}

/* Autocompletar: sin el fondo azul del navegador */
.wc-login .input-text:-webkit-autofill,
.wc-login .input-text:-webkit-autofill:hover,
.wc-login .input-text:-webkit-autofill:focus,
.wc-login .input-text:-webkit-autofill:active {
    -webkit-text-fill-color: #000;
    caret-color: #000;
    transition: background-color 600000s 0s, color 600000s 0s;
}

.wc-login .form-row.wc-login__field {
    margin-bottom: 28px !important;
}

/* Aviso de privacidad de WooCommerce: texto legal, en pequeño */
.wc-login .woocommerce-privacy-policy-text p {
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.6;
    color: var(--color-gray-warm);
    margin: 0 0 24px;
}

.wc-login .woocommerce-privacy-policy-text a {
    color: var(--color-black);
    text-decoration: underline;
}

/* Botón con la flecha animada de los formularios de la web (.cl-form__submit) */
.wc-login .wc-login__submit {
    float: none !important;
    margin: 0 !important;
    gap: 0;
    overflow: hidden;
    transition: background-color 0.25s ease, color 0.25s ease, gap 0.25s ease;
}

.wc-login .wc-login__submit::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    background: no-repeat center / 12px 12px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Crect width='9.12' height='2.4' fill='black'/%3E%3Crect x='9.6001' y='12' width='9.12' height='2.4' transform='rotate(-90 9.6001 12)' fill='black'/%3E%3Crect x='0.47998' y='9.80859' width='9.12' height='2.4' transform='rotate(-45 0.47998 9.80859)' fill='black'/%3E%3C/svg%3E");
    opacity: 0;
    max-width: 0;
    transition: opacity 0.25s ease, max-width 0.25s ease;
}

.wc-login .wc-login__submit:hover {
    gap: 24px;
}

.wc-login .wc-login__submit:hover::after {
    opacity: 1;
    max-width: 12px;
}

.wc-login:not(.wc-login--has-register) .wc-login__box {
    margin: 0 auto;
    width: 100%;
}

.wc-login__box-title {
    font-family: var(--font-primary);
    font-size: 28px;
    font-weight: 500;
    line-height: 1.2;
    color: #000;
    margin: 0;
}

.wc-login__form {
    display: flex;
    flex-direction: column;
}

.wc-login__remember label.woocommerce-form-login__rememberme {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    text-transform: none;
    letter-spacing: 0;
    font-size: 13px;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.wc-login__check {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 18px !important;
    height: 18px !important;
    margin: 0 !important;
    border: 1.5px solid rgba(0, 0, 0, 0.8) !important;
    border-radius: 2px !important;
    background-color: transparent !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 14px 14px !important;
    flex-shrink: 0;
    padding: 0 !important;
    cursor: pointer;
    transition: background-color 0.15s, border-color 0.15s;
}

.wc-login__check:checked {
    background-color: rgba(0, 0, 0, 0.8) !important;
    border-color: rgba(0, 0, 0, 0.8) !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41L9 16.17z'/%3E%3C/svg%3E") !important;
}

/* margin-top: auto lleva los botones al pie de la tarjeta */
.wc-login .wc-login__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 16px 24px;
    text-align: left;
    margin: auto 0 0 !important;
    padding-top: 8px !important;
}

.wc-login__lost {
    font-family: var(--font-primary);
    font-size: 13px;
    font-weight: 500;
    color: var(--color-black);
    text-decoration: underline;
}

.wc-login__lost:hover {
    color: var(--color-ink);
}

.wc-login__note {
    font-family: var(--font-primary);
    font-size: 14px;
    line-height: 1.5;
    color: var(--color-gray-warm);
    margin: 0 0 20px;
}

/* ── Recuperar contraseña ── */
.woocommerce form.lost_reset_password {
    max-width: 480px;
    margin: 96px auto;
    border: 1px solid var(--color-gray);
    border-radius: var(--radius);
    padding: 32px;
}

.woocommerce form.lost_reset_password .form-row {
    float: none;
    width: 100%;
    padding: 0;
    margin: 0 0 20px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .wc-account__wrap {
        padding: 48px 16px;
        gap: 24px;
    }

    .wc-account__title {
        font-size: 32px;
    }

    .wc-account__layout {
        flex-direction: column;
    }

    .wc-account__sidebar.woocommerce-MyAccount-navigation {
        width: 100% !important;
        position: static;
        padding: 12px;
    }

    .wc-account__nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }

    .wc-account__nav-item a {
        padding: 8px 14px;
    }

    .wc-account__nav-item--customer-logout {
        margin: 0;
        padding: 0;
        border-top: none;
    }

    .wc-account__cards {
        grid-template-columns: 1fr;
    }

    .wc-account__content.woocommerce-MyAccount-content {
        padding: 24px 16px;
    }

    .wc-account__content .col2-set {
        flex-direction: column;
    }

    .wc-login {
        padding: 48px 16px;
    }

    .wc-login__title {
        font-size: 40px;
    }

    .wc-login__boxes {
        flex-direction: column;
        align-items: stretch;
    }

    .wc-login__box {
        max-width: none;
        width: 100%;
        padding: 32px 24px;
    }

    .wc-login__deco {
        width: 160px;
        height: 160px;
        right: -50px;
        bottom: -50px;
    }
}

/* ── Carrito vacío ── */
.wc-cart--empty {
    display: flex;
    justify-content: center;
}

.wc-cart__empty {
    border: 1px solid var(--color-gray);
    border-radius: var(--radius);
    padding: 64px 48px;
    max-width: 560px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
}

.wc-cart__empty-icon {
    display: flex;
    color: var(--color-gray-warm);
}

.wc-cart__empty-icon svg {
    width: 64px;
    height: 64px;
}

.wc-cart__empty-title {
    font-family: 'Raleway', sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 28px;
    color: #000;
    margin: 0;
}

.wc-cart__empty-text {
    font-family: 'Raleway', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-gray-warm);
    margin: 0;
    max-width: 42ch;
}

.wc-cart__empty-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-top: 8px;
    background: #000;
    color: #fff;
    border: none;
    border-radius: var(--radius);
    padding: 8px 24px;
    font-family: 'Raleway', sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 24px;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s, gap 0.25s ease, color 0.2s;
    overflow: hidden;
}

.wc-cart__empty-btn::after {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Crect width='9.12' height='2.4' fill='white'/%3E%3Crect x='9.6001' y='12' width='9.12' height='2.4' transform='rotate(-90 9.6001 12)' fill='white'/%3E%3Crect x='0.47998' y='9.80859' width='9.12' height='2.4' transform='rotate(-45 0.47998 9.80859)' fill='white'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px 12px;
    opacity: 0;
    max-width: 0;
    transition: opacity 0.25s ease, max-width 0.25s ease;
}

.wc-cart__empty-btn:hover {
    background: var(--color-yellow);
    color: #000;
    gap: 12px;
}

.wc-cart__empty-btn:hover::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none'%3E%3Crect width='9.12' height='2.4' fill='black'/%3E%3Crect x='9.6001' y='12' width='9.12' height='2.4' transform='rotate(-90 9.6001 12)' fill='black'/%3E%3Crect x='0.47998' y='9.80859' width='9.12' height='2.4' transform='rotate(-45 0.47998 9.80859)' fill='black'/%3E%3C/svg%3E");
    opacity: 1;
    max-width: 12px;
}

@media (max-width: 600px) {
    .wc-cart__empty {
        padding: 48px 24px;
    }
}
