.qc-modal,
.qc-modal * {
    box-sizing: border-box;
}

.qc-modal[hidden] {
    display: none !important;
}

.qc-modal {
    position: fixed;
    inset: 0;
    /* Above the site webchat widget (#webchat-custom-widget-wrapper z=1e9, .xit-widget-bswc-* z=999999999). */
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-family: inherit;
    color: #1c2740;
}

.qc-modal__backdrop {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: rgba(17, 37, 101, 0.5);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    animation: qc-fade 0.18s ease-out;
}

@keyframes qc-fade {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes qc-rise {
    from { opacity: 0; transform: translateY(14px) scale(0.985); }
    to { opacity: 1; transform: none; }
}

.qc-modal__dialog {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    /* Phone / tablet: fill the screen. dvh follows the mobile browser bar. */
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    border-radius: 0;
    background: #fff;
    overflow: hidden;
    box-shadow: none;
    font-size: 0.95rem;
    line-height: 1.45;
    animation: qc-rise 0.24s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (prefers-reduced-motion: reduce) {
    .qc-modal__backdrop,
    .qc-modal__dialog {
        animation: none;
    }
}

/* Large screens: full height minus 30px top and bottom, 70% of the page width, never wider than 800px.
   No min-width: it would beat max-width on very wide screens. */
@media (min-width: 992px) {
    .qc-modal {
        padding: 30px 1rem;
    }

    .qc-modal__dialog {
        width: 70%;
        max-width: 800px;
        height: calc(100vh - 60px);
        height: calc(100dvh - 60px);
        border-radius: 1.35rem;
        box-shadow: 0 1.6rem 3.2rem rgba(17, 37, 101, 0.22);
    }
}

/* .qc-modal h2,
.qc-modal h3,
.qc-modal ul,
.qc-modal ol {
    margin: 0;
    color: inherit;
    letter-spacing: 0;
    font-family: inherit;
} */

.qc-modal h2,
.qc-modal .h2 {
    font-size: 1.28rem;
    line-height: 1.3;
    font-weight: 800;
    color: #112565;
}

.qc-modal h3,
.qc-modal .h3 {
    font-size: 1.02rem;
    line-height: 1.35;
    font-weight: 800;
    color: #112565;
}

.qc-modal button,
.qc-modal input,
.qc-modal select,
.qc-modal textarea {
    font-family: inherit;
    font-size: inherit;
    line-height: inherit;
}

.qc-modal__head {
    position: relative;
    flex: 0 0 auto;
    padding: 1.35rem 1.35rem 1.05rem;
    border-bottom: 1px solid #eef3ff;
}

.qc-modal__body {
    flex: 1 1 auto;
    min-width: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 0 1rem 0;
}

.qc-modal__close {
    position: absolute;
    top: 1.05rem;
    right: 1.05rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border: 0;
    border-radius: 999px;
    background: #eef3ff;
    color: #2b5cfd;
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.qc-modal__close:hover {
    background: #2b5cfd;
    color: #fff;
    transform: rotate(90deg);
}

/* Keyboard focus ring for every control in the modal. */
.qc-modal button:focus-visible,
.qc-modal a:focus-visible,
.qc-modal summary:focus-visible {
    outline: 3px solid rgba(43, 92, 253, 0.35);
    outline-offset: 2px;
}

.qc-modal__title {
    margin: 0 2.6rem 1.05rem 0;
}

.qc-steps {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem 0.35rem;
    padding: 0;
    list-style: none;
}

.qc-steps li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.qc-steps li[hidden] {
    display: none;
}

.qc-steps li:not(:last-child)::after {
    content: "";
    width: 0.85rem;
    height: 2px;
    border-radius: 999px;
    background: #d5deff;
}

.qc-steps button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border: 0;
    border-radius: 999px;
    background: #eef3ff;
    color: #2b5cfd;
    padding: 0.22rem 0.75rem 0.22rem 0.22rem;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    /* Progress indicator only; the pills have no click handler. */
    cursor: default;
}

.qc-steps button b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    border-radius: 999px;
    background: #d5deff;
    font-size: 0.75rem;
}

.qc-steps button.is-current {
    background: #2b5cfd;
    color: #fff;
}

.qc-steps button.is-current b {
    background: #fff;
    color: #2b5cfd;
}

.qc-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.35rem;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.18);
    color: #fff;
}

