.check-payment-page {
    --check-ink: #172033;
    --check-muted: #667085;
    --check-border: #d9e1ec;
    --check-soft: #f4f8fb;
    --check-primary: #0f766e;
    --check-primary-dark: #0b5f59;
    display: grid;
    gap: 0.9rem;
    max-width: 74rem;
    margin: 0 auto;
    padding: 1rem 0 2.5rem;
    color: var(--check-ink);
}

.check-payment-page,
.check-payment-page * {
    box-sizing: border-box;
}

.check-payment-hero {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.95rem 1rem;
    color: #ffffff;
    border-radius: 8px;
    background:
        linear-gradient(135deg, rgba(8, 55, 95, 0.98), rgba(15, 118, 110, 0.9)),
        url("../../images/login-bg.png") center / cover no-repeat;
    box-shadow: 0 16px 50px rgba(15, 23, 42, 0.08);
}

.check-payment-eyebrow {
    display: inline-flex;
    width: fit-content;
    padding: 0.22rem 0.48rem;
    margin-bottom: 0.35rem;
    color: #dffcf5;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(6, 95, 70, 0.32);
    font-size: 0.66rem;
    font-weight: 850;
    text-transform: uppercase;
}

.check-back-link {
    display: inline-flex;
    gap: 0.38rem;
    align-items: center;
    margin-left: 0.4rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.72rem;
    font-weight: 850;
    text-decoration: none;
}

.check-back-link:hover,
.check-back-link:focus {
    color: #ffffff;
    text-decoration: underline;
}

.check-payment-hero h1 {
    margin: 0;
    max-width: 40rem;
    font-size: 1.42rem;
    line-height: 1.15;
    font-weight: 850;
}

.check-payment-hero p {
    max-width: 39rem;
    margin: 0.35rem 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.86rem;
}

.check-payment-amount-card {
    min-width: 12rem;
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.12);
}

.check-payment-amount-card span {
    display: block;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
}

.check-payment-amount-card small {
    display: block;
    margin-bottom: 0.2rem;
    color: #dffcf5;
    font-size: 0.72rem;
    font-weight: 850;
    line-height: 1.15;
}

.check-payment-amount-card strong {
    display: block;
    margin-top: 0.16rem;
    font-size: 1.35rem;
    line-height: 1;
}

.check-payment-layout {
    display: grid;
    grid-template-columns: minmax(15rem, 20rem) minmax(0, 1fr);
    gap: 0.9rem;
    align-items: start;
}

.check-payment-summary,
.check-payment-panel {
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 16px 50px rgba(15, 23, 42, 0.08);
}

.check-payment-summary {
    display: grid;
    gap: 0.85rem;
    padding: 0.85rem;
    position: sticky;
    top: 7.5rem;
}

.check-summary-header .check-payment-eyebrow,
.check-form-heading .check-payment-eyebrow {
    color: var(--check-primary);
    border-color: rgba(15, 118, 110, 0.18);
    background: #f1fbf8;
}

.check-summary-header h2,
.check-form-heading h2 {
    margin: 0;
    color: var(--check-ink);
    font-size: 1.05rem;
    line-height: 1.2;
    font-weight: 850;
}

.check-summary-list {
    display: grid;
    gap: 0.45rem;
    margin: 0;
}

.check-summary-list div {
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--check-border);
    border-radius: 8px;
    background: var(--check-soft);
}

.check-summary-list dt {
    color: var(--check-muted);
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
}

.check-summary-list dd {
    margin: 0.18rem 0 0;
    color: var(--check-ink);
    font-size: 0.9rem;
    font-weight: 850;
    overflow-wrap: anywhere;
}

.check-summary-note {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.55rem;
    align-items: start;
    padding: 0.65rem;
    color: #344054;
    border: 1px solid #c8eee5;
    border-radius: 8px;
    background: #f1fbf8;
    font-size: 0.78rem;
    line-height: 1.35;
}

.check-summary-note i {
    color: var(--check-primary);
    margin-top: 0.15rem;
}

