:root {
    --co-primary: var(--primary, #6c2bd9);
    --co-primary-dark: #5420b5;
    --co-primary-soft: #f3efff;
    --co-secondary: #2563eb;
    --co-success: #15803d;
    --co-success-soft: #ecfdf3;
    --co-danger: #dc2626;
    --co-danger-soft: #fff1f2;
    --co-warning: #d97706;
    --co-text: #1e293b;
    --co-muted: #64748b;
    --co-border: #e2e8f0;
    --co-border-soft: #eef2f7;
    --co-surface: #ffffff;
    --co-soft: #f8fafc;
    --co-shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.05);
    --co-shadow-md: 0 12px 30px rgba(15, 23, 42, 0.09);
    --co-shadow-focus: 0 0 0 3px rgba(108, 43, 217, 0.11);
    --co-radius: 14px;
    --co-radius-sm: 9px;
    --co-transition: 160ms ease;
}

/* ============================================================
   ESTRUCTURA
   ============================================================ */

.checkout-container {
    width: min(1140px, calc(100% - 24px));
    margin-inline: auto;
}

.checkout-header {
    padding: 14px 0 10px;
}

.checkout-header h1 {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0;
    color: var(--co-text);
    font-size: clamp(1.25rem, 2vw, 1.7rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}

.checkout-header h1 i {
    color: var(--co-primary);
}

.checkout-header a {
    color: var(--co-primary);
    font-weight: 700;
    text-decoration: none;
}

.checkout-header a:hover {
    color: var(--co-primary-dark);
    text-decoration: underline;
}

#checkoutApp {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-bottom: 30px;
    overflow-x: clip;
}

#checkoutApp form,
#checkoutApp .checkout-card,
#checkoutApp .checkout-summary {
    min-width: 0;
    max-width: 100%;
}

#checkoutApp .checkout-card,
#checkoutApp .checkout-summary {
    border: 1px solid var(--co-border);
    border-radius: var(--co-radius);
    background: var(--co-surface);
    box-shadow: var(--co-shadow-sm);
}

#checkoutApp .checkout-card {
    padding: 16px;
    margin-bottom: 13px;
    transition:
        border-color var(--co-transition),
        box-shadow var(--co-transition);
}

#checkoutApp .checkout-card:focus-within {
    border-color: #d8ceff;
    box-shadow: var(--co-shadow-md);
}

#checkoutApp .checkout-summary {
    position: sticky;
    top: 14px;
    padding: 18px;
}

#checkoutApp .checkout-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 13px;
    color: var(--co-text);
    font-size: 0.98rem;
    font-weight: 800;
}

#checkoutApp .checkout-title i {
    display: inline-grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border-radius: 8px;
    color: var(--co-primary);
    background: var(--co-primary-soft);
}

/* ============================================================
   GRID DEL FORMULARIO
   ============================================================ */

#checkoutApp .compact-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 10px;
}

#checkoutApp .span-12 {
    grid-column: span 12;
}

#checkoutApp .span-8 {
    grid-column: span 8;
}

#checkoutApp .span-7 {
    grid-column: span 7;
}

#checkoutApp .span-6 {
    grid-column: span 6;
}

#checkoutApp .span-5 {
    grid-column: span 5;
}

#checkoutApp .span-4 {
    grid-column: span 4;
}

/* ============================================================
   CAMPOS
   ============================================================ */

#checkoutApp .form-label {
    display: block;
    margin: 0 0 4px;
    color: #475569;
    font-size: 0.77rem;
    font-weight: 750;
}

#checkoutApp .form-control,
#checkoutApp .form-select {
    width: 100%;
    min-height: 42px;
    padding: 8px 11px;
    border: 1px solid var(--co-border);
    border-radius: var(--co-radius-sm);
    color: var(--co-text);
    background-color: var(--co-surface);
    font-size: 0.9rem;
    transition:
        border-color var(--co-transition),
        box-shadow var(--co-transition),
        background-color var(--co-transition);
}

#checkoutApp .form-control:hover,
#checkoutApp .form-select:hover {
    border-color: #cbd5e1;
}