.qc-badge--soft {
    background: #eef3ff;
    color: #2b5cfd;
}

.qc-intro {
    display: flex;
    gap: 0.8rem;
    align-items: flex-start;
    padding: 1rem 1.35rem 1rem 1.35rem;
}

.qc-intro h3 {
    margin: 0;
}

.qc-intro p {
    margin: 0.35rem 0 0;
    color: #5c6b8a;
    font-size: 0.84rem;
    line-height: 1.45;
    font-weight: 500;
}

[data-qc-pane="1"] .qc-field,
[data-qc-pane="1"] .qc-details,
[data-qc-pane="1"] .qc-error {
    margin-left: 1.35rem;
    margin-right: 1.35rem;
}

[data-qc-pane="2"] form > .qc-field,
[data-qc-pane="2"] .qc-pair,
[data-qc-pane="2"] .qc-phone,
[data-qc-pane="2"] .qc-switch,
[data-qc-pane="2"] .qc-chip,
[data-qc-pane="2"] .qc-error,
[data-qc-pane="2"] .qc-captcha,
[data-qc-pane="3"] .qc-summary,
[data-qc-pane="3"] .qc-link,
[data-qc-pane="3"] .qc-warning,
[data-qc-pane="3"] .qc-error,
[data-qc-pane="3"] .qc-frame-wrap {
    margin-left: 1.35rem;
    margin-right: 1.35rem;
}

.qc-modal .qc-field {
    display: block;
    min-width: 0;
    margin: 0 1.35rem 1rem;
}

.qc-label,
.qc-kicker {
    display: block;
    margin: 0 0 0.55rem;
    font-size: 0.78rem;
    font-weight: 700;
    color: #33415c;
}

.qc-input {
    display: block;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    border: 1px solid #d5deff;
    border-radius: 0.8rem;
    padding: 0.72rem 0.85rem;
    background: #fff;
    color: #1c2740;
    font-size: 0.92rem;
    line-height: 1.35;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.qc-input:hover {
    border-color: #a9bcff;
}

.qc-input::placeholder {
    color: #8b97b3;
    font-weight: 500;
}

.qc-input:focus {
    outline: none;
    border-color: #2b5cfd;
    box-shadow: 0 0 0 3px rgba(43, 92, 253, 0.16);
}

.qc-modal select.qc-input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    appearance: none;
    padding-right: 2.2rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%232b5cfd' d='M4.2 6.2l3.8 3.8 3.8-3.8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 0.85rem;
}

.qc-modal input.qc-input::-webkit-contacts-auto-fill-button,
.qc-modal input.qc-input::-webkit-credentials-auto-fill-button,
.qc-modal input.qc-input::-webkit-strong-password-auto-fill-button {
    visibility: hidden;
    display: none !important;
    pointer-events: none;
    position: absolute;
    width: 0;
    height: 0;
    margin: 0;
}

.qc-input.is-invalid {
    border-color: #f04438;
    background-color: #fff8f7;
    box-shadow: 0 0 0 3px rgba(240, 68, 56, 0.12);
}

.qc-field-error {
    display: block;
    margin-top: 0.35rem;
    color: #b42318;
    font-size: 0.75rem;
    font-weight: 650;
    line-height: 1.35;
}

.qc-modal form,
.qc-modal [data-qc-pane] {
    max-width: 100%;
    min-width: 0;
}

.qc-modal .qc-pair,
.qc-modal .qc-phone {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.75rem;
    width: auto;
    min-width: 0;
    margin: 0 1.35rem 1.45rem;
}

.qc-modal .qc-pair .qc-field,
.qc-modal .qc-phone .qc-field {
    margin: 0;
}

.qc-modal .qc-pair .qc-input,
.qc-modal .qc-phone .qc-input {
    width: 100%;
}