.check-payment-panel {
    overflow: hidden;
}

.check-payment-alert {
    display: grid;
    gap: 0.12rem;
    margin: 0.85rem 0.85rem 0;
    color: #b42318;
    border: 1px solid #fecdc8;
    border-radius: 8px;
    background: #fff4f2;
    font-size: 0.84rem;
}

.check-payment-form {
    display: grid;
    gap: 0.8rem;
    padding: 0.85rem;
}

.check-form-heading {
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--check-border);
}

.check-form-heading p {
    margin: 0.25rem 0 0;
    color: var(--check-muted);
    font-size: 0.82rem;
}

.check-form-section {
    display: grid;
    gap: 0.6rem;
    padding: 0.75rem;
    border: 1px solid var(--check-border);
    border-radius: 8px;
    background: #ffffff;
}

.check-section-title {
    display: flex;
    gap: 0.55rem;
    align-items: center;
}

.check-section-title i {
    display: inline-grid;
    width: 1.65rem;
    height: 1.65rem;
    place-items: center;
    color: var(--check-primary);
    border-radius: 999px;
    background: #e7f5f2;
}

.check-section-title h3 {
    margin: 0;
    color: var(--check-ink);
    font-size: 0.96rem;
    font-weight: 850;
}

.check-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.check-address-grid {
    grid-template-columns: minmax(0, 1fr) minmax(8rem, 12rem);
}

.check-field-wide {
    min-width: 0;
}

.check-field label {
    margin-bottom: 0.25rem;
    color: #344054;
    font-size: 0.78rem;
    font-weight: 800;
}

.check-field .form-control {
    min-height: 2.5rem;
    color: var(--check-ink);
    border: 1px solid var(--check-border);
    border-radius: 8px;
    background: #fbfdff;
    font-size: 0.9rem;
}

.check-field .form-control:focus {
    border-color: rgba(15, 118, 110, 0.58);
    box-shadow: 0 0 0 0.2rem rgba(15, 118, 110, 0.12);
}

.check-field-hint {
    margin-top: 0.22rem;
    color: var(--check-muted);
    font-size: 0.72rem;
    font-weight: 650;
}

.check-field .text-danger,
.check-form-section > .text-danger {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.74rem;
    font-weight: 700;
}

.check-account-type-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.check-account-type-option {
    position: relative;
}

.check-account-type-option .form-check-input {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 1;
    width: 1rem;
    height: 1rem;
    margin: 0;
    border-color: var(--check-border);
}

.check-account-type-label {
    display: grid;
    gap: 0.1rem;
    min-height: 3.15rem;
    padding: 0.55rem 0.65rem 0.55rem 2.15rem;
    border: 1px solid var(--check-border);
    border-radius: 8px;
    background: #fbfdff;
    cursor: pointer;
}

.check-account-type-label span {
    color: var(--check-ink);
    font-size: 0.86rem;
    font-weight: 850;
}