#checkoutApp .form-control:focus,
#checkoutApp .form-select:focus {
    border-color: var(--co-primary);
    outline: 0;
    box-shadow: var(--co-shadow-focus);
}

#checkoutApp .form-control[readonly] {
    color: #475569;
    background: var(--co-soft);
    cursor: default;
}

#checkoutApp .form-control::placeholder {
    color: #94a3b8;
}

#checkoutApp .document-help,
#checkoutApp .field-help {
    min-height: 17px;
    margin-top: 4px;
    color: var(--co-muted);
    font-size: 0.73rem;
    line-height: 1.35;
}

#checkoutApp .document-help.is-success,
#checkoutApp .field-help.is-success {
    color: var(--co-success);
}

#checkoutApp .document-help.is-error,
#checkoutApp .field-help.is-error {
    color: var(--co-danger);
}

/* ============================================================
   INPUT GROUPS
   ============================================================ */

#checkoutApp .input-group {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    width: 100% !important;
    min-width: 0 !important;
}

#checkoutApp .input-group>.form-control,
#checkoutApp .input-group>.form-select {
    position: relative;
    z-index: 1;
    flex: 1 1 auto !important;
    width: 1% !important;
    min-width: 0 !important;
    margin: 0 !important;
    border-radius:
        var(--co-radius-sm) 0 0 var(--co-radius-sm) !important;
}

#checkoutApp .input-group>.btn {
    position: relative;
    z-index: 2;
    display: inline-flex !important;
    flex: 0 0 auto !important;
    align-items: center !important;
    justify-content: center !important;
    width: auto !important;
    min-width: 48px !important;
    min-height: 42px !important;
    margin: 0 0 0 -1px !important;
    padding: 0 14px !important;
    border-radius:
        0 var(--co-radius-sm) var(--co-radius-sm) 0 !important;
    white-space: nowrap !important;
}

#checkoutApp .input-group:focus-within>.form-control,
#checkoutApp .input-group:focus-within>.form-select {
    z-index: 3;
    border-color: var(--co-primary) !important;
    box-shadow: var(--co-shadow-focus) !important;
}

#checkoutApp .input-group:focus-within>.btn {
    z-index: 4;
}

#checkoutApp .input-group>.btn i {
    margin: 0 !important;
    line-height: 1;
}

/* ============================================================
   BOTONES DE BÚSQUEDA
   ============================================================ */

#checkoutApp .btn-document,
#checkoutApp .btn-ruc-search {
    display: inline-flex !important;
    flex: 0 0 48px !important;
    align-items: center !important;
    justify-content: center !important;
    width: 48px !important;
    min-width: 48px !important;
    max-width: 48px !important;
    min-height: 42px !important;
    padding: 0 !important;
    border: 0;
    color: #fff;
    transition:
        transform var(--co-transition),
        filter var(--co-transition),
        box-shadow var(--co-transition);
}

#checkoutApp .btn-document {
    background: linear-gradient(135deg,
            #2563eb,
            #6d28d9);
    box-shadow:
        0 6px 15px rgba(37, 99, 235, 0.2);
}

#checkoutApp .btn-ruc-search {
    background: linear-gradient(135deg,
            #f97316,
            #db2777);
    box-shadow:
        0 6px 15px rgba(219, 39, 119, 0.2);
}

#checkoutApp .btn-document:hover,
#checkoutApp .btn-ruc-search:hover {
    color: #fff;
    filter: brightness(0.95);
    transform: translateY(-1px);
}

#checkoutApp .btn-document:focus-visible,
#checkoutApp .btn-ruc-search:focus-visible {
    outline:
        3px solid rgba(108, 43, 217, 0.2);
    outline-offset: 2px;
}

#checkoutApp .btn-document:disabled,
#checkoutApp .btn-ruc-search:disabled {
    cursor: wait;
    opacity: 0.7;
    transform: none;
}

/* ============================================================
   FACTURA
   ============================================================ */

#checkoutApp .optional-box {
    margin-top: 12px;
    padding-top: 12px;
    border-top:
        1px solid var(--co-border-soft);
}

#checkoutApp .form-check {
    display: flex;
    align-items: center;
    gap: 8px;
}

