.oqp-preview-stage {
    border: 0;
    border-radius: 18px;
    box-shadow: inset 0 0 0 1px rgba(5, 27, 57, 0.08);
}

.oqp-launch,
.oqp-primary {
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 16, 38, 0.12);
    transition: background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.oqp-launch:hover,
.oqp-launch:focus,
.oqp-primary:hover,
.oqp-primary:focus {
    box-shadow: 0 11px 26px rgba(0, 16, 38, 0.2);
    transform: translateY(-1px);
}

.oqp-modal__backdrop {
    background: rgba(0, 16, 38, 0.72);
    backdrop-filter: blur(6px);
}

.oqp-modal__panel {
    overflow-x: hidden;
    padding: 46px 48px 48px;
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 24px;
    box-shadow: 0 30px 90px rgba(0, 16, 38, 0.34), 0 4px 18px rgba(0, 16, 38, 0.12);
}

.oqp-modal__panel::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, var(--oqp-navy), var(--oqp-copper), var(--oqp-navy));
    content: '';
}

.oqp-modal__close {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: var(--oqp-pale);
    font-size: 25px;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.oqp-modal__close:hover,
.oqp-modal__close:focus {
    background: var(--oqp-navy);
    color: #fff;
    outline: none;
    transform: rotate(4deg);
}

.oqp-faq-open {
    position: absolute;
    top: 15px;
    left: 16px;
    z-index: 1;
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 6px;
    padding: 0 11px;
    border: 0;
    border-radius: 999px;
    background: var(--oqp-pale);
    color: var(--oqp-navy);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.oqp-faq-open svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.oqp-faq-open:hover,
.oqp-faq-open:focus {
    background: var(--oqp-navy);
    color: #fff;
    outline: none;
    transform: translateY(-1px);
}

.oqp-modal__panel.is-faq-view .oqp-faq-open {
    display: none;
}

.oqp-brand-logo {
    max-width: 170px;
    max-height: 100px;
}

.oqp-secure-badge {
    display: flex;
    width: max-content;
    margin: -10px auto 14px;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border: 1px solid rgba(23, 107, 58, 0.16);
    border-radius: 999px;
    background: rgba(23, 107, 58, 0.06);
    color: #176b3a;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.oqp-secure-badge span {
    display: inline-flex;
}

.oqp-secure-badge svg {
    width: 13px;
    height: 13px;
    fill: currentColor;
}

.oqp-modal h2 {
    margin-bottom: 7px;
    font-size: clamp(28px, 4vw, 34px);
    line-height: 1.15;
}

.oqp-intro {
    font-size: 14px;
}

.oqp-options {
    gap: 14px;
    margin-top: 30px;
}

.oqp-option {
    min-height: 82px;
    padding: 18px 20px;
    border-color: rgba(5, 27, 57, 0.13);
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 16, 38, 0.045);
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.oqp-option:hover,
.oqp-option:focus {
    border-color: rgba(5, 27, 57, 0.7);
    box-shadow: 0 12px 28px rgba(0, 16, 38, 0.1);
    outline: none;
    transform: translateY(-2px);
}

.oqp-option__icon {
    width: 46px;
    height: 46px;
    border: 1px solid rgba(5, 27, 57, 0.08);
}

.oqp-option > span:last-child {
    color: var(--oqp-copper);
    font-size: 22px;
}

.oqp-back {
    border-radius: 7px;
    font-weight: 600;
}

.oqp-back:hover,
.oqp-back:focus {
    color: var(--oqp-navy);
    outline: none;
}

.oqp-panel input {
    min-height: 50px;
    border-color: rgba(5, 27, 57, 0.2);
    border-radius: 10px;
    background: #fbfcfd;
    box-shadow: inset 0 1px 2px rgba(0, 16, 38, 0.035);
    transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.oqp-panel input:focus {
    border-color: var(--oqp-copper);
    background: #fff;
    box-shadow: 0 0 0 3px rgba(5, 27, 57, 0.13);
    outline: none;
}

.oqp-privacy-note {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 6px;
    margin: 13px 0 0;
    color: var(--oqp-muted);
    font-size: 11px;
    line-height: 1.45;
    text-align: center;
}

.oqp-privacy-note span {
    color: #176b3a;
    font-weight: 700;
}

.oqp-saved-note {
    margin: 8px 0 0;
    color: #176b3a;
    font-size: 11px;
    line-height: 1.45;
    text-align: center;
}

.oqp-saved-note[hidden] {
    display: none;
}

.oqp-saved-note button {
    display: inline;
    width: auto;
    margin: 0 0 0 3px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--oqp-copper);
    font-size: inherit;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.oqp-contact-card,
.oqp-bank-details,
.oqp-notice {
    border-radius: 12px;
}

.oqp-contact-card {
    border: 1px solid rgba(5, 27, 57, 0.08);
}

.oqp-bank-details {
    overflow: hidden;
    padding: 0 16px;
    border: 1px solid var(--oqp-border);
}

.oqp-bank-details div:last-child {
    border-bottom: 0;
}

.oqp-bank-details dd {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.oqp-copy {
    padding: 5px 9px;
    border: 1px solid rgba(5, 27, 57, 0.24);
    border-radius: 6px;
    background: #fff;
    color: var(--oqp-navy);
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
}

.oqp-copy:hover,
.oqp-copy:focus {
    border-color: var(--oqp-navy);
    background: var(--oqp-navy);
    color: #fff;
    outline: none;
}

.oqp-bank-references {
    margin: -8px 0 18px;
    padding: 14px 16px;
    border: 1px solid rgba(5, 27, 57, 0.12);
    border-radius: 12px;
    background: var(--oqp-pale);
    color: var(--oqp-navy);
    font-size: 12px;
}

.oqp-bank-references[hidden] {
    display: none;
}

.oqp-bank-references > strong {
    display: block;
    margin-bottom: 8px;
}

.oqp-bank-references > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 7px;
    border-top: 1px solid rgba(5, 27, 57, 0.1);
    font-weight: 700;
}

.oqp-bank-references > div + div {
    margin-top: 7px;
}

.oqp-bank-references > div > div strong,
.oqp-bank-references > div > div small {
    display: block;
}

.oqp-bank-references > div > div small {
    margin-top: 3px;
    color: var(--oqp-muted);
    font-size: 11px;
    font-weight: 400;
}

.oqp-message a {
    color: var(--oqp-copper);
    font-weight: 700;
}

.oqp-invoices-panel {
    width: 100%;
}

.oqp-invoices-panel > p:first-of-type {
    margin: 0 auto 8px;
    color: var(--oqp-navy);
    font-weight: 600;
}

.oqp-multi-payment-note {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 4px 10px;
    margin: 18px 0 4px;
    padding: 14px 16px;
    border: 1px solid rgba(161, 38, 34, 0.24);
    border-radius: 12px;
    background: #fff1f0;
    color: var(--oqp-navy);
    font-size: 12px;
    line-height: 1.5;
}

.oqp-multi-payment-note[hidden] {
    display: none;
}

.oqp-multi-payment-note strong::before {
    margin-right: 6px;
    color: #a12622;
    content: '●';
    font-size: 7px;
    vertical-align: 2px;
}

.oqp-multi-payment-note span {
    color: #755e5d;
}

.oqp-phone-fallback {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    margin: 14px 0 4px;
    padding: 15px 16px;
    border: 1px solid rgba(5, 27, 57, 0.14);
    border-radius: 12px;
    background: var(--oqp-pale);
    color: var(--oqp-navy);
}

.oqp-phone-fallback[hidden] {
    display: none;
}

.oqp-phone-fallback__icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: var(--oqp-copper);
    font-size: 18px;
}

.oqp-phone-fallback strong,
.oqp-phone-fallback span {
    display: block;
}

.oqp-phone-fallback div > span {
    margin-top: 2px;
    color: var(--oqp-muted);
    font-size: 12px;
}

.oqp-phone-fallback a {
    color: var(--oqp-navy);
    font-weight: 800;
    white-space: nowrap;
}

.oqp-modal__panel.is-invoice-view {
    width: min(100%, 880px);
}

.oqp-customer-greeting {
    margin: 0 0 6px !important;
    color: var(--oqp-navy) !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    text-align: center;
}

.oqp-change-customer {
    margin: 0;
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

.oqp-change-customer[hidden] {
    display: none;
}

.oqp-change-customer:hover,
.oqp-change-customer:focus {
    border-color: #fff;
    background: #fff;
    color: var(--oqp-navy);
    outline: none;
}

.oqp-modal__panel.is-faq-view {
    width: min(100%, 680px);
    height: min(760px, calc(100vh - 48px));
    scrollbar-gutter: stable;
}

.oqp-faq-list {
    display: grid;
    gap: 10px;
    margin-top: 24px;
}

.oqp-faq-list details {
    overflow: hidden;
    border: 1px solid rgba(5, 27, 57, 0.13);
    border-radius: 12px;
    background: #fff;
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.oqp-faq-list details[open] {
    border-color: rgba(5, 27, 57, 0.5);
    box-shadow: 0 8px 22px rgba(0, 16, 38, 0.07);
}

.oqp-faq-list summary {
    position: relative;
    padding: 16px 46px 16px 17px;
    color: var(--oqp-navy);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    list-style: none;
    cursor: pointer;
}

.oqp-faq-list summary::-webkit-details-marker {
    display: none;
}

.oqp-faq-list summary::after {
    position: absolute;
    top: 50%;
    right: 17px;
    color: var(--oqp-copper);
    content: '+';
    font-size: 22px;
    font-weight: 400;
    transform: translateY(-50%);
}

.oqp-faq-list details[open] summary::after {
    content: '−';
}

.oqp-faq-list details > div {
    padding: 0 17px 17px;
    color: var(--oqp-muted);
    font-size: 13px;
    line-height: 1.6;
}

.oqp-faq-contact {
    position: sticky;
    bottom: -48px;
    z-index: 3;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto auto auto;
    gap: 12px;
    align-items: center;
    margin: 24px -48px -48px;
    padding: 15px 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    background: var(--oqp-navy);
    color: #fff;
    box-shadow: 0 -10px 28px rgba(0, 16, 38, 0.13);
}

.oqp-faq-contact__icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    font-size: 18px;
}

.oqp-faq-contact strong,
.oqp-faq-contact div > span {
    display: block;
}

.oqp-faq-contact strong {
    font-size: 13px;
    line-height: 1.3;
}

.oqp-faq-contact div > span {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
    line-height: 1.4;
}

.oqp-faq-contact a {
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.oqp-faq-contact a:hover,
.oqp-faq-contact a:focus {
    border-color: #fff;
    background: #fff;
    color: var(--oqp-navy);
    outline: none;
}

.oqp-faq-contact .oqp-copy-phone {
    border-color: rgba(255, 255, 255, 0.35);
    background: transparent;
    color: #fff;
}

.oqp-faq-contact .oqp-copy-phone:hover,
.oqp-faq-contact .oqp-copy-phone:focus {
    border-color: #fff;
    background: #fff;
    color: var(--oqp-navy);
}

.oqp-modal__panel:not(.is-invoice-view):not(.is-faq-view) .oqp-copy-phone {
    display: none;
}

@media (max-width: 600px) {
    .oqp-faq-contact {
        bottom: -26px;
        grid-template-columns: 34px minmax(0, 1fr);
        margin: 22px -22px -26px;
        padding: 13px 16px;
    }

    .oqp-faq-contact__icon {
        width: 34px;
        height: 34px;
    }

    .oqp-faq-contact a {
        grid-column: 1 / -1;
        text-align: center;
    }

    .oqp-change-customer:not([hidden]) {
        grid-column: 1 / -1;
        text-align: center;
    }

    .oqp-copy-phone {
        display: none;
    }
}

.oqp-table-wrap {
    overflow-x: auto;
    margin-top: 22px;
    border: 1px solid var(--oqp-border);
    border-radius: 14px;
}

.oqp-table-wrap[hidden] {
    display: none;
}

.oqp-invoice-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--oqp-navy);
    font-size: 13px;
}

.oqp-invoice-table th,
.oqp-invoice-table td {
    padding: 14px 13px;
    border: 0;
    border-bottom: 1px solid var(--oqp-border);
    text-align: left;
    vertical-align: middle;
}

.oqp-invoice-table th {
    background: var(--oqp-pale);
    color: var(--oqp-muted);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.oqp-invoice-table tbody tr:last-child td {
    border-bottom: 0;
}

.oqp-invoice-table tbody tr:hover {
    background: rgba(240, 242, 244, 0.45);
}

.oqp-invoice-table tbody tr {
    transition: background-color 160ms ease;
}

.oqp-invoice-table strong,
.oqp-invoice-table small {
    display: block;
}

.oqp-invoice-table .oqp-payment-opened {
    margin-top: 6px;
    color: #176b3a;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.oqp-invoice-table .oqp-payment-opened[hidden] {
    display: none;
}

.oqp-invoice-table small {
    margin-top: 3px;
    color: var(--oqp-muted);
}

.oqp-invoice-balance {
    white-space: nowrap;
    font-weight: 700;
}

.oqp-pay-invoice {
    padding: 9px 13px;
    border: 1px solid var(--oqp-navy);
    border-radius: 8px;
    background: var(--oqp-navy);
    color: #fff;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.oqp-invoice-actions {
    display: flex;
    align-items: center;
    gap: 7px;
}

.oqp-bank-invoice {
    padding: 9px 11px;
    border: 1px solid var(--oqp-navy);
    border-radius: 8px;
    background: #fff;
    color: var(--oqp-navy);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
    white-space: nowrap;
    cursor: pointer;
}

.oqp-bank-invoice:hover,
.oqp-bank-invoice:focus {
    background: var(--oqp-navy);
    color: #fff;
    outline: none;
}

.oqp-pay-invoice:hover,
.oqp-pay-invoice:focus {
    border-color: var(--oqp-copper);
    background: var(--oqp-copper);
    outline: none;
}

.oqp-pay-invoice:disabled {
    cursor: wait;
    opacity: 0.65;
}

.oqp-pay-invoice.is-phone {
    border-color: var(--oqp-copper);
    background: #fff;
    color: var(--oqp-copper);
    text-decoration: none;
}

.oqp-pay-invoice.is-phone:hover,
.oqp-pay-invoice.is-phone:focus {
    background: var(--oqp-copper);
    color: #fff;
}

.oqp-message.is-loading::before {
    display: inline-block;
    width: 15px;
    height: 15px;
    margin-right: 8px;
    vertical-align: -3px;
    border: 2px solid rgba(5, 27, 57, 0.2);
    border-top-color: var(--oqp-copper);
    border-radius: 50%;
    content: '';
    animation: oqp-spin 700ms linear infinite;
}

@keyframes oqp-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (max-width: 600px) {
    .oqp-modal {
        align-items: end;
        padding: 10px;
    }

    .oqp-modal__panel {
        width: 100%;
        max-height: calc(100vh - 20px);
        padding: 38px 22px 28px;
        border-radius: 22px;
    }

    .oqp-modal__panel.is-faq-view {
        height: calc(100vh - 20px);
    }

    .oqp-brand {
        margin-bottom: 18px;
    }

    .oqp-brand-logo {
        max-width: 145px;
        max-height: 82px;
    }

    .oqp-option {
        grid-template-columns: 42px 1fr auto;
        min-height: 76px;
        padding: 15px;
    }

    .oqp-invoices-panel {
        width: 100%;
    }

    .oqp-multi-payment-note {
        grid-template-columns: 1fr;
    }

    .oqp-phone-fallback {
        grid-template-columns: auto 1fr;
    }

    .oqp-phone-fallback > a {
        grid-column: 1 / -1;
        padding: 10px;
        border-radius: 8px;
        background: var(--oqp-navy);
        color: #fff;
        text-align: center;
        text-decoration: none;
    }

    .oqp-table-wrap {
        overflow: visible;
        border: 0;
    }

    .oqp-invoice-table,
    .oqp-invoice-table tbody,
    .oqp-invoice-table tr,
    .oqp-invoice-table td {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    .oqp-invoice-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .oqp-invoice-table tr {
        margin-bottom: 12px;
        padding: 15px;
        border: 1px solid var(--oqp-border);
        border-radius: 13px;
        background: #fff;
        box-shadow: 0 5px 16px rgba(0, 16, 38, 0.05);
    }

    .oqp-invoice-table td {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
        padding: 8px 0;
        border-bottom: 1px solid rgba(205, 208, 213, 0.65);
        text-align: right;
    }

    .oqp-invoice-table td:first-child {
        display: block;
        padding-top: 0;
        text-align: left;
    }

    .oqp-invoice-table td:not(:first-child)::before {
        color: var(--oqp-muted);
        content: attr(data-label);
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.05em;
        text-transform: uppercase;
    }

    .oqp-invoice-table td:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .oqp-pay-invoice {
        min-width: 110px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .oqp-launch,
    .oqp-primary,
    .oqp-modal__close,
    .oqp-option,
    .oqp-panel input {
        transition: none;
    }

    .oqp-message.is-loading::before {
        animation-duration: 1400ms;
    }
}