.check-account-type-label small {
    color: var(--check-muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.check-account-type-option .form-check-input:checked + .check-account-type-label {
    border-color: rgba(15, 118, 110, 0.52);
    background: #f1fbf8;
}

.check-form-actions {
    display: flex;
    gap: 0.55rem;
    align-items: center;
    justify-content: flex-end;
    padding-top: 0.15rem;
}

.check-submit-button,
.check-secondary-button {
    min-height: 2.45rem;
    padding: 0.48rem 0.9rem;
    border-radius: 8px;
    font-size: 0.86rem;
    font-weight: 850;
}

.check-submit-button {
    color: #ffffff;
    border: 1px solid var(--check-primary);
    background: var(--check-primary);
    box-shadow: 0 8px 18px rgba(15, 118, 110, 0.18);
}

.check-submit-button:hover,
.check-submit-button:focus {
    color: #ffffff;
    border-color: var(--check-primary-dark);
    background: var(--check-primary-dark);
}

.check-secondary-button {
    color: #344054;
    border: 1px solid var(--check-border);
    background: #ffffff;
}

.check-secondary-button:hover,
.check-secondary-button:focus {
    color: var(--check-primary-dark);
    border-color: rgba(15, 118, 110, 0.38);
    background: #f1fbf8;
}

.check-submit-button:disabled,
.check-secondary-button:disabled {
    color: #64748b;
    border-color: var(--check-border);
    background: #f1f5f9;
    box-shadow: none;
    cursor: not-allowed;
    opacity: 1;
}

.schedule-payment-page .check-payment-layout {
    grid-template-columns: minmax(16rem, 19rem) minmax(0, 1fr);
}

.schedule-table-wrap {
    width: 100%;
    max-height: 30rem;
    overflow: auto;
    border: 1px solid var(--check-border);
    border-radius: 8px;
    background: #ffffff;
}

.schedule-count-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--check-muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.schedule-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
}

.schedule-table thead,
.schedule-table tbody {
    display: block;
}

.schedule-table tr {
    display: grid;
    grid-template-columns: minmax(10rem, 14rem) minmax(7rem, 10rem);
    column-gap: clamp(1.5rem, 5vw, 4rem);
    justify-content: center;
    border-bottom: 1px solid #e8eef5;
}

.schedule-table thead tr {
    position: sticky;
    top: 0;
    z-index: 1;
    background: #f4f8fb;
}

.schedule-table th,
.schedule-table td {
    padding: 0.62rem 0.78rem;
    border-bottom: 0;
    color: var(--check-ink);
    font-size: 0.86rem;
    vertical-align: middle;
}

.schedule-table th {
    color: #52637a;
    background: transparent;
    font-size: 0.7rem;
    font-weight: 850;
    text-align: center;
    text-transform: uppercase;
}

.schedule-table td:last-child {
    text-align: right;
}

.schedule-table tbody tr:last-child {
    border-bottom: 0;
}

.schedule-table td:last-child {
    color: #075f5a;
    font-weight: 850;
}

.arrangement-layout {
    grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr);
}

.arrangement-review-layout {
    grid-template-columns: minmax(0, 1fr);
}

.arrangement-form {
    border-bottom: 1px solid var(--check-border);
}

.arrangement-stage-panel {
    overflow: hidden;
}

.arrangement-builder-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.arrangement-field-wide {
    grid-column: 1 / -1;
}

.arrangement-select-wrap {
    position: relative;
}

.arrangement-select-wrap::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 1rem;
    width: 0.58rem;
    height: 0.58rem;
    border-right: 2px solid var(--check-primary-dark);
    border-bottom: 2px solid var(--check-primary-dark);
    pointer-events: none;
    transform: translateY(-65%) rotate(45deg);
}

.arrangement-select {
    -webkit-appearance: none;
    appearance: none;
    padding-right: 2.75rem;
    cursor: pointer;
}

.arrangement-select:disabled {
    cursor: not-allowed;
}

.arrangement-select-wrap:has(.arrangement-select:disabled)::after {
    border-color: var(--check-muted);
}

.arrangement-money-field {
    display: grid;
    grid-template-columns: 2.4rem minmax(0, 1fr);
    overflow: hidden;
    border: 1px solid var(--check-border);
    border-radius: 8px;
    background: #ffffff;
}

.arrangement-money-field span {
    display: grid;
    place-items: center;
    color: var(--check-primary-dark);
    border-right: 1px solid var(--check-border);
    background: #f1fbf8;
    font-weight: 850;
}

.arrangement-money-field .form-control {
    border: 0;
    border-radius: 0;
}

.arrangement-frequency-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
}

.arrangement-frequency-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.65rem;
    align-items: center;
    min-height: 4.25rem;
    padding: 0.8rem;
    border: 1px solid var(--check-border);
    border-radius: 8px;
    background: #ffffff;
    cursor: pointer;
}

.arrangement-frequency-option:has(input:checked) {
    border-color: rgba(15, 118, 110, 0.42);
    background: #f1fbf8;
}

.arrangement-frequency-option input {
    width: 1.1rem;
    height: 1.1rem;
    accent-color: var(--check-primary);
}