#checkoutApp .form-check-input {
    width: 18px;
    height: 18px;
    margin: 0;
    border-color: #cbd5e1;
    cursor: pointer;
}

#checkoutApp .form-check-input:checked {
    border-color: var(--co-primary);
    background-color: var(--co-primary);
}

#checkoutApp .form-check-label {
    color: var(--co-text);
    font-size: 0.86rem;
    font-weight: 700;
    cursor: pointer;
}

#checkoutApp .invoice-fields {
    display: none;
    margin-top: 11px;
    padding: 12px;
    border:
        1px solid var(--co-border);
    border-radius: 11px;
    background:
        linear-gradient(135deg,
            rgba(108, 43, 217, 0.04),
            transparent),
        var(--co-soft);
}

#checkoutApp .invoice-fields.is-visible {
    display: block;
    animation: coFadeIn 180ms ease-out;
}

/* ============================================================
   MÉTODO DE ENTREGA
   ============================================================ */

#checkoutApp .shipping-grid {
    display: grid;
    grid-template-columns:
        repeat(2,
            minmax(0, 1fr));
    gap: 10px;
}

#checkoutApp .shipping-option {
    position: relative;
    padding: 12px;
    border:
        1px solid var(--co-border);
    border-radius: 12px;
    background: var(--co-surface);
    cursor: pointer;
    user-select: none;
    transition:
        border-color var(--co-transition),
        background-color var(--co-transition),
        box-shadow var(--co-transition),
        transform var(--co-transition);
}

#checkoutApp .shipping-option:hover {
    border-color: #c4b5fd;
    transform: translateY(-1px);
}

#checkoutApp .shipping-option.selected {
    border-color: var(--co-primary);
    background:
        linear-gradient(135deg,
            #faf8ff,
            #fff);
    box-shadow: var(--co-shadow-focus);
}

#checkoutApp .shipping-option.selected::after {
    position: absolute;
    top: 9px;
    right: 9px;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    color: #fff;
    background: var(--co-primary);
    content: "✓";
    font-size: 0.72rem;
    font-weight: 900;
}

#checkoutApp .shipping-option:focus-visible {
    outline:
        3px solid rgba(108, 43, 217, 0.17);
    outline-offset: 2px;
}

#checkoutApp .shipping-option .d-flex {
    gap: 10px;
}

#checkoutApp .shipping-option i {
    font-size: 1.05rem;
}

#checkoutApp .shipping-option h6 {
    margin: 0 0 2px;
    color: var(--co-text);
    font-size: 0.89rem;
    font-weight: 800;
}

#checkoutApp .shipping-option p {
    margin: 0 0 4px;
    color: var(--co-muted);
    font-size: 0.75rem;
}

#checkoutApp .shipping-option .badge {
    font-size: 0.68rem;
}

/* ============================================================
   BUSCADOR DE DISTRITOS
   ============================================================ */

#checkoutApp .district-search-control {
    position: relative;
    width: 100%;
}

#checkoutApp .district-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

#checkoutApp .district-search-input-wrap > i {
    position: absolute;
    z-index: 2;
    left: 13px;
    color: var(--co-primary);
    pointer-events: none;
}

#checkoutApp .district-search-input {
    padding-left: 40px;
    padding-right: 42px;
}

#checkoutApp .district-search-input::-webkit-search-cancel-button {
    display: none;
}

#checkoutApp .district-search-clear {
    position: absolute;
    z-index: 3;
    right: 8px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #64748b;
    background: transparent;
    font-size: 1.25rem;
    line-height: 1;
}

#checkoutApp .district-search-clear:hover {
    color: #fff;
    background: var(--co-primary);
}

#checkoutApp .district-source-select {
    display: none !important;
}

#checkoutApp .district-search-results {
    position: absolute;
    z-index: 12050;
    top: calc(100% + 6px);
    right: 0;
    left: 0;
    max-height: 290px;
    overflow-y: auto;
    overscroll-behavior: contain;
    border: 1px solid var(--co-border);
    border-radius: 11px;
    background: var(--co-surface);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.2);
}

#checkoutApp .district-search-results[hidden] {
    display: none !important;
}

