﻿.pay3-modal .modal-content {
    border: 0;
    border-radius: 26px;
    overflow: hidden;
    max-height: 90vh;
    background: radial-gradient(circle at top right, rgba(56,189,248,.14), transparent 26%), radial-gradient(circle at bottom left, rgba(59,130,246,.10), transparent 24%), linear-gradient(180deg, #0b1220 0%, #111827 100%);
    box-shadow: 0 32px 85px rgba(2,6,23,.58);
    color: #e5eefc;
}

.pay3-modal .modal-header {
    padding: .7rem .9rem;
    border-bottom: 1px solid rgba(148,163,184,.10);
    background: rgba(255,255,255,.02);
}

.pay3-head {
    display: flex;
    align-items: center;
    gap: .7rem;
    width: 100%;
    min-width: 0;
}

.pay3-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    color: #dbeafe;
    background: linear-gradient(135deg, rgba(56,189,248,.22), rgba(37,99,235,.20));
    border: 1px solid rgba(125,211,252,.16);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 8px 20px rgba(14,165,233,.12);
}

    .pay3-icon i {
        font-size: .95rem;
        line-height: 1;
    }

.pay3-title {
    margin: 0;
    font-size: .94rem;
    font-weight: 800;
    line-height: 1.1;
    color: #f8fafc;
    letter-spacing: .01em;
}

.pay3-sub {
    margin: .08rem 0 0 0;
    color: #91a4c4;
    font-size: .7rem;
    font-weight: 600;
    line-height: 1.2;
}

.pay3-modal .btn-close {
    filter: invert(1) grayscale(1) brightness(1.4);
    opacity: .72;
    box-shadow: none !important;
    margin: 0;
    padding: .2rem;
    transform: scale(.9);
}

    .pay3-modal .btn-close:hover {
        opacity: 1;
    }

.pay3-modal .modal-body {
    padding: .85rem;
    overflow: hidden;
}

.pay3-layout {
    display: grid;
    grid-template-columns: minmax(0,1.12fr) minmax(300px,.88fr);
    gap: .85rem;
    min-height: 0;
}

.pay3-card {
    min-height: 0;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(15,23,42,.72) 0%, rgba(15,23,42,.58) 100%);
    border: 1px solid rgba(148,163,184,.10);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 18px 40px rgba(2,6,23,.18);
    backdrop-filter: blur(14px);
}

.pay3-card-head {
    padding: .7rem .8rem;
    border-bottom: 1px solid rgba(148,163,184,.10);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .65rem;
}

.pay3-card-title {
    margin: 0;
    font-size: .84rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.1;
}

.pay3-card-body {
    padding: .8rem;
    min-height: 0;
}

.pay3-hero {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    padding: .85rem;
    background: radial-gradient(circle at top right, rgba(59,130,246,.18), transparent 34%), linear-gradient(135deg, rgba(14,165,233,.10) 0%, rgba(37,99,235,.14) 100%);
    border: 1px solid rgba(96,165,250,.12);
    margin-bottom: .75rem;
}

.pay3-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .65rem;
    margin-bottom: .7rem;
}

.pay3-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

.pay3-badge {
    display: inline-flex;
    align-items: center;
    gap: .34rem;
    min-height: 28px;
    padding: .34rem .58rem;
    border-radius: 999px;
    font-size: .64rem;
    font-weight: 800;
    line-height: 1;
    color: #dbeafe;
    background: rgba(15,23,42,.52);
    border: 1px solid rgba(148,163,184,.14);
    white-space: nowrap;
}

    .pay3-badge.method-cash {
        color: #bbf7d0;
        background: rgba(34,197,94,.10);
        border-color: rgba(34,197,94,.22);
    }

    .pay3-badge.method-card {
        color: #bfdbfe;
        background: rgba(59,130,246,.10);
        border-color: rgba(59,130,246,.22);
    }

.pay3-total-wrap {
    text-align: right;
    min-width: 135px;
}

.pay3-total-label {
    font-size: .66rem;
    color: #9fb0ca;
    font-weight: 700;
    margin-bottom: .18rem;
}

.pay3-total {
    font-size: 1.72rem;
    font-weight: 900;
    line-height: 1;
    color: #ffffff;
    letter-spacing: .02em;
}

.pay3-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: .6rem;
}

.pay3-stat {
    border-radius: 16px;
    padding: .72rem;
    background: rgba(15,23,42,.48);
    border: 1px solid rgba(148,163,184,.10);
}

.pay3-stat-label {
    font-size: .64rem;
    color: #8ea2c0;
    font-weight: 700;
    margin-bottom: .22rem;
    line-height: 1;
}