.arrangement-frequency-option strong,
.arrangement-frequency-option small {
    display: block;
}

.arrangement-frequency-option strong {
    color: var(--check-ink);
    font-size: 0.92rem;
    line-height: 1.2;
}

.arrangement-frequency-option small {
    margin-top: 0.15rem;
    color: var(--check-muted);
    font-size: 0.76rem;
    line-height: 1.25;
}

.arrangement-checkbox-option {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.7rem;
    align-items: center;
    padding: 0.78rem;
    border: 1px solid #b7e4d7;
    border-radius: 8px;
    background: #f1fbf8;
    cursor: pointer;
}

.arrangement-checkbox-option input {
    width: 1.15rem;
    height: 1.15rem;
    accent-color: var(--check-primary);
}

.arrangement-checkbox-option strong,
.arrangement-checkbox-option small {
    display: block;
}

.arrangement-checkbox-option strong {
    color: var(--check-ink);
    font-size: 0.94rem;
}

.arrangement-checkbox-option small {
    margin-top: 0.12rem;
    color: var(--check-muted);
    font-size: 0.76rem;
}

.arrangement-downpayment-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid #b7e4d7;
    border-radius: 8px;
    background: #f8fffc;
}

.arrangement-twice-monthly-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid #d8e6ff;
    border-radius: 8px;
    background: #f8fbff;
}

.arrangement-preview {
    display: grid;
    gap: 0.8rem;
    padding: 0.85rem;
}

.arrangement-page .schedule-table tr {
    grid-template-columns: minmax(3rem, 4rem) minmax(10rem, 1fr) minmax(10rem, 1fr) minmax(6rem, 8rem);
    column-gap: 1rem;
    justify-content: stretch;
}

.arrangement-page .schedule-table th {
    text-align: left;
}

.arrangement-page .schedule-table th:last-child,
.arrangement-page .schedule-table td:last-child {
    text-align: right;
}

.arrangement-confirmed-table tr {
    grid-template-columns: minmax(4rem, 6rem) minmax(10rem, 1fr) minmax(7rem, 9rem);
}

.arrangement-editable-table td {
    align-items: center;
}

.arrangement-row-highlight {
    position: relative;
    animation: arrangementRowPulse 3s ease;
}

.arrangement-editable-table .form-control {
    min-height: 2.55rem;
    border: 1px solid var(--check-border);
    border-radius: 8px;
    color: var(--check-ink);
    font-weight: 750;
}

.arrangement-editable-table .arrangement-money-field {
    grid-template-columns: 2rem minmax(0, 1fr);
}

.arrangement-editable-table .arrangement-money-field span {
    font-size: 0.78rem;
}

.arrangement-row-action {
    min-height: 2.45rem;
    padding: 0.35rem 0.65rem;
    border: 1px solid #ffd2d2;
    border-radius: 8px;
    color: #b91c1c;
    background: #fffafa;
    font-weight: 850;
}

.arrangement-row-action:hover,
.arrangement-row-action:focus {
    color: #991b1b;
    border-color: #fca5a5;
    background: #fff1f1;
}

.arrangement-row-action:disabled {
    color: #94a3b8;
    border-color: var(--check-border);
    background: #f8fafc;
    opacity: 0.8;
}

.arrangement-result-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.6rem;
}

.arrangement-result-summary div {
    padding: 0.7rem;
    border: 1px solid var(--check-border);
    border-radius: 8px;
    background: var(--check-soft);
}

.arrangement-result-summary span,
.arrangement-result-summary strong {
    display: block;
}

.arrangement-result-summary span {
    color: var(--check-muted);
    font-size: 0.66rem;
    font-weight: 800;
    text-transform: uppercase;
}

.arrangement-result-summary strong {
    margin-top: 0.15rem;
    color: var(--check-ink);
    font-size: 1rem;
    line-height: 1.1;
}

.arrangement-balanced {
    color: var(--check-primary) !important;
}

.arrangement-unbalanced {
    color: #b45309 !important;
}