#checkoutApp .district-search-result {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-bottom: 1px solid var(--co-border-soft);
    color: #334155;
    background: #fff;
    text-align: left;
    font-size: 0.84rem;
    line-height: 1.35;
    cursor: pointer;
}

#checkoutApp .district-search-result:last-child {
    border-bottom: 0;
}

#checkoutApp .district-search-result:hover,
#checkoutApp .district-search-result.is-active {
    color: #fff;
    background: var(--co-primary);
}

#checkoutApp .district-search-empty {
    padding: 14px;
    color: var(--co-muted);
    text-align: center;
    font-size: 0.82rem;
}

#checkoutApp .location-meta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 180px;
    gap: 10px;
    margin-top: 10px;
}

/* ============================================================
   PRODUCTOS
   ============================================================ */

#checkoutApp .table-responsive {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: hidden;
}

#checkoutApp .product-table {
    width: 100%;
    min-width: 0;
    margin: 0;
    table-layout: fixed;
}

#checkoutApp .product-table th:first-child,
#checkoutApp .product-table td:first-child {
    width: 55%;
}

#checkoutApp .product-table th:nth-child(2),
#checkoutApp .product-table td:nth-child(2) {
    width: 10%;
}

#checkoutApp .product-table th:nth-child(3),
#checkoutApp .product-table td:nth-child(3),
#checkoutApp .product-table th:nth-child(4),
#checkoutApp .product-table td:nth-child(4) {
    width: 17.5%;
}

#checkoutApp .product-table th {
    padding: 8px;
    border-bottom-color: var(--co-border);
    color: var(--co-muted);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

#checkoutApp .product-table td {
    padding: 10px 8px;
    border-bottom-color:
        var(--co-border-soft);
    vertical-align: middle;
}

#checkoutApp .product-table tbody tr {
    transition:
        background-color var(--co-transition),
        opacity var(--co-transition);
}

#checkoutApp .product-table tbody tr:hover {
    background: #fbfcfe;
}

#checkoutApp .product-info {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

#checkoutApp .product-info > div:last-child {
    min-width: 0;
}

#checkoutApp .product-img,
#checkoutApp .product-img-fallback {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    border-radius: 10px;
}

#checkoutApp .product-img {
    border:
        1px solid var(--co-border-soft);
    object-fit: cover;
    background: var(--co-soft);
}

#checkoutApp .product-img-fallback {
    display: grid;
    place-items: center;
    color: #7c3aed;
    background:
        linear-gradient(135deg,
            #f5f3ff,
            #eef2ff);
    font-size: 1rem;
}

#checkoutApp .product-name {
    max-width: 100%;
    color: var(--co-text);
    font-size: 0.85rem;
    font-weight: 800;
    line-height: 1.28;
    overflow-wrap: anywhere;
    word-break: break-word;
}

#checkoutApp .product-price {
    margin-top: 2px;
    color: var(--co-muted);
    font-size: 0.75rem;
    white-space: nowrap;
}

#checkoutApp .quantity-control {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

#checkoutApp .qty-btn {
    display: inline-grid;
    flex: 0 0 30px;
    place-items: center;
    width: 30px;
    min-width: 30px;
    height: 30px;
    padding: 0;
    border:
        1px solid var(--co-border);
    border-radius: 8px;
    color: #334155;
    background: var(--co-surface);
    font-weight: 900;
    transition:
        color var(--co-transition),
        border-color var(--co-transition),
        background-color var(--co-transition),
        transform var(--co-transition);
}

#checkoutApp .qty-btn:hover {
    border-color: var(--co-primary);
    color: #fff;
    background: var(--co-primary);
    transform: translateY(-1px);
}

#checkoutApp .qty-btn:disabled {
    cursor: wait;
    opacity: 0.5;
    transform: none;
}

#checkoutApp .quantity-display {
    display: inline-block;
    flex: 0 0 36px;
    min-width: 36px;
    color: var(--co-text);
    text-align: center;
    font-size: 0.85rem;
    font-weight: 800;
    white-space: nowrap;
}