.qc-validity {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

.qc-validity button {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    width: 100%;
    min-width: 0;
    border: 1px solid #d5deff;
    border-radius: 0.9rem;
    padding: 0.75rem 0.8rem;
    background: #fff;
    color: #1c2740;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.qc-validity button:hover {
    border-color: #2b5cfd;
    transform: translateY(-1px);
    box-shadow: 0 0.4rem 0.9rem rgba(43, 92, 253, 0.1);
}

.qc-validity__name {
    font-size: 0.8rem;
    font-weight: 800;
}

.qc-validity__price {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: 0.35rem;
    min-width: 0;
    font-size: 0.78rem;
    line-height: 1.2;
    white-space: nowrap;
}

.qc-validity__price .qc-now {
    color: #2b5cfd;
    font-size: 0.86rem;
    font-weight: 800;
}

/* .qc-nowline right-aligns for the plan card; inside a period card keep it left. */
.qc-validity__price .qc-nowline {
    justify-content: flex-start;
}

.qc-validity button.is-current {
    border-color: #2b5cfd;
    background: #eef3ff;
    box-shadow: 0 0 0 1px #2b5cfd;
}

.qc-was {
    display: inline-flex;
    color: #8b97b3;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: line-through;
    text-align: right;
}

.qc-nowline {
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 0.28rem;
    white-space: nowrap;
}

.qc-plan-card {
    overflow: hidden;
    border: 1px solid #dbe4ff;
    border-radius: 1rem;
    background: #fff;
}

.qc-pick,
.qc-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.qc-plan-card .qc-pick {
    margin: 0;
    padding: 0.9rem 1rem;
    background: #f7f9ff;
    border-bottom: 1px solid #e3ebff;
}

.qc-summary {
    margin: 1rem 1.35rem 0.45rem;
    padding: 0.85rem 0.95rem;
    border: 1px solid #d5deff;
    border-radius: 0.95rem;
    background: #f7f9ff;
}

.qc-pick__name,
.qc-summary__name {
    font-size: 0.84rem;
    font-weight: 700;
    color: #112565;
}

.qc-pick__price,
.qc-summary__price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 1.12rem;
    font-weight: 800;
    line-height: 1.15;
    color: #112565;
    text-align: right;
}

.qc-pick__price .qc-now,
.qc-summary__price .qc-now {
    font-weight: 800;
}

.qc-period {
    color: #5c6b8a;
    font-size: 0.75rem;
    font-weight: 600;
}

.qc-includes {
    margin: 0.85rem 0 0.35rem;
    padding: 0.85rem 0.8rem 0.75rem;
    border: 1px solid #e3ebff;
    border-radius: 1rem;
    background: #f8faff;
}

/* Whitelabel feature box is tinted, so its rows go white to stay visible. */
.qc-details > .qc-includes .qc-features li {
    background: #fff;
}

.qc-plan-card .qc-includes {
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    padding-bottom: 1.15rem;
}

.qc-details {
    margin-bottom: 1.75rem;
}

.qc-heading {
    margin: 0 0 0.65rem;
    font-size: 0.92rem;
}

.qc-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem;
    margin: .5rem 0 0 0;
    padding: 0;
    list-style: none;
}

.qc-features li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    padding: 0.5rem 0.6rem;
    border: 0;
    border-radius: 0.7rem;
    background: #f5f8ff;
    font-size: 0.78rem;
    line-height: 1.3;
    color: #33415c;
}

.qc-features li::before {
    content: "";
    flex: 0 0 1rem;
    width: 1rem;
    height: 1rem;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8' fill='%232b5cfd'/%3E%3Cpath d='M4.2 8.2l2.3 2.3 5.2-5.3' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.qc-feat__val {
    flex: 0 0 auto;
    font-weight: 800;
    color: #112565;
}

.qc-feat__label {
    min-width: 0;
    color: #5c6b8a;
    font-weight: 600;
}

.qc-modal .pricing-unlimited,
.qc-modal .nk-fcp-icon,
.qc-modal .pricing-unlimited-icon,
.qc-modal .nk-fcp-icon svg,
.qc-modal .pricing-unlimited-icon svg {
    width: 0.95rem;
    height: 0.95rem;
    display: inline-block;
    vertical-align: -0.15rem;
}

.qc-enroll {
    margin: 0 0 0.9rem;
    padding: 0.9rem 1rem;
    border: 1px solid #dbe4ff;
    border-radius: 1rem;
    background: #f7f9ff;
}