.arrangement-schedule-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.arrangement-client-message {
    color: var(--check-muted);
    font-size: 0.86rem;
    font-weight: 750;
}

.arrangement-confirm-actions {
    margin-top: 0.2rem;
}

.arrangement-dialog[hidden] {
    display: none;
}

.arrangement-dialog {
    position: fixed;
    inset: 0;
    z-index: 1080;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.arrangement-dialog-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.42);
}

.arrangement-dialog-box {
    position: relative;
    z-index: 1;
    width: min(100%, 28rem);
    padding: 1rem;
    border: 1px solid var(--check-border);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.24);
}

.arrangement-dialog-box h2 {
    margin: 0.7rem 0 0;
    color: var(--check-ink);
    font-size: 1.24rem;
    font-weight: 900;
}

.arrangement-dialog-box p {
    margin: 0.45rem 0 0;
    color: var(--check-muted);
    font-size: 0.9rem;
}

.arrangement-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.55rem;
    margin-top: 1rem;
}

.arrangement-dialog-open {
    overflow: hidden;
}

@keyframes arrangementRowPulse {
    0% {
        background: #dcfce7;
        box-shadow: inset 0 0 0 2px rgba(15, 118, 110, 0.34);
    }
    100% {
        background: transparent;
        box-shadow: inset 0 0 0 0 rgba(15, 118, 110, 0);
    }
}

.arrangement-demo-complete {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.75rem;
    align-items: start;
    padding: 0.85rem;
    border: 1px solid #b7e4d7;
    border-radius: 8px;
    background: #f1fbf8;
}

.arrangement-demo-complete i {
    display: grid;
    width: 2rem;
    height: 2rem;
    place-items: center;
    color: #ffffff;
    border-radius: 999px;
    background: var(--check-primary);
}

.arrangement-demo-complete h3 {
    margin: 0;
    color: var(--check-ink);
    font-size: 1rem;
    font-weight: 850;
}

.arrangement-demo-complete p {
    margin: 0.25rem 0 0;
    color: #344054;
    font-size: 0.84rem;
    line-height: 1.45;
}

.schedule-action-card {
    display: grid;
    gap: 0.75rem;
    padding: 0.8rem;
    border: 1px solid #c8eee5;
    border-radius: 8px;
    background: #f7fffc;
}

.schedule-action-card p {
    margin: 0;
    color: var(--check-muted);
    font-size: 0.82rem;
}

.schedule-action-form {
    display: grid;
    gap: 0.75rem;
}

.schedule-payment-actions {
    display: flex;
    gap: 0.55rem;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.schedule-payment-actions form {
    margin: 0;
}

.schedule-wallet-button {
    display: inline-flex;
    gap: 0.55rem;
    align-items: center;
    justify-content: center;
}

.schedule-wallet-icons {
    display: inline-flex;
    gap: 0.22rem;
    align-items: center;
    padding: 0.12rem 0.22rem;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.16);
}

.schedule-wallet-icons img {
    display: block;
    width: auto;
    height: 0.74rem;
    max-width: 1.45rem;
}

.card-payment-page .check-payment-layout {
    grid-template-columns: minmax(16rem, 20rem) minmax(0, 1fr);
}

.card-payment-icons,
.card-payment-methods {
    display: flex;
    gap: 0.4rem;
    align-items: center;
    flex-wrap: wrap;
}

.card-payment-icons i,
.card-payment-methods span {
    display: inline-grid;
    min-width: 2.15rem;
    height: 1.75rem;
    place-items: center;
    color: #344054;
    border: 1px solid var(--check-border);
    border-radius: 7px;
    background: #fbfdff;
    font-size: 1.1rem;
}

.card-payment-methods span {
    min-width: 4.5rem;
    height: 2.25rem;
    padding: 0 0.55rem;
}

.card-payment-methods img {
    display: block;
    width: auto;
    max-width: 3.4rem;
    height: 1.28rem;
}

.card-number-group {
    align-items: stretch;
}

