.checkout-page-body {
    background:
        radial-gradient(circle at top left, rgba(5, 114, 216, .08), transparent 30%),
        linear-gradient(180deg, #f8fbff 0%, #f3f7fb 100%);
    color: #2c3e50;
}

.checkout-shell {
    max-width: 1260px;
    margin: 0 auto;
    padding: 0 20px 40px;
}

.checkout-mini-header-inner {
    border-bottom: 1px solid #d0e4f7;
}

.checkout-page-body .checkout-progress-line {
    background: #b3d9f7;
}

.checkout-page-body .checkout-step-circle {
    border-color: #7bb8e8;
}

.checkout-step.done .checkout-step-circle,
.checkout-step.active .checkout-step-circle {
    background: #004F9F;
    border-color: #004F9F;
}

.checkout-step.done .checkout-step-label,
.checkout-step.active .checkout-step-label,
.checkout-page-body .checkout-link-action,
.delivery-info-edit {
    color: #004F9F;
}

.content-card,
.summary-card,
.checkout-help-card {
    background: rgba(255, 255, 255, .96);
    border: 1px solid #d0e4f7;
    box-shadow: 0 18px 40px rgba(5, 114, 216, .08);
}

.checkout-panel {
    border-radius: 24px;
    padding: 28px;
}

.checkout-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    margin-bottom: 20px;
}

.checkout-panel-title {
    font-size: 2rem;
    font-weight: 700;
    color: #1a3a52;
}

.checkout-panel-subtitle {
    color: #5c6b7a;
    max-width: 720px;
}

.checkout-badge-summary {
    min-width: 110px;
    border-radius: 999px;
    padding: 10px 16px;
    text-align: center;
    background: #e3f2fd;
    color: #004F9F;
    font-weight: 700;
}

.checkout-inline-note {
    display: flex;
    gap: 10px;
    align-items: center;
    border-radius: 18px;
    background: #f0f8ff;
    color: #2c5a7a;
    padding: 12px 16px;
    margin-bottom: 18px;
}

.checkout-cart-scroll {
    max-height: 560px;
    overflow-y: auto;
    padding-right: 8px;
}

.checkout-cart-scroll::-webkit-scrollbar {
    width: 10px;
}

.checkout-cart-scroll::-webkit-scrollbar-thumb {
    background: #a3cfed;
    border-radius: 999px;
}

.checkout-empty-state,
.checkout-empty-inline {
    border: 2px dashed #c7e0f4;
    border-radius: 20px;
    padding: 32px 20px;
    text-align: center;
    color: #5c6b7a;
}

.checkout-empty-state i {
    font-size: 2rem;
    color: #004F9F;
    margin-bottom: 10px;
    display: inline-block;
}

.checkout-cart-row,
.checkout-summary-product,
.checkout-address-card,
.checkout-pickup-card,
.codex-mini-cart-item {
    border: 1px solid #d0e4f7;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(5, 114, 216, .06);
}

.checkout-cart-row {
    display: grid;
    grid-template-columns: 110px 1fr auto;
    gap: 16px;
    padding: 18px;
    margin-bottom: 16px;
}

.checkout-cart-row img,
.codex-mini-cart-item img,
.checkout-summary-product img {
    width: 100%;
    height: 96px;
    object-fit: cover;
    border-radius: 16px;
    background: #f0f8ff;
}

.checkout-cart-meta,
.summary-product-meta {
    min-width: 0;
}

.checkout-row-brand,
.summary-product-brand {
    color: #6c7a8c;
    font-size: .85rem;
    margin-bottom: 4px;
}

.checkout-row-name,
.summary-product-name {
    font-weight: 700;
    color: #1a3a52;
    margin-bottom: 8px;
}

.checkout-row-sku,
.checkout-row-unit {
    font-size: .85rem;
    color: #5c6b7a;
}