#checkoutApp .btn-remove {
    display: inline-grid;
    place-items: center;
    width: 32px;
    min-width: 32px;
    height: 32px;
    padding: 0;
    border:
        1px solid #fecaca;
    border-radius: 8px;
    color: var(--co-danger);
    background: #fff;
    transition:
        color var(--co-transition),
        background-color var(--co-transition),
        transform var(--co-transition);
}

#checkoutApp .btn-remove:hover {
    color: #fff;
    background: var(--co-danger);
    transform: translateY(-1px);
}

#checkoutApp .cart-item-stock-error {
    background:
        var(--co-danger-soft) !important;
    box-shadow:
        inset 4px 0 0 var(--co-danger);
}

/* ============================================================
   RESUMEN
   ============================================================ */

#checkoutApp .summary-store {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 13px;
    padding: 9px 11px;
    border:
        1px solid var(--co-border-soft);
    border-radius: 10px;
    color: #475569;
    background: var(--co-soft);
    font-size: 0.78rem;
    font-weight: 700;
}

#checkoutApp .summary-store i {
    color: var(--co-primary);
}

#checkoutApp .summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 9px;
    color: #475569;
    font-size: 0.88rem;
}

#checkoutApp .summary-value {
    color: var(--co-text);
    font-weight: 800;
    white-space: nowrap;
}

#checkoutApp .total-line {
    margin-top: 10px;
    padding-top: 12px;
    border-top:
        1px solid var(--co-border);
}

#checkoutApp .total-line strong {
    color: var(--co-text);
    font-size: 0.96rem;
}

#checkoutApp .total-amount {
    color: var(--co-primary);
    font-size: 1.28rem;
    font-weight: 900;
    white-space: nowrap;
}

#checkoutApp #couponInput {
    text-transform: uppercase;
}

#checkoutApp #applyCouponBtn {
    flex: 0 0 auto !important;
    min-width: 84px !important;
    padding-inline: 15px !important;
    border-color: var(--co-primary);
    color: #fff;
    background: var(--co-primary);
    font-size: 0.84rem;
    font-weight: 800;
    white-space: nowrap;
}

#checkoutApp #applyCouponBtn:hover {
    border-color: var(--co-primary-dark);
    color: #fff;
    background: var(--co-primary-dark);
}

#checkoutApp .btn-checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 48px;
    margin-top: 15px;
    border: 0;
    border-radius: 11px;
    color: #fff;
    background:
        linear-gradient(135deg,
            var(--co-primary),
            #7c3aed);
    box-shadow:
        0 10px 24px rgba(108, 43, 217, 0.22);
    font-size: 0.93rem;
    font-weight: 900;
    letter-spacing: 0.01em;
    transition:
        transform var(--co-transition),
        filter var(--co-transition),
        box-shadow var(--co-transition);
}

#checkoutApp .btn-checkout:hover:not(:disabled) {
    filter: brightness(0.96);
    transform: translateY(-1px);
    box-shadow:
        0 13px 28px rgba(108, 43, 217, 0.28);
}

#checkoutApp .btn-checkout:disabled {
    cursor: not-allowed;
    opacity: 0.62;
    box-shadow: none;
}

#checkoutApp .secure-copy {
    margin-top: 10px;
    color: var(--co-muted);
    text-align: center;
    font-size: 0.74rem;
}

#checkoutApp .secure-copy i {
    margin-right: 3px;
    color: var(--co-success);
}

/* ============================================================
   MENSAJES
   ============================================================ */

.checkout-notification {
    position: fixed;
    z-index: 12000;
    top: 18px;
    right: 18px;
    max-width:
        min(390px,
            calc(100% - 36px));
    padding: 12px 16px;
    border:
        1px solid var(--co-border);
    border-left-width: 4px;
    border-radius: 11px;
    color: var(--co-text);
    background: var(--co-surface);
    box-shadow:
        0 14px 36px rgba(15, 23, 42, 0.2);
    font-size: 0.86rem;
    font-weight: 700;
    animation: coSlideIn 180ms ease-out;
}

.checkout-notification.success {
    border-left-color: #16a34a;
}

.checkout-notification.warning {
    border-left-color: #f59e0b;
}

.checkout-notification.error {
    border-left-color: #dc2626;
}