.card-number-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.card-inline-icons {
    gap: 0.25rem;
    color: #52637a;
    border-color: var(--check-border);
    border-radius: 0 8px 8px 0;
    background: #ffffff;
}

.card-inline-icons i {
    font-size: 1rem;
}

.card-short-grid {
    grid-template-columns: minmax(0, 1fr) minmax(8rem, 12rem);
}

.card-address-grid {
    grid-template-columns: minmax(0, 1fr) minmax(5.5rem, 7rem) minmax(7rem, 9rem);
}

.card-confirm-modal .modal-content {
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 8px;
    box-shadow: 0 18px 60px rgba(15, 23, 42, 0.16);
}

.card-confirm-modal .modal-header,
.card-confirm-modal .modal-footer {
    border-color: var(--check-border);
}

.card-confirm-modal .modal-title {
    color: var(--check-ink);
    font-weight: 850;
}

.card-confirm-modal .modal-body {
    color: #344054;
}

.card-confirm-modal #submitPayment.card-confirm-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 11rem;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    border-color: var(--check-primary) !important;
    background: var(--check-primary) !important;
    opacity: 1;
    visibility: visible;
    font-size: 0.86rem !important;
    line-height: 1.2 !important;
    white-space: nowrap;
}

.card-confirm-modal #submitPayment.card-confirm-submit:disabled {
    color: #64748b !important;
    -webkit-text-fill-color: #64748b !important;
    border-color: var(--check-border) !important;
    background: #f1f5f9 !important;
}

.card-confirm-modal #submitPayment.card-confirm-submit .card-confirm-submit-label {
    display: inline-block;
    color: inherit !important;
    -webkit-text-fill-color: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    visibility: visible;
    opacity: 1;
}

.wallet-frame-shell {
    position: relative;
    overflow: visible;
    min-height: 44rem;
    border: 1px solid var(--check-border);
    border-radius: 8px;
    background: #f8fafc;
}

.usaepay-card-frame {
    position: relative;
    min-height: 6.25rem;
}

.usaepay-card-entry {
    min-height: 6.25rem;
    overflow: hidden;
    background: #ffffff;
}

.usaepay-card-entry iframe {
    display: block;
    width: 100%;
    min-height: 6.25rem;
    height: 6.25rem;
    border: 0;
}

.wallet-loader {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: grid;
    gap: 0.55rem;
    place-content: center;
    color: var(--check-muted);
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.98), rgba(255, 255, 255, 0.96));
    font-size: 0.84rem;
    font-weight: 800;
    text-align: center;
}

.wallet-loader-ring {
    display: block;
    width: 1.75rem;
    height: 1.75rem;
    margin: 0 auto;
    border: 3px solid rgba(15, 118, 110, 0.18);
    border-top-color: var(--check-primary);
    border-radius: 999px;
    animation: wallet-loader-spin 780ms linear infinite;
}

.usaepay-card-loader {
    border-radius: 8px;
}

.wallet-loader-hidden {
    display: none;
}

@keyframes wallet-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

.wallet-frame {
    display: block;
    width: 100%;
    height: 51rem;
    min-height: 52rem;
    border: 0;
    background: #ffffff;
}

.wallet-fee-message {
    margin: 0;
}

