.store-profile-onboarding {
    max-width: 940px;
}

.terms-card-actions {
    align-items: center;
    display: flex;
    gap: .6rem;
}

.terms-card-download {
    align-items: center;
    color: var(--primary-hover);
    display: inline-flex;
    font-size: .75rem;
    font-weight: 800;
    gap: .3rem;
    white-space: nowrap;
}

.terms-card-download:hover {
    color: var(--primary);
}

.store-profile-progress {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--muted);
    display: flex;
    gap: .8rem;
    justify-content: center;
    margin: 0 auto 1.25rem;
    max-width: 670px;
    padding: .65rem 1rem;
}

.store-profile-progress span {
    align-items: center;
    display: inline-flex;
    font-size: .78rem;
    gap: .45rem;
    white-space: nowrap;
}

.store-profile-progress b {
    align-items: center;
    background: #e9eef0;
    border-radius: 50%;
    display: inline-flex;
    height: 1.65rem;
    justify-content: center;
    width: 1.65rem;
}

.store-profile-progress .is-current {
    color: var(--primary-hover);
    font-weight: 800;
}

.store-profile-progress .is-current b {
    background: var(--primary);
    color: #fff;
}

.store-profile-progress > i {
    color: #a7b8b1;
    font-size: .85rem;
}

.store-profile-form {
    display: grid;
    gap: 1.25rem;
}

.store-profile-step {
    border: 1px solid var(--border);
    border-radius: 18px;
    overflow: hidden;
    padding: 1.35rem;
}

.store-profile-step[hidden] {
    display: none;
}

.store-profile-step-heading {
    align-items: flex-start;
    display: flex;
    gap: .8rem;
    margin-bottom: 1rem;
}

.store-profile-step-heading h2 {
    color: var(--deep-ink);
    font-size: 1.1rem;
    margin: .18rem 0 .3rem;
}

.store-profile-step-heading p {
    color: var(--muted);
    font-size: .8rem;
    margin: 0;
}

.store-profile-step-icon {
    align-items: center;
    background: var(--mint);
    border-radius: 13px;
    color: var(--primary-hover);
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 1.2rem;
    height: 2.55rem;
    justify-content: center;
    width: 2.55rem;
}

.buyer-terms-preview {
    background: #fbfdfc;
    border: 1px solid #e3ece7;
    border-radius: 14px;
    max-height: 23rem;
    overflow-y: auto;
    padding: .8rem 1rem;
    scrollbar-color: #a8cabb transparent;
}

.buyer-terms-preview > p {
    border-bottom: 1px solid #edf3ef;
    color: var(--ink-soft);
    font-size: .78rem;
    line-height: 2;
    margin: 0;
    padding: .48rem 0;
    text-align: justify;
}

.buyer-terms-preview > p.buyer-terms-title {
    color: var(--deep-ink);
    font-size: .95rem;
    font-weight: 800;
    padding-top: .1rem;
    text-align: center;
}

.buyer-terms-page-content > p.buyer-terms-title {
    color: var(--deep-ink);
    font-size: 1.15rem;
    font-weight: 800;
    text-align: center;
}

.buyer-terms-page-content > p.buyer-terms-section {
    border-bottom: 0;
    color: var(--primary-hover);
    font-size: 1rem;
    font-weight: 800;
    margin-top: 1rem;
    padding-bottom: .2rem;
    text-align: right;
}

.buyer-terms-preview > p.buyer-terms-section {
    border-bottom: 0;
    color: var(--primary-hover);
    font-size: .86rem;
    font-weight: 800;
    padding-bottom: .1rem;
    padding-top: .9rem;
    text-align: right;
}

.buyer-terms-consent {
    align-items: flex-start;
    background: #f1fbf5;
    border: 1px solid #cfeadd;
    border-radius: 12px;
    color: var(--deep-ink);
    cursor: pointer;
    display: flex;
    font-size: .82rem;
    gap: .65rem;
    line-height: 1.9;
    margin: 1rem 0 0;
    padding: .85rem 1rem;
}

.buyer-terms-consent input {
    accent-color: var(--primary);
    flex: 0 0 auto;
    height: 1.15rem;
    margin-top: .28rem;
    width: 1.15rem;
}

.buyer-terms-consent a {
    color: var(--primary-hover);
    font-weight: 800;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.required-mark {
    color: #c2414a;
    font-weight: 800;
}

.optional-label {
    color: var(--muted);
    font-size: .7rem;
    font-weight: 500;
    margin-inline-start: .35rem;
}

.store-license-field {
    border: 0;
    margin: 0 0 1rem;
    min-width: 0;
    padding: 0;
}

.store-license-field legend {
    float: none;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: .4rem;
    width: auto;
}

.store-license-options {
    display: flex;
    gap: .65rem;
}

.store-license-option {
    align-items: center;
    background: #f8fbf9;
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    flex: 1;
    gap: .45rem;
    margin: 0;
    min-height: 2.7rem;
    padding: .45rem .65rem;
}

.store-license-option:has(input:checked) {
    background: #effaf3;
    border-color: #8ed1aa;
    color: var(--primary-hover);
}

.store-license-option input {
    accent-color: var(--primary);
}

.store-profile-form .form-text {
    color: var(--muted);
    display: block;
    font-size: .7rem;
    font-weight: 400;
    margin-top: .35rem;
}

.store-profile-form .form-control,
.store-profile-form .form-select {
    min-height: 2.75rem;
}

@media (max-width: 575.98px) {
    .store-profile-progress {
        align-items: stretch;
        border-radius: 14px;
        flex-direction: column;
        gap: .45rem;
        padding: .75rem;
    }

    .store-profile-progress > i {
        display: none;
    }

    .store-profile-progress span {
        white-space: normal;
    }

    .store-profile-step {
        border-radius: 14px;
        padding: 1rem;
    }

    .store-profile-step-heading h2 {
        font-size: 1rem;
    }

    .terms-card-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: .4rem;
    }

    .buyer-terms-preview {
        max-height: 25rem;
        padding: .65rem .8rem;
    }

    .buyer-terms-preview > p {
        font-size: .76rem;
        text-align: right;
    }

    .buyer-terms-consent {
        font-size: .78rem;
        padding: .75rem;
    }

    .store-license-options {
        flex-direction: column;
        gap: .45rem;
    }
}