.pay3-stat-value {
    font-size: .88rem;
    color: #f8fafc;
    font-weight: 900;
    line-height: 1.2;
}

    .pay3-stat-value.good {
        color: #34d399;
    }

    .pay3-stat-value.info {
        color: #93c5fd;
    }

.pay3-note {
    margin-top: .7rem;
    border-radius: 18px;
    padding: .78rem .82rem;
    display: flex;
    align-items: flex-start;
    gap: .62rem;
    border: 1px solid rgba(148,163,184,.12);
    background: rgba(15,23,42,.42);
}

    .pay3-note i {
        font-size: .92rem;
        margin-top: .03rem;
    }

.pay3-note-text {
    font-size: .74rem;
    line-height: 1.4;
    font-weight: 700;
}

.pay3-note.cash {
    color: #bbf7d0;
    background: rgba(34,197,94,.10);
    border-color: rgba(34,197,94,.20);
}

.pay3-note.card {
    color: #bfdbfe;
    background: rgba(59,130,246,.10);
    border-color: rgba(59,130,246,.20);
}

.pay3-doc-type {
    display: flex;
    gap: .5rem;
    margin-bottom: .75rem;
}

.pay3-doc-btn {
    flex: 1;
    border: 1px solid rgba(148,163,184,.12);
    background: rgba(15,23,42,.42);
    color: #cfe2ff;
    border-radius: 16px;
    padding: .72rem .75rem;
    display: flex;
    align-items: center;
    gap: .55rem;
    transition: .18s ease;
    cursor: pointer;
    min-height: 58px;
}

    .pay3-doc-btn:hover {
        border-color: rgba(96,165,250,.28);
        background: rgba(30,41,59,.72);
    }

    .pay3-doc-btn.active {
        background: linear-gradient(135deg, rgba(14,165,233,.16) 0%, rgba(37,99,235,.16) 100%);
        border-color: rgba(59,130,246,.30);
        box-shadow: 0 10px 22px rgba(37,99,235,.14);
    }

.pay3-doc-radio {
    display: none;
}

.pay3-doc-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15,23,42,.68);
    border: 1px solid rgba(148,163,184,.12);
    color: #dbeafe;
    flex: 0 0 auto;
}

.pay3-doc-content {
    min-width: 0;
}

.pay3-doc-title {
    font-size: .76rem;
    font-weight: 800;
    color: #f8fafc;
    line-height: 1.1;
    margin-bottom: .14rem;
}

.pay3-doc-sub {
    font-size: .65rem;
    font-weight: 600;
    color: #8ea2c0;
    line-height: 1.25;
}

.pay3-billing {
    border-radius: 20px;
    padding: .8rem;
    background: rgba(15,23,42,.34);
    border: 1px solid rgba(148,163,184,.10);
}

.pay3-billing-title {
    font-size: .76rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: .65rem;
    line-height: 1.1;
}

.pay3-label {
    display: block;
    font-size: .67rem;
    font-weight: 700;
    color: #9fb0ca;
    margin-bottom: .28rem;
    line-height: 1.1;
}

.pay3-input {
    min-height: 40px;
    border-radius: 14px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(148,163,184,.12);
    color: #f8fafc;
    font-size: .8rem;
    font-weight: 700;
    box-shadow: none !important;
}

    .pay3-input::placeholder {
        color: #7f95b7;
        font-weight: 600;
    }

    .pay3-input:focus {
        background: rgba(255,255,255,.07);
        border-color: rgba(96,165,250,.34);
        color: #fff;
        box-shadow: 0 0 0 .18rem rgba(59,130,246,.12) !important;
    }