@media (max-width: 991.98px) {
    .check-payment-page {
        padding: 0 0 2rem;
    }

    .check-payment-hero,
    .check-payment-summary,
    .check-payment-panel {
        border-right: 0;
        border-left: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .check-payment-hero {
        display: grid;
        gap: 0.75rem;
        padding: 0.85rem 1rem;
    }

    .check-back-link {
        display: flex;
        width: fit-content;
        margin: 0.35rem 0 0;
    }

    .check-payment-hero h1 {
        font-size: 1.14rem;
    }

    .check-payment-hero p {
        font-size: 0.78rem;
    }

    .check-payment-amount-card {
        width: 100%;
        min-width: 0;
        padding: 0.5rem 0.65rem;
    }

    .check-payment-layout {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .check-payment-summary {
        position: static;
        padding: 0.8rem 1rem;
    }

    .check-summary-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.35rem;
    }

    .check-summary-list div {
        padding: 0.45rem 0.5rem;
    }

    .check-summary-list dt {
        font-size: 0.56rem;
    }

    .check-summary-list dd {
        font-size: 0.72rem;
    }

    .check-summary-note {
        padding: 0.55rem;
        font-size: 0.72rem;
    }

    .check-payment-form {
        padding: 1rem;
    }

    .check-field-grid,
    .check-address-grid,
    .check-account-type-group {
        grid-template-columns: 1fr;
    }

    .check-form-section {
        padding: 0.75rem;
    }

    .check-form-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .schedule-payment-page .check-payment-layout,
    .arrangement-page .check-payment-layout {
        grid-template-columns: 1fr;
    }

    .arrangement-builder-grid,
    .arrangement-frequency-grid,
    .arrangement-twice-monthly-fields,
    .arrangement-result-summary {
        grid-template-columns: 1fr;
    }

    .schedule-payment-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .schedule-payment-actions form,
    .schedule-payment-actions .btn {
        width: 100%;
    }

    .schedule-table th,
    .schedule-table td {
        padding: 0.55rem 0.62rem;
        font-size: 0.78rem;
    }

    .schedule-table tr {
        grid-template-columns: minmax(7rem, 1fr) minmax(5rem, auto);
        column-gap: 0.75rem;
        justify-content: stretch;
    }

    .arrangement-page .schedule-table tr {
        grid-template-columns: minmax(2.5rem, 3rem) minmax(7rem, 1fr) minmax(5.5rem, auto);
        column-gap: 0.5rem;
    }

    .schedule-table-wrap {
        max-height: 22rem;
    }

    .arrangement-page .schedule-table-wrap {
        max-height: none;
        overflow: visible;
        border: 0;
        background: transparent;
    }

    .arrangement-page .schedule-table thead {
        display: none;
    }

    .arrangement-page .schedule-table tbody {
        display: grid;
        gap: 0.65rem;
    }

    .arrangement-page .schedule-table tr {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "payment action"
            "date amount";
        gap: 0.55rem;
        padding: 0.65rem;
        border: 1px solid var(--check-border);
        border-radius: 8px;
        background: #ffffff;
    }

    .arrangement-page .schedule-table td {
        min-width: 0;
        padding: 0;
        font-size: 0.78rem;
        text-align: left;
    }

    .arrangement-page .schedule-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.25rem;
        color: #52637a;
        font-size: 0.58rem;
        font-weight: 850;
        line-height: 1.1;
        text-transform: uppercase;
    }

    .arrangement-page .schedule-table td:nth-child(1) {
        grid-area: payment;
        color: var(--check-ink);
        font-weight: 900;
    }

    .arrangement-page .schedule-table td:nth-child(2) {
        grid-area: date;
    }

    .arrangement-page .schedule-table td:nth-child(3) {
        grid-area: amount;
    }

    .arrangement-page .schedule-table td:nth-child(4) {
        grid-area: action;
        display: flex;
        align-items: start;
        justify-content: flex-end;
    }

    .arrangement-page .schedule-table td:nth-child(4)::before {
        display: none;
    }

    .arrangement-editable-table .form-control {
        min-height: 2.38rem;
        font-size: 0.86rem;
    }

    .arrangement-row-action {
        min-height: 2.2rem;
        padding: 0.3rem 0.65rem;
        font-size: 0.78rem;
    }

    .arrangement-schedule-actions,
    .arrangement-confirm-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .arrangement-client-message {
        font-size: 0.78rem;
    }

    .card-payment-page .check-payment-layout,
    .card-short-grid,
    .card-address-grid {
        grid-template-columns: 1fr;
    }

    .card-inline-icons {
        padding-right: 0.5rem;
        padding-left: 0.5rem;
    }

}