.qc-enroll .qc-kicker {
    margin-bottom: 0.2rem;
    color: #5c6b8a;
}

.qc-enroll .qc-price {
    margin: 0;
}

.qc-rate-card {
    margin: 0 0 0.85rem;
    padding: 0.85rem 0.85rem 0.35rem;
    border: 1px solid #e3ebff;
    border-radius: 1rem;
    background: #fff;
    overflow: hidden;
}

.qc-rate-card .qc-heading {
    margin-bottom: 0.55rem;
}

.qc-rates {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.qc-rates th,
.qc-rates td {
    padding: 0.45rem 0.65rem;
    text-align: left;
    border-bottom: 1px solid #eef3ff;
}

.qc-rates tr:last-child td {
    border-bottom: 0;
}

.qc-rates th {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #2b5cfd;
    background: #f4f7ff;
}

.qc-rates td:last-child,
.qc-rates th:last-child {
    text-align: right;
}

.qc-also {
    margin: 0.35rem 0 0.5rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid #e3ebff;
    border-radius: 0.8rem;
    background: #fff;
}

.qc-also summary {
    cursor: pointer;
    color: #2b5cfd;
    font-size: 0.82rem;
    font-weight: 700;
}

.qc-modal .qc-chip {
    display: inline-flex;
    margin: 1.25rem 1.35rem 1.5rem;
    padding: 0.32rem 0.75rem;
    border-radius: 999px;
    background: #eef3ff;
    color: #1e4fe0;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.3;
}

.qc-error {
    margin: 0.2rem 0 0.75rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid #fecdca;
    border-radius: 0.8rem;
    background: #fef3f2;
    color: #b42318;
    font-size: 0.8rem;
    font-weight: 650;
    line-height: 1.4;
}

.qc-error a {
    color: #b42318;
    font-weight: 800;
}

.qc-warning {
    margin: 0.35rem 1.35rem 0.5rem;
    padding: 0.65rem 0.75rem;
    border: 1px solid #fde68a;
    border-radius: 0.8rem;
    background: #fffbeb;
    color: #92400e;
    font-size: 0.8rem;
    font-weight: 650;
}

/* "Already have an account? / Don't have an account?" callout under the form. */
.qc-modal .qc-switch {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem 0.75rem;
    margin: 0.35rem 1.35rem 1rem;
    padding: 0.8rem 0.9rem;
    border: 1px solid #d5deff;
    border-radius: 0.95rem;
    background: linear-gradient(135deg, #f4f7ff 0%, #eef3ff 100%);
    color: #33415c;
    font-size: 0.86rem;
}

.qc-switch__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.1rem;
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 0.7rem;
    background: #fff;
    color: #2b5cfd;
    box-shadow: 0 0.2rem 0.6rem rgba(43, 92, 253, 0.12);
}

.qc-switch__text {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 650;
}

.qc-modal .qc-switch__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex: 0 0 auto;
    border: 1px solid #2b5cfd;
    border-radius: 999px;
    background: #fff;
    color: #2b5cfd;
    padding: 0.45rem 0.95rem;
    font-size: 0.82rem;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.qc-modal .qc-switch__btn svg {
    transition: transform 0.15s ease;
}

.qc-modal .qc-switch__btn:hover {
    background: #2b5cfd;
    color: #fff;
    box-shadow: 0 0.4rem 0.9rem rgba(43, 92, 253, 0.25);
}

.qc-modal .qc-switch__btn:hover svg {
    transform: translateX(2px);
}

.qc-link {
    border: 0;
    background: transparent;
    color: #2b5cfd;
    padding: 0;
    font-weight: 800;
    text-decoration: none;
}

/* Step 3 summary: [plan name + Edit plan] on the left, price on the right. */
.qc-summary__main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
    min-width: 0;
}