.pay3-products-card {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.pay3-products-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.pay3-products-scroll {
    max-height: calc(90vh - 250px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: .3rem;
    scrollbar-gutter: stable;
}

    .pay3-products-scroll::-webkit-scrollbar {
        width: 7px;
    }

    .pay3-products-scroll::-webkit-scrollbar-thumb {
        background: rgba(148,163,184,.22);
        border-radius: 999px;
    }

.pay3-product {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: .65rem;
    padding: .72rem;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(30,41,59,.78) 0%, rgba(15,23,42,.9) 100%);
    border: 1px solid rgba(148,163,184,.10);
    margin-bottom: .55rem;
}

    .pay3-product:last-child {
        margin-bottom: 0;
    }

.pay3-product-left {
    min-width: 0;
}

.pay3-product-title {
    font-size: .8rem;
    font-weight: 900;
    color: #f8fafc;
    line-height: 1.2;
    margin-bottom: .12rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pay3-product-sub {
    font-size: .68rem;
    font-weight: 600;
    color: #8ea2c0;
    line-height: 1.3;
}

.pay3-product-total {
    align-self: center;
    font-size: .8rem;
    font-weight: 900;
    color: #fff;
    white-space: nowrap;
}

.pay3-empty {
    padding: .95rem;
    border-radius: 16px;
    text-align: center;
    color: #8ea2c0;
    font-size: .76rem;
    font-weight: 700;
    background: rgba(15,23,42,.40);
    border: 1px dashed rgba(148,163,184,.18);
}

.pay3-modal .modal-footer {
    padding: .65rem .85rem .8rem .85rem;
    border-top: 1px solid rgba(148,163,184,.10);
    background: rgba(2,6,23,.16);
}

.pay3-btn {
    min-height: 38px;
    min-width: 132px;
    border-radius: 12px;
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .01em;
    box-shadow: none !important;
    padding: .5rem .9rem;
}

.pay3-btn-secondary {
    color: #dbe7fb;
    border: 1px solid rgba(148,163,184,.18);
    background: rgba(15,23,42,.50);
}

    .pay3-btn-secondary:hover {
        color: #fff;
        background: rgba(30,41,59,.85);
        border-color: rgba(148,163,184,.28);
    }

.pay3-btn-primary {
    color: #fff;
    border: 0;
    background: linear-gradient(135deg, #0ea5e9 0%, #2563eb 100%);
    box-shadow: 0 14px 24px rgba(37,99,235,.24) !important;
}

    .pay3-btn-primary:hover {
        color: #fff;
        transform: translateY(-1px);
        background: linear-gradient(135deg, #38bdf8 0%, #2563eb 100%);
    }

.pay3-btn-danger {
    color: #fff;
    border: 0;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

    .pay3-btn-danger:hover {
        color: #fff;
        background: linear-gradient(135deg, #f87171 0%, #dc2626 100%);
    }

@media (max-width: 991.98px) {
    .pay3-modal .modal-content {
        max-height: none;
    }

    .pay3-modal .modal-body {
        overflow: visible;
    }

    .pay3-layout {
        grid-template-columns: 1fr;
    }

    .pay3-products-scroll {
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
}

@media (max-width: 767.98px) {
    .pay3-grid {
        grid-template-columns: 1fr;
    }

    .pay3-hero-top {
        flex-direction: column;
        align-items: flex-start;
    }

    .pay3-total-wrap {
        text-align: left;
        min-width: 0;
    }

    .pay3-doc-type {
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .pay3-modal .modal-header,
    .pay3-modal .modal-body,
    .pay3-modal .modal-footer {
        padding: .75rem;
    }

    .pay3-title {
        font-size: .9rem;
    }

    .pay3-sub {
        font-size: .67rem;
    }

    .pay3-badge {
        font-size: .61rem;
        padding: .26rem .42rem;
    }

    .pay3-card-head,
    .pay3-card-body {
        padding: .75rem;
    }

    .pay3-total {
        font-size: 1.55rem;
    }

    .pay3-btn {
        width: 100%;
        min-width: 100%;
    }
}
















.pay3-tree-item {
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}

.pay3-tree-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.pay3-tree-parent {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

.pay3-tree-parent-left {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.15;
}

.pay3-tree-cantidad {
    flex: 0 0 auto;
    font-size: .80rem;
    font-weight: 700;
    color: #93c5fd;
    background: rgba(59,130,246,.14);
    border-radius: 8px;
    padding: 2px 7px;
}

.pay3-tree-producto {
    font-size: .90rem;
    font-weight: 700;
    color: #f8fafc;
    word-break: break-word;
}

.pay3-tree-parent-total {
    flex: 0 0 auto;
    font-size: .82rem;
    font-weight: 800;
    color: #facc15;
    white-space: nowrap;
}

.pay3-tree-children {
    position: relative;
    margin-top: 6px;
    margin-left: 14px;
    padding-left: 12px;
    border-left: 1px solid rgba(255,255,255,.10);
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.pay3-tree-child {
    position: relative;
}

.pay3-tree-line {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.pay3-tree-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,.45);
    flex: 0 0 auto;
}

.pay3-tree-text {
    font-size: .79rem;
    color: rgba(255,255,255,.82);
    word-break: break-word;
}

.pay3-tree-meta {
    margin-left: 11px;
    margin-top: 2px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: .73rem;
    color: rgba(255,255,255,.56);
}

    .pay3-tree-meta strong {
        color: #facc15;
        font-weight: 700;
    }

.pay3-tree-note .pay3-tree-label {
    font-size: .74rem;
    font-weight: 700;
    color: #cbd5e1;
}