.checkout-row-aside {
    min-width: 180px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.checkout-row-price {
    text-align: right;
    font-size: 1.4rem;
    font-weight: 800;
    color: #004F9F;
}

.checkout-row-oldprice {
    font-size: .92rem;
    color: #8a97a6;
    text-decoration: line-through;
}

.checkout-tag-free {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #edf9ef;
    color: #2d8a4f;
    font-size: .82rem;
    font-weight: 700;
}

.checkout-qty-control {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #004F9F;
    border-radius: 999px;
    padding: 6px;
    background: #e3f2fd;
}

.checkout-qty-control button,
.mini-cart-qty button {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #004F9F;
    color: #fff;
    font-weight: 700;
    transition: background 0.2s ease;
}

    .checkout-qty-control button:hover,
    .mini-cart-qty button:hover {
        background: #005bb5;
    }

.checkout-qty-control span,
.mini-cart-qty span {
    min-width: 24px;
    text-align: center;
    font-weight: 700;
    color: #004F9F;
}

.checkout-remove-btn,
.mini-remove-btn {
    border: 0;
    background: transparent;
    color: #d84f4f;
    font-size: 1.1rem;
}

.checkout-summary-header,
.checkout-summary-box,
.summary-footer-box {
    padding: 22px 24px;
}

.checkout-summary-header {
    background: linear-gradient(135deg, #e3f2fd 0%, #f0f8ff 100%);
}

.checkout-summary-products {
    padding: 18px 22px 0;
    max-height: 360px;
    overflow-y: auto;
}

.checkout-summary-products.compact {
    max-height: 430px;
}

.checkout-summary-product {
    display: grid;
    grid-template-columns: 72px 1fr auto;
    gap: 12px;
    padding: 12px;
    margin-bottom: 12px;
}

.summary-product-price {
    white-space: nowrap;
    color: #004F9F;
    font-weight: 700;
}

.checkout-summary-inner-box,
.summary-footer-box {
    border-top: 1px solid #d0e4f7;
    background: #fff;
    padding: 16px 28px 18px;
}

.summary-footer-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 26px;
    padding: 8px 0;
    font-size: .98rem;
    color: #5c6b7a;
    line-height: 1.35;
}

.summary-footer-row span:last-child {
    text-align: right;
    min-width: 108px;
    justify-self: end;
    white-space: nowrap;
}

.summary-footer-row.total strong {
    color: #004F9F;
    font-size: 1.5rem;
    min-width: 108px;
    text-align: right;
    justify-self: end;
    white-space: nowrap;
}

.summary-footer-row.total {
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid #d0e4f7;
    color: #1a3a52;
    font-weight: 700;
}
/*codigo*/
.checkout-processing-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 48, 87, .48);
    backdrop-filter: blur(4px);
}

.checkout-processing-card {
    width: min(100%, 420px);
    padding: 34px 28px;
    border-radius: 28px;
    background: rgba(255, 255, 255, .98);
    border: 1px solid #d0e4f7;
    box-shadow: 0 28px 60px rgba(0, 79, 159, .24);
    text-align: center;
}

.checkout-processing-spinner {
    width: 72px;
    height: 72px;
    margin: 0 auto 18px;
    border-radius: 50%;
    border: 6px solid rgba(0, 79, 159, .18);
    border-top-color: #004F9F;
    border-right-color: #0066CC;
    animation: checkoutProcessingSpin .85s linear infinite;
}

.checkout-processing-title {
    margin-bottom: 10px;
    font-size: 1.45rem;
    font-weight: 800;
    color: #1a3a52;
}

.checkout-processing-message {
    margin: 0;
    color: #2c5a7a;
    font-size: 1rem;
    font-weight: 600;
}

@keyframes checkoutProcessingSpin {
    to {
        transform: rotate(360deg);
    }
}

.checkout-address-grid,
.checkout-pickup-list {
    display: grid;
    gap: 16px;
}

.checkout-address-card,
.checkout-pickup-card {
    padding: 18px;
    cursor: pointer;
}

