/**
 * OpenPOS support service purchase flow.
 *
 * Shares the design tokens used by landing.css (Poppins, #5e2ced brand, 4px
 * radii) so both shortcodes look like the same product. Scoped under
 * .op-support so nothing leaks into the theme.
 */

.op-support {
    --ops-brand: #5e2ced;
    --ops-brand-soft: #f2eefe;
    --ops-heading: #2c2c51;
    --ops-body: #677294;
    --ops-line: #e8ebf3;
    --ops-ok: #1aa87b;
    --ops-error: #d0342c;
    --ops-radius: 4px;

    box-sizing: border-box;
    max-width: 720px;
    margin: 0 auto;
    font: 300 15px/28px "Poppins", sans-serif;
    color: var(--ops-body);
}

.op-support *,
.op-support *::before,
.op-support *::after {
    box-sizing: inherit;
}

/* Step indicator ------------------------------------------------------ */

.op-support__steps {
    display: flex;
    gap: 32px;
    margin: 0 0 32px;
    padding: 0;
    list-style: none;
}

.op-support__step {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--ops-body);
    opacity: .55;
    transition: opacity .2s ease;
}

.op-support__step.is-active,
.op-support__step.is-done {
    opacity: 1;
}

.op-support__step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: 1px solid var(--ops-line);
    border-radius: 50%;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
}

.op-support__step.is-active .op-support__step-num {
    border-color: var(--ops-brand);
    background: var(--ops-brand);
    color: #fff;
}

.op-support__step.is-done .op-support__step-num {
    border-color: var(--ops-ok);
    color: var(--ops-ok);
}

.op-support__step-label {
    font-weight: 500;
    color: var(--ops-heading);
}

/* Panels -------------------------------------------------------------- */

.op-support__title {
    margin: 0 0 8px;
    font-size: 24px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ops-heading);
}

.op-support__lead {
    margin: 0 0 24px;
}

.op-support__error {
    margin: 0 0 20px;
    padding: 12px 16px;
    border-left: 3px solid var(--ops-error);
    border-radius: var(--ops-radius);
    background: #fdf1f0;
    font-size: 14px;
    line-height: 22px;
    color: var(--ops-error);
}

/* Step 1 -------------------------------------------------------------- */

.op-support__form {
    display: flex;
    gap: 12px;
}

.op-support__input {
    flex: 1 1 auto;
    min-width: 0;
    height: 52px;
    padding: 0 16px;
    border: 1px solid var(--ops-line);
    border-radius: var(--ops-radius);
    background: #fff;
    font: 400 15px/52px "Poppins", monospace;
    letter-spacing: .02em;
    color: var(--ops-heading);
}

.op-support__input:focus {
    border-color: var(--ops-brand);
    outline: 2px solid rgba(94, 44, 237, .18);
    outline-offset: 0;
}

.op-support__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 0 0 auto;
    height: 52px;
    padding: 0 32px;
    border: 0;
    border-radius: var(--ops-radius);
    background: var(--ops-brand);
    font: 500 15px/1 "Poppins", sans-serif;
    color: #fff;
    cursor: pointer;
    transition: background .2s ease, opacity .2s ease;
}

.op-support__button:hover {
    background: #4d1fd6;
}

.op-support__button:disabled {
    opacity: .6;
    cursor: default;
}

.op-support__button--wide {
    width: 100%;
    margin-top: 24px;
}

.op-support__spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: op-support-spin .7s linear infinite;
}

.op-support__form.is-busy .op-support__spinner {
    display: block;
}

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

@media (prefers-reduced-motion: reduce) {
    .op-support__spinner {
        animation: none;
    }
}

/* Step 2 -------------------------------------------------------------- */

.op-support__verified {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 32px;
    padding: 16px 20px;
    border: 1px solid var(--ops-line);
    border-radius: var(--ops-radius);
    background: #fbfcff;
}

.op-support__check {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--ops-ok);
    font-size: 15px;
    line-height: 1;
    color: #fff;
}

.op-support__verified strong {
    display: block;
    font-weight: 500;
    line-height: 22px;
    color: var(--ops-heading);
}

.op-support__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    font-size: 13px;
    line-height: 20px;
}

.op-support__meta .is-expired {
    color: var(--ops-error);
}

.op-support__change {
    margin-left: auto;
    padding: 0;
    border: 0;
    background: none;
    font: 400 14px/1 "Poppins", sans-serif;
    color: var(--ops-brand);
    text-decoration: underline;
    cursor: pointer;
}

.op-support__form--durations {
    display: block;
}

.op-support__durations {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.op-support__duration {
    position: relative;
    display: block;
    cursor: pointer;
}

.op-support__duration input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.op-support__duration-body {
    display: block;
    height: 100%;
    padding: 20px;
    border: 1px solid var(--ops-line);
    border-radius: var(--ops-radius);
    background: #fff;
    transition: border-color .2s ease, background .2s ease;
}

.op-support__duration:hover .op-support__duration-body {
    border-color: #c9c1f6;
}

.op-support__duration input:checked + .op-support__duration-body {
    border-color: var(--ops-brand);
    background: var(--ops-brand-soft);
}

.op-support__duration input:focus-visible + .op-support__duration-body {
    outline: 2px solid rgba(94, 44, 237, .35);
    outline-offset: 2px;
}

.op-support__duration-head {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.op-support__duration-label {
    font-weight: 500;
    line-height: 22px;
    color: var(--ops-heading);
}

.op-support__badge {
    padding: 2px 8px;
    border-radius: 20px;
    background: var(--ops-ok);
    font-size: 11px;
    font-weight: 500;
    line-height: 18px;
    letter-spacing: .02em;
    color: #fff;
    white-space: nowrap;
}

.op-support__duration-price {
    display: block;
    font-size: 26px;
    font-weight: 600;
    line-height: 36px;
    color: var(--ops-heading);
}

.op-support__duration-price del {
    margin-right: 8px;
    font-size: 16px;
    font-weight: 400;
    color: var(--ops-body);
    opacity: .7;
}

.op-support__duration-sub {
    display: block;
    font-size: 13px;
    line-height: 20px;
}

@media (max-width: 600px) {
    .op-support__steps {
        gap: 16px;
    }

    .op-support__form {
        flex-direction: column;
    }

    .op-support__button {
        width: 100%;
    }

    .op-support__verified {
        flex-wrap: wrap;
    }

    .op-support__change {
        margin-left: 42px;
    }
}