@media (max-width: 575.98px) {
    .check-summary-list {
        grid-template-columns: 1fr;
    }

    .check-payment-amount-card strong {
        font-size: 1.18rem;
    }

    .arrangement-preview {
        padding: 0.8rem 1rem 1rem;
    }

    .arrangement-page .schedule-table tr {
        grid-template-columns: 1fr;
        grid-template-areas:
            "payment"
            "date"
            "amount"
            "action";
    }

    .arrangement-page .schedule-table td:nth-child(4) {
        justify-content: stretch;
    }

    .arrangement-page .schedule-table td:nth-child(4) .btn {
        width: 100%;
    }

    .arrangement-confirmed-page .check-payment-summary {
        gap: 0.55rem;
    }

    .arrangement-confirmed-page .check-summary-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.35rem;
    }

    .arrangement-confirmed-page .check-summary-list div {
        padding: 0.42rem;
    }

    .arrangement-confirmed-page .check-summary-list dt {
        font-size: 0.5rem;
        line-height: 1.1;
    }

    .arrangement-confirmed-page .check-summary-list dd {
        font-size: 0.68rem;
        line-height: 1.1;
    }

    .arrangement-confirmed-page .check-summary-note {
        padding: 0.48rem;
        font-size: 0.68rem;
    }

    .arrangement-confirmed-page .check-payment-form {
        padding: 0.8rem;
    }

    .arrangement-confirmed-page .check-form-heading {
        margin-bottom: 0.15rem;
    }

    .arrangement-confirmed-page .arrangement-confirmed-wrap {
        max-height: 18rem;
        overflow: auto;
        border: 1px solid var(--check-border);
        background: #ffffff;
    }

    .arrangement-confirmed-page .arrangement-confirmed-table thead {
        display: none;
    }

    .arrangement-confirmed-page .arrangement-confirmed-table tbody {
        display: block;
    }

    .arrangement-confirmed-page .arrangement-confirmed-table tr {
        display: grid;
        grid-template-columns: 2.5rem minmax(6rem, 1fr) auto;
        grid-template-areas: none;
        gap: 0.35rem;
        align-items: center;
        padding: 0.42rem 0.5rem;
        border: 0;
        border-bottom: 1px solid #e8eef5;
        border-radius: 0;
        background: #ffffff;
    }

    .arrangement-confirmed-page .arrangement-confirmed-table tbody tr:last-child {
        border-bottom: 0;
    }

    .arrangement-confirmed-page .arrangement-confirmed-table td {
        grid-area: auto;
        padding: 0;
        font-size: 0.78rem;
    }

    .arrangement-confirmed-page .arrangement-confirmed-table td::before {
        display: none;
    }

    .arrangement-confirmed-page .arrangement-confirmed-table td:nth-child(1) {
        color: #52637a;
        font-weight: 850;
    }

    .arrangement-confirmed-page .arrangement-confirmed-table td:nth-child(2) {
        color: var(--check-ink);
    }

    .arrangement-confirmed-page .arrangement-confirmed-table td:nth-child(3) {
        color: var(--check-primary-dark);
        font-weight: 850;
        text-align: right;
    }

    .arrangement-confirmed-page .arrangement-demo-complete {
        padding: 0.6rem;
    }

    .arrangement-dialog {
        align-items: end;
        padding: 0;
    }

    .arrangement-dialog-box {
        width: 100%;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 8px 8px 0 0;
    }

    .arrangement-dialog-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .card-number-group {
        display: grid;
    }

    .card-number-group .form-control,
    .card-inline-icons {
        width: 100%;
        border-radius: 8px;
    }

    .card-inline-icons {
        justify-content: flex-start;
        border-top: 0;
        border-top-left-radius: 0;
        border-top-right-radius: 0;
    }

    .card-number-group .form-control {
        border-bottom-right-radius: 0;
        border-bottom-left-radius: 0;
    }

    .usaepay-card-frame,
    .usaepay-card-entry,
    .usaepay-card-entry iframe {
        min-height: 12rem;
        height: 12rem;
    }

}
.channelpay-frame-shell {
    min-height: 680px;
    overflow: hidden;
}

.channelpay-frame {
    width: 100%;
    min-height: 680px;
    border: 0;
    display: block;
}