.checkout-address-card.active,
.checkout-pickup-card.active,
.delivery-option-card.active,
.payment-option-card.active,
.choice-radio.active {
    border-color: #004F9F;
    box-shadow: 0 0 0 3px rgba(5, 114, 216, .12);
}

.delivery-option-card,
.payment-option-card,
.choice-radio {
    border: 1px solid #d0e4f7;
    border-radius: 18px;
    background: #fff;
    padding: 18px 20px;
}

.option-radio {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #7bb8e8;
    display: inline-block;
    position: relative;
    flex: 0 0 auto;
}

.active .option-radio::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: #004F9F;
}

.checkout-info-highlight,
.delivery-info-card,
.checkout-success-order {
    border-radius: 18px;
    background: #f0f8ff;
    padding: 18px;
    border: 1px solid #d0e4f7;
}

.checkout-success-panel {
    margin-top: 30px;
}

.checkout-success-icon {
    font-size: 4rem;
    color: #004F9F;
    margin-bottom: 12px;
}

.codex-mini-cart-item {
    display: grid;
    grid-template-columns: 82px 1fr auto;
    gap: 12px;
    padding: 14px;
    margin-bottom: 12px;
}

.mini-cart-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mini-cart-brand {
    color: #6c7a8c;
    font-size: 0.7rem;
    margin-bottom: 0;
    font-weight: 500;
}

.mini-cart-product-name {
    font-weight: 600;
    color: #1a3a52;
    font-size: 0.82rem;
    line-height: 1.25;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.mini-cart-price-qty-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 2px;
}

.mini-cart-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: #004F9F;
    white-space: nowrap;
}

.mini-cart-qty {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #004F9F;
    border-radius: 999px;
    padding: 2px 4px;
    background: #e3f2fd;
}

.mini-cart-qty button {
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 50%;
    background: #004F9F;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    transition: background 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-cart-qty button:hover {
    background: #005bb5;
}

.mini-cart-qty span {
    min-width: 20px;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #004F9F;
}

.mini-cart-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
    justify-content: center;
}