.checkout-notification.info {
    border-left-color: #2563eb;
}

/* ============================================================
   ANIMACIONES
   ============================================================ */

@keyframes coFadeIn {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes coSlideIn {
    from {
        opacity: 0;
        transform: translateX(22px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 991.98px) {
    #checkoutApp .checkout-summary {
        position: static;
    }
}

@media (max-width: 767.98px) {
    .checkout-header .d-flex {
        align-items: flex-start !important;
        flex-direction: column;
        gap: 6px;
    }

    #checkoutApp .shipping-grid,
    #checkoutApp .location-meta {
        grid-template-columns: 1fr;
    }

    #checkoutApp .span-8,
    #checkoutApp .span-7,
    #checkoutApp .span-6,
    #checkoutApp .span-5,
    #checkoutApp .span-4 {
        grid-column: span 12;
    }

    #checkoutApp .checkout-card,
    #checkoutApp .checkout-summary {
        padding: 13px;
    }

    #checkoutApp .table-responsive {
        overflow: visible;
    }

    #checkoutApp .product-table,
    #checkoutApp .product-table tbody,
    #checkoutApp .product-table tr,
    #checkoutApp .product-table td {
        display: block;
        width: 100% !important;
        min-width: 0 !important;
    }

    #checkoutApp .product-table {
        table-layout: auto;
    }

    #checkoutApp .product-table thead {
        display: none;
    }

    #checkoutApp .product-table tbody {
        display: grid;
        gap: 10px;
    }

    #checkoutApp .product-table tbody tr {
        overflow: hidden;
        padding: 12px;
        border: 1px solid var(--co-border-soft);
        border-radius: 12px;
        background: #fff;
    }

    #checkoutApp .product-table tbody tr:hover {
        background: #fff;
    }

    #checkoutApp .product-table td {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12px;
        align-items: center;
        padding: 7px 0;
        border: 0;
        text-align: right !important;
        overflow-wrap: anywhere;
    }

    #checkoutApp .product-table td:first-child {
        display: block;
        padding: 0 0 10px;
        text-align: left !important;
        border-bottom: 1px solid var(--co-border-soft);
    }

    #checkoutApp .product-table td:nth-child(2)::before {
        content: 'Cantidad';
    }

    #checkoutApp .product-table td:nth-child(3)::before {
        content: 'Precio';
    }

    #checkoutApp .product-table td:nth-child(4)::before {
        content: 'Subtotal';
    }

    #checkoutApp .product-table td:nth-child(n+2)::before {
        color: var(--co-muted);
        font-size: .72rem;
        font-weight: 800;
        letter-spacing: .03em;
        text-transform: uppercase;
        text-align: left;
    }

    #checkoutApp .product-info {
        align-items: flex-start;
    }

    #checkoutApp .product-price {
        white-space: normal;
        overflow-wrap: anywhere;
    }

}

@media (max-width: 479.98px) {
    .checkout-container {
        width:
            min(100% - 16px,
                1140px);
    }

    #checkoutApp .checkout-title {
        font-size: 0.93rem;
    }

    #checkoutApp .product-img,
    #checkoutApp .product-img-fallback {
        flex-basis: 40px;
        width: 40px;
        height: 40px;
    }

    #checkoutApp .product-name {
        font-size: 0.8rem;
    }

    #checkoutApp .total-amount {
        font-size: 1.18rem;
    }

    #checkoutApp .input-group {
        flex-direction: row !important;
        flex-wrap: nowrap !important;
    }

    #checkoutApp .input-group>.form-control,
    #checkoutApp .input-group>.form-select {
        width: 1% !important;
        min-width: 0 !important;
    }

    #checkoutApp .btn-document,
    #checkoutApp .btn-ruc-search {
        flex: 0 0 44px !important;
        width: 44px !important;
        min-width: 44px !important;
        max-width: 44px !important;
    }

    #checkoutApp #applyCouponBtn {
        min-width: 76px !important;
        padding-inline: 11px !important;
    }
}

@media (prefers-reduced-motion: reduce) {

    #checkoutApp *,
    #checkoutApp *::before,
    #checkoutApp *::after,
    .checkout-notification {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}