.qc-modal .qc-edit {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border: 1px solid #d5deff;
    border-radius: 999px;
    background: #fff;
    color: #2b5cfd;
    padding: 0.28rem 0.7rem;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.qc-modal .qc-edit:hover {
    border-color: #2b5cfd;
    background: #2b5cfd;
    color: #fff;
}

[data-qc-pane="2"] .qc-captcha {
    display: block;
    width: auto;
    min-width: 0;
    margin: 0.5rem 1.35rem 1.05rem;
}

.qc-modal .qc-turnstile {
    width: 100%;
    min-height: 65px;
}

/* Footer: [Back] [—— primary ——]. With Back hidden, the primary button fills the row. */
.qc-nav {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0.75rem;
    flex: 0 0 auto;
    padding: 0.85rem 1.35rem calc(0.95rem + env(safe-area-inset-bottom, 0px));
    background: #fff;
    border-top: 1px solid #eef3ff;
    box-shadow: 0 -0.6rem 1.4rem rgba(17, 37, 101, 0.05);
}

.qc-btn {
    flex: 1 1 auto;
    width: 100%;
    border: 0;
    border-radius: 0.85rem;
    background: linear-gradient(180deg, #4b7bff 0%, #2b5cfd 100%);
    color: #fff;
    padding: 0.85rem 1rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 0.55rem 1.1rem rgba(43, 92, 253, 0.28);
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.qc-btn:hover:not(:disabled) {
    filter: brightness(1.05);
    transform: translateY(-1px);
    box-shadow: 0 0.75rem 1.4rem rgba(43, 92, 253, 0.34);
}

.qc-btn:active:not(:disabled) {
    transform: translateY(0);
}

.qc-btn--ghost {
    flex: 0 0 auto;
    width: auto;
    border: 1px solid #d5deff;
    background: #fff;
    color: #2b5cfd;
    box-shadow: none;
    padding: 0.85rem 1.25rem;
}

.qc-btn--ghost:hover:not(:disabled) {
    filter: none;
    border-color: #2b5cfd;
    background: #eef3ff;
    box-shadow: none;
}

.qc-btn[hidden] {
    display: none;
}

.qc-btn:disabled {
    opacity: 0.6;
    cursor: progress;
}

/* BDT: Step 3 shows a full-width link to SSLCommerz (new tab) instead of the PayPro frame. */
.qc-modal a.qc-btn--ssl {
    display: block;
    width: auto;
    margin: 0.75rem 1.35rem 0.5rem;
    text-align: center;
    text-decoration: none;
    color: #fff;
}

.qc-ssl-note {
    margin: 0 1.35rem 1rem;
    color: #5c6b8a;
    font-size: 0.8rem;
    text-align: center;
}

.qc-ssl-note[hidden],
.qc-frame-wrap[hidden] {
    display: none;
}

.qc-frame-wrap {
    margin: 0.35rem 1.35rem 0.85rem;
    border: 1px solid #d5deff;
    border-radius: 0.95rem;
    overflow: hidden;
}

/* PayPro documents no size for an inline iFrame checkout. Give its form room;
   .qc-modal__body scrolls if the dialog is shorter. */
.qc-frame {
    display: block;
    width: 100%;
    height: clamp(34rem, 78vh, 50rem);
    border: 0;
}

@media (max-width: 575.98px) {
    .qc-frame {
        height: clamp(32rem, 82vh, 46rem);
    }
}

.qc-price {
    margin: 0 0 0.65rem;
    font-size: 1.55rem;
    font-weight: 800;
    line-height: 1.15;
    color: #112565;
}

.qc-price del,
.qc-kicker + .qc-price del {
    display: inline;
    margin-right: 0.35rem;
    color: #8b97b3;
    font-size: 0.95rem;
    font-weight: 600;
}

@media (max-width: 640px) {
    .qc-features {
        grid-template-columns: minmax(0, 1fr);
    }

    .qc-steps button span {
        display: none;
    }

    .qc-steps button.is-current span {
        display: inline;
    }
}

/* Phones: one field per row, and let a billing-period card put the crossed price above the sale price. */
@media (max-width: 575.98px) {
    .qc-modal__head {
        padding: 1.1rem 1rem 0.9rem;
    }

    .qc-modal .qc-pair,
    .qc-modal .qc-phone {
        grid-template-columns: minmax(0, 1fr);
        gap: 1rem;
    }

    /* One period card per row: title left, price right. */
    .qc-validity {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.5rem;
    }

    .qc-validity button {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.8rem 0.9rem;
    }

    .qc-validity__price {
        flex-wrap: wrap;
        justify-content: flex-end;
        row-gap: 0.1rem;
    }

    .qc-nav {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}