.mini-edit-btn,
.mini-remove-btn {
    border: 0;
    background: transparent;
    font-size: 1.1rem;
    padding: 4px 6px;
    border-radius: 6px;
    transition: all 0.2s ease;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mini-edit-btn {
    color: #004F9F;
    text-decoration: none;
}

.mini-edit-btn:hover {
    background: #e3f2fd;
    color: #005bb5;
}

.mini-remove-btn {
    color: #004F9F;
}

.mini-remove-btn:hover {
    background: #ffe8e8;
    color: #d84f4f;
}

.checkout-tag-free.mini {
    font-size: 0.7rem;
    padding: 2px 8px;
}

.mini-cart-items-scroll {
    max-height: calc(100vh - 280px);
    overflow-y: auto;
    padding: 8px 4px;
    margin: 8px 0;
}

.mini-cart-items-scroll::-webkit-scrollbar {
    width: 8px;
}

.mini-cart-items-scroll::-webkit-scrollbar-track {
    background: #f0f8ff;
    border-radius: 10px;
}

.mini-cart-items-scroll::-webkit-scrollbar-thumb {
    background: #a3cfed;
    border-radius: 10px;
}

.mini-cart-items-scroll::-webkit-scrollbar-thumb:hover {
    background: #7bb8e8;
}

.checkout-secondary-btn,
.checkout-primary-btn {
    min-width: 220px;
    border-radius: 999px;
    padding: 12px 24px;
    font-weight: 700;
}

.checkout-primary-btn {
    background: linear-gradient(135deg, #053d73 0%, #004F9F 100%);
    border-color: #053d73;
}

.checkout-primary-btn:hover {
    background: linear-gradient(135deg, #003d73 0%, #005bb5 100%);
    border-color: #003d73;
}

.checkout-secondary-btn {
    border-color: #b3d9f7;
    color: #004F9F;
}

.checkout-page-body .btn-primary {
    background-color: #0071CE;
    border-color: #0071CE;
}

.checkout-page-body .btn-primary:hover {
    background-color: #004a99;
    border-color: #004a99;
}

.checkout-page-body .btn-outline-primary {
    color: #004F9F;
    border-color: #b3d9f7;
}

.checkout-page-body .btn-outline-primary:hover {
    background: #f0f8ff;
    color: #005bb5;
    border-color: #7bb8e8;
}

.checkout-login-gate {
    border-left: 5px solid #004F9F;
}

.checkout-blocked {
    opacity: .45;
    pointer-events: none;
    user-select: none;
}

.receipt-choice {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.receipt-option-card {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 190px;
    justify-content: flex-start;
}

.receipt-option-name {
    font-weight: 700;
    color: #34191d;
}

.checkout-payment-stack {
    display: grid;
    gap: 16px;
}

.payment-option-card {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    text-align: left;
}

.payment-option-main {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
}

.payment-option-copy {
    min-width: 0;
}

.payment-option-name {
    font-weight: 700;
    color: #34191d;
    margin-bottom: 4px;
}

.payment-option-meta {
    color: #7a6166;
    font-size: .9rem;
    line-height: 1.35;
}

.payment-option-image {
    width: 88px;
    max-height: 46px;
    object-fit: contain;
    border-radius: 10px;
    background: #fff7f7;
    border: 1px solid #f1dadd;
    padding: 4px;
}

.payment-option-icon {
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: #fff2f2;
    color: #004F9F;
    font-size: 1.2rem;
}

.payment-option-preview {
    border: 0;
    background: transparent;
    padding: 0;
    line-height: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.payment-option-preview:focus-visible {
    outline: 2px solid rgba(0, 79, 159, 0.35);
    outline-offset: 4px;
    border-radius: 16px;
}

.login-page-demo {
    max-width: 1240px;
    margin: 0 auto;
    padding: 28px 16px 40px;
}

.login-split-row {
    background: #fff;
    border: 1px solid #f0dfe1;
    box-shadow: 0 16px 40px rgba(120, 38, 47, .08);
}

.login-panel {
    min-height: 480px;
    display: flex;
    align-items: center;
}

.login-panel-left {
    background: linear-gradient(180deg, #f8f6f6 0%, #f2f2f2 100%);
}

.login-panel-right {
    background: #fff;
}

.login-panel-content {
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    padding: 56px 18px;
}

.login-icon-circle {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #d92d37;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.login-title {
    font-size: 2.3rem;
    line-height: 1.05;
    color: #163768;
    margin-bottom: 22px;
}

#loginEmpresaNombre,
#registroEmpresaNombre {
    font-size: calc(2.3rem - 2px);
}

.login-input {
    min-height: 44px;
    border: 1px solid #dfe6ef;
    background: #f3f7fd;
}

.login-eye {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #7f8ea3;
}

.login-link {
    color: #1d4f91;
    font-size: .9rem;
    text-decoration: none;
}

.login-inline-message {
    padding: 10px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: .92rem;
}

.login-inline-message.is-error {
    background: #fff1f1;
    color: #b4232d;
}

.login-inline-message.is-success {
    background: #edf8f0;
    color: #2d8a4f;
}

.login-btn-main {
    background: #df2d2d;
    border-color: #df2d2d;
    color: #fff;
    min-width: 120px;
    border-radius: 4px;
    padding: 10px 18px;
    font-weight: 700;
}

.login-btn-outline {
    border: 1px solid #df2d2d;
    color: #df2d2d;
    border-radius: 4px;
    padding: 10px 26px;
}

.login-benefits {
    padding-left: 20px;
    color: #163768;
    line-height: 1.9;
    margin-bottom: 26px;
}

.registro-page-shell,
.mi-cuenta-shell {
    max-width: 1240px;
    margin: 0 auto;
    padding: 28px 16px 40px;
}

.registro-card {
    max-width: 980px;
    padding: 34px 28px;
}

.registro-password-help {
    font-size: .9rem;
    color: #7a6166;
}

.mi-cuenta-side {
    padding: 14px 0;
    background: #f7dede;
}

.mi-cuenta-side-title {
    padding: 0 18px 12px;
    font-weight: 800;
    color: #2f1a1d;
}

.mi-cuenta-side a,
.mi-cuenta-side-button {
    display: block;
    width: 100%;
    padding: 10px 18px;
    color: #2f1a1d;
    text-decoration: none;
    background: transparent;
    border: 0;
    text-align: left;
}

.mi-cuenta-side a.active,
.mi-cuenta-side a:hover,
.mi-cuenta-side-button:hover {
    color: #004F9F;
    background: rgba(255,255,255,.7);
}

.mi-cuenta-section {
    scroll-margin-top: 100px;
    margin-bottom: 26px;
}

.mi-cuenta-section:last-child {
    margin-bottom: 0;
}

.content-card {
    border-radius: 22px;
}

.mi-cuenta-section-flat {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
}

.mi-cuenta-edit-panel {
    margin-bottom: 28px;
    padding: 30px;
    border-radius: 24px;
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.mi-cuenta-edit-head {
    display: block;
    margin-bottom: 22px;
}

.mi-cuenta-edit-kicker {
    color: #7a6166;
    font-size: .92rem;
    margin-bottom: 4px;
}

.mi-cuenta-edit-form {
    display: grid;
    gap: 18px;
}

.mi-cuenta-form-section-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #2f1a1d;
    margin-bottom: 2px;
}

.mi-cuenta-toggle-box {
    border-radius: 18px;
    border: 1px dashed #edd1d5;
    padding: 14px 16px;
    background: #fffafa;
}

.mi-cuenta-checkline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.mi-cuenta-edit-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding-top: 14px;
    border-top: 1px solid #f0d9dc;
    margin-top: 6px;
}

.mi-cuenta-back-link {
    color: #5f4c50;
    text-decoration: none;
    padding-left: 0;
}

.mi-cuenta-back-link:hover {
    color: #004F9F;
}

.mi-cuenta-edit-actions .btn-primary {
    margin-left: auto;
    min-width: 160px;
}

.info-box {
    min-height: 142px;
}

.mi-cuenta-section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.mi-cuenta-address-page-head {
    margin-bottom: 18px;
}

.mi-cuenta-address-copy {
    margin: 8px 0 0;
    color: #7a6166;
    font-size: .98rem;
}

.mi-cuenta-inline-link,
.mi-cuenta-table-link {
    color: #004F9F;
    text-decoration: none;
    font-size: .95rem;
}

.mi-cuenta-inline-link:hover,
.mi-cuenta-table-link:hover {
    color: #053d73;
    text-decoration: underline;
}

.mi-cuenta-order-actions {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.mi-cuenta-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.mi-cuenta-orders-table {
    width: 100%;
    margin-bottom: 0;
    table-layout: fixed;
}

.mi-cuenta-orders-table th,
.mi-cuenta-orders-table td {
    vertical-align: middle;
    word-break: break-word;
    white-space: normal;
    overflow-wrap: anywhere;
}

/* Asegurar que el estado (ej. "PENDIENTE DE PAGO") se ajuste al ancho de su columna */
.mi-cuenta-orders-table td:nth-child(4) .status-ok {
    display: inline-block;
    max-width: 100%;
    white-space: normal;
    line-height: 1.15;
}

.mi-cuenta-orders-table th:nth-child(1),
.mi-cuenta-orders-table td:nth-child(1) {
    width: 24%;
}

.mi-cuenta-orders-table th:nth-child(2),
.mi-cuenta-orders-table td:nth-child(2) {
    width: 14%;
}

.mi-cuenta-orders-table th:nth-child(3),
.mi-cuenta-orders-table td:nth-child(3) {
    width: 18%;
}

.mi-cuenta-orders-table th:nth-child(4),
.mi-cuenta-orders-table td:nth-child(4) {
    width: 26%;
}

.mi-cuenta-orders-table th:nth-child(5),
.mi-cuenta-orders-table td:nth-child(5) {
    width: 18%;
}

/* Acciones más compactas y centradas */
.mi-cuenta-orders-table th:nth-child(5),
.mi-cuenta-orders-table td:nth-child(5) {
    text-align: center;
}

.mi-cuenta-address-box {
    min-height: 200px;
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid #f1d7d8;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.mi-cuenta-address-box.is-default {
    border: 1px solid #ef4444;
    box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.16);
}

.mi-cuenta-address-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.mi-cuenta-address-head h6 {
    margin-bottom: 0;
    font-size: 1.05rem;
    font-weight: 800;
    text-transform: uppercase;
    color: #004F9F;
}

.mi-cuenta-edit-icon,
.mi-cuenta-edit-link {
    border: 0;
    background: #fff;
    color: #2f1a1d;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
    border: 1px solid #b9c2d0;
}

.mi-cuenta-edit-icon {
    width: 34px;
    height: 34px;
    justify-content: center;
    border-radius: 0;
}

.mi-cuenta-edit-icon:hover,
.mi-cuenta-edit-link:hover {
    color: #004F9F;
    border-color: #004F9F;
    background: #fff8f8;
}

.mi-cuenta-address-tools {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    gap: 10px;
    margin-top: auto;
    justify-content: flex-end;
    padding-top: 18px;
}

.mi-cuenta-address-action {
    border: 1px solid #f2b4b7;
    background: #fff;
    color: #004F9F;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: .92rem;
    line-height: 1.2;
    text-decoration: none;
}

.mi-cuenta-address-action:hover {
    background: #fff1f1;
    color: #053d73;
}

.mi-cuenta-address-action.is-active {
    border-color: #ef4444;
    background: #fff5f5;
    color: #b91c1c;
    font-weight: 700;
}

.mi-cuenta-address-box p {
    margin: 0;
    color: #5f4c50;
    line-height: 1.55;
}

.mi-cuenta-data-box {
    min-height: 176px;
    display: flex;
    flex-direction: column;
}

.mi-cuenta-data-box .mi-cuenta-address-head {
    align-items: center;
}

.mi-cuenta-data-box .mi-cuenta-address-head h6 {
    color: #004F9F;
}

.mi-cuenta-data-box p strong {
    color: #2f1a1d;
}

.mi-cuenta-data-box .mi-cuenta-edit-icon {
    margin-left: auto;
}

.mi-cuenta-order-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    color: #004F9F;
    background: #fff1f1;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

@media (max-width: 991.98px) {
    .mi-cuenta-orders-table {
        min-width: 760px;
        table-layout: auto;
    }

    .mi-cuenta-edit-head,
    .mi-cuenta-edit-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .mi-cuenta-address-tools {
        width: 100%;
        align-items: flex-start;
    }
}

.mi-cuenta-order-link:hover {
    background: #004F9F;
    color: #fff;
}

.mi-cuenta-order-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.carrito-toast-container {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: min(680px, calc(100vw - 28px));
    z-index: 2000;
    display: grid;
    gap: 12px;
    pointer-events: none;
}

.carrito-toast {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 10px;
    border: 1px solid transparent;
    box-shadow: 0 16px 40px rgba(34, 24, 28, 0.12);
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease;
    pointer-events: auto;
}

.carrito-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.carrito-toast.is-hiding {
    opacity: 0;
    transform: translateY(-8px);
}

.carrito-toast__icon {
    font-size: 1.45rem;
    line-height: 1;
}

.carrito-toast__content {
    font-size: 1rem;
    line-height: 1.4;
    font-weight: 500;
}

.carrito-toast__close {
    border: 0;
    background: transparent;
    color: inherit;
    padding: 4px;
    line-height: 1;
    opacity: .75;
}

.carrito-toast__close:hover {
    opacity: 1;
}

.carrito-toast--info {
    background: #d9eaff;
    border-color: #bfd8fb;
    color: #124c98;
}

.carrito-toast--success {
    background: #dff2e6;
    border-color: #c3e7cf;
    color: #1b6b3d;
}

.carrito-toast--warning {
    background: #fff0c7;
    border-color: #ffe19a;
    color: #8f5e00;
}

.carrito-toast--danger {
    background: #f9d7dc;
    border-color: #efb8c0;
    color: #912935;
}

@media (max-width: 575.98px) {
    .carrito-toast-container {
        top: 10px;
        width: calc(100vw - 18px);
    }

    .carrito-toast {
        grid-template-columns: auto 1fr;
        padding: 14px 14px;
    }

    .carrito-toast__close {
        grid-column: 1 / -1;
        justify-self: end;
        margin-top: -6px;
    }
}

@media (max-width: 991.98px) {
    .checkout-panel {
        padding: 22px;
    }

    .checkout-cart-row,
    .codex-mini-cart-item {
        grid-template-columns: 92px 1fr;
    }

    .checkout-row-aside {
        grid-column: 1 / -1;
        align-items: flex-start;
    }

    .login-title {
        font-size: 1.85rem;
    }

    .login-panel {
        min-height: auto;
    }
}

@media (max-width: 575.98px) {
    .checkout-shell {
        padding: 0 12px 28px;
    }

    .checkout-panel-head {
        flex-direction: column;
    }

    .checkout-panel-title {
        font-size: 1.55rem;
    }

    .checkout-cart-row,
    .checkout-summary-product,
    .codex-mini-cart-item {
        grid-template-columns: 1fr;
    }

    .checkout-row-aside {
        min-width: 0;
        width: 100%;
    }

    .checkout-secondary-btn,
    .checkout-primary-btn {
        width: 100%;
    }

    .summary-footer-row {
        font-size: .94rem;
    }

    .payment-option-card,
    .payment-option-main {
        flex-direction: column;
        align-items: flex-start;
    }

    .login-page-demo {
        padding: 18px 12px 26px;
    }
}

/* Paleta azul/celeste para carrito online */
.checkout-page-body {
    background:
        radial-gradient(circle at top left, rgba(37, 132, 234, .10), transparent 30%),
        linear-gradient(180deg, #fbfdff 0%, #f2f7fc 100%);
    color: #17324d;
}

.checkout-mini-header-inner,
.checkout-summary-inner-box,
.summary-footer-box,
.mi-cuenta-edit-actions {
    border-color: #dce8f5;
}

.checkout-page-body .checkout-progress-line {
    background: #cfe5fb;
}

.checkout-page-body .checkout-step-circle,
.option-radio {
    border-color: #8fc0ef;
}

.content-card,
.summary-card,
.checkout-help-card,
.checkout-cart-row,
.checkout-summary-product,
.checkout-address-card,
.checkout-pickup-card,
.codex-mini-cart-item,
.delivery-option-card,
.payment-option-card,
.choice-radio,
.mi-cuenta-address-box {
    border-color: #d8e6f5;
    box-shadow: 0 12px 28px rgba(12, 60, 110, .06);
}

.checkout-panel-title,
.receipt-option-name,
.payment-option-name,
.mi-cuenta-side-title,
.mi-cuenta-side a,
.mi-cuenta-side-button,
.mi-cuenta-form-section-title {
    color: #133b63;
}

.checkout-panel-subtitle,
.checkout-empty-state,
.checkout-empty-inline,
.checkout-row-brand,
.summary-product-brand,
.checkout-row-sku,
.checkout-row-unit,
.summary-footer-row,
.payment-option-meta,
.registro-password-help,
.mi-cuenta-address-copy,
.mi-cuenta-address-box p {
    color: #5c7390;
}

.checkout-badge-summary {
    background: #e7f3ff;
    color: #004F9F;
}

.checkout-inline-note,
.checkout-info-highlight,
.delivery-info-card,
.checkout-success-order {
    background: #f0f3f6;
    color: #275483;
    border-color: #dce8f5;
}

.checkout-remove-btn,
.mini-remove-btn,
.payment-option-icon,
.mi-cuenta-inline-link,
.mi-cuenta-table-link,
.mi-cuenta-order-link,
.mi-cuenta-back-link:hover,
.mi-cuenta-edit-icon:hover,
.mi-cuenta-edit-link:hover,
.mi-cuenta-address-head h6,
.mi-cuenta-data-box .mi-cuenta-address-head h6 {
    color: #004F9F;
}

.checkout-summary-header {
    background: linear-gradient(135deg, #e9f4ff 0%, #f6fbff 100%);
}

.checkout-address-card.active,
.checkout-pickup-card.active,
.delivery-option-card.active,
.payment-option-card.active,
.choice-radio.active,
.mi-cuenta-address-box.is-default {
    border-color: #004F9F;
    box-shadow: 0 0 0 3px rgba(5, 114, 216, .12);
}

.active .option-radio::after {
    background: #004F9F;
}

.checkout-primary-btn,
.checkout-page-body .btn-primary,
.login-btn-main,
.registro-card .btn-primary,
.mi-cuenta-edit-actions .btn-primary {
    background: #0071CE;
    border-color: #0071CE;
    color: #fff;
    transition: all 0.3s ease;
}

.checkout-primary-btn:hover,
.checkout-page-body .btn-primary:hover,
.login-btn-main:hover,
.registro-card .btn-primary:hover,
.mi-cuenta-edit-actions .btn-primary:hover {
    background: #004a99;
    border-color: #004a99;
    color: #fff;
}

.checkout-secondary-btn,
.checkout-page-body .btn-outline-primary,
.login-btn-outline,
.registro-card .btn-outline-primary,
.registro-card .btn-outline-secondary,
.mi-cuenta-address-action {
    border-color: #8bbcf0;
    color: #004F9F;
}

.checkout-page-body .btn-outline-primary:hover,
.login-btn-outline:hover,
.registro-card .btn-outline-primary:hover,
.registro-card .btn-outline-secondary:hover,
.mi-cuenta-address-action:hover {
    background: #dff1ff;
    border-color: #57aef5;
    color: #004F9F;
}

.login-icon-circle {
    background: #2584ea;
}

.login-inline-message.is-error {
    background: #eef1f4;
    color: #004F9F;
}

.mi-cuenta-side {
    background: #eaf4ff;
}

.mi-cuenta-side a.active,
.mi-cuenta-side a:hover,
.mi-cuenta-side-button:hover {
    color: #004F9F;
    background: rgba(255,255,255,.85);
}

.mi-cuenta-toggle-box {
    border-color: #cfe0f2;
    background: #f7fbff;
}

.mi-cuenta-address-box,
.mi-cuenta-edit-icon,
.mi-cuenta-edit-link {
    border-color: #8bbcf0;
}

.mi-cuenta-address-action.is-active {
    border-color: #004F9F;
    background: #eaf4ff;
    color: #004F9F;
}

.mi-cuenta-order-link {
    background: #eaf4ff;
}

.checkout-row-branch {
    color: #5f7390;
    font-size: .78rem;
    line-height: 1.25;
    margin-top: 2px;
}

.checkout-pickup-main {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.checkout-pickup-logo {
    width: 42px;
    height: 42px;
    object-fit: contain;
    border: 1px solid #d9e7f7;
    border-radius: 8px;
    background: #fff;
    padding: 4px;
    flex: 0 0 auto;
}

