.ezpt-payment-table,
.ezpt-modal {
    --ezpt-primary: #1f4ed8;
    --ezpt-text: #172033;
    --ezpt-muted: #667085;
    --ezpt-border: #e4e7ec;
    --ezpt-soft: #f7f9fc;
    --ezpt-interest: #fff8e7;
    display: inline-block;
    font-family: inherit;
}

.ezpt-trigger {
    appearance: none;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: var(--ezpt-primary);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    cursor: pointer;
    text-decoration: none;
}

.ezpt-trigger:hover,
.ezpt-trigger:focus-visible {
    text-decoration: underline;
}

.ezpt-trigger:focus-visible,
.ezpt-close:focus-visible {
    outline: 2px solid var(--ezpt-primary);
    outline-offset: 3px;
}

.ezpt-trigger-icon {
    display: inline-flex;
    flex: 0 0 auto;
}

.ezpt-modal {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2147483647 !important;
    isolation: isolate;
    transform: none !important;
    display: none !important;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.ezpt-modal.is-open {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.ezpt-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(2px);
}

.ezpt-dialog {
    position: relative;
    z-index: 1;
    width: min(960px, 100%);
    max-height: min(760px, calc(100vh - 40px));
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    color: var(--ezpt-text);
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
}

.ezpt-header {
    padding: 22px 26px 18px;
    border-bottom: 1px solid var(--ezpt-border);
}

.ezpt-header h2 {
    margin: 0 0 7px;
    color: var(--ezpt-text);
    font-size: 24px;
    line-height: 1.2;
}

.ezpt-order-total {
    color: var(--ezpt-muted);
    font-size: 15px;
}

.ezpt-order-total strong {
    color: var(--ezpt-text);
}

.ezpt-close {
    position: absolute;
    top: 12px;
    left: 14px;
    z-index: 2;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--ezpt-soft);
    color: var(--ezpt-text);
    font-size: 28px;
    line-height: 34px;
    cursor: pointer;
}

.ezpt-table-wrap {
    max-height: calc(min(760px, 100vh - 40px) - 155px);
    overflow: auto;
}

.ezpt-table {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 14px;
    text-align: right;
}

.ezpt-table th,
.ezpt-table td {
    padding: 12px 16px;
    border: 0;
    border-bottom: 1px solid var(--ezpt-border);
    white-space: nowrap;
}

.ezpt-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--ezpt-soft);
    color: var(--ezpt-muted);
    font-size: 13px;
    font-weight: 700;
}

.ezpt-table tbody tr:hover td {
    background: #f9fbff;
}

.ezpt-table tbody tr.ezpt-has-interest td {
    background: var(--ezpt-interest);
}

.ezpt-table tbody tr.ezpt-has-interest:hover td {
    background: #fff2cf;
}

.ezpt-note {
    margin: 0;
    padding: 12px 26px 16px;
    color: var(--ezpt-muted);
    background: #fff;
    font-size: 12px;
    line-height: 1.5;
}

body.ezpt-modal-open {
    overflow: hidden;
}

@media (max-width: 700px) {
    .ezpt-modal {
        align-items: flex-end;
        padding: 0;
    }

    .ezpt-dialog {
        width: 100%;
        max-height: 90vh;
        border-radius: 18px 18px 0 0;
    }

    .ezpt-header {
        padding: 20px 20px 16px 56px;
    }

    .ezpt-header h2 {
        font-size: 21px;
    }

    .ezpt-table-wrap {
        max-height: calc(90vh - 154px);
    }

    .ezpt-table {
        min-width: 720px;
    }

    .ezpt-table th,
    .ezpt-table td {
        padding: 11px 13px;
    }

    .ezpt-note {
        padding: 10px 20px 14px;
    }
}
