/* Store: checkout, payment status, receipts and transactions. */
.store-page {
    --container-width: 1400px;
    max-width: 1400px;
    min-height: 100vh;
    padding-block: 8px 48px;
}
body:has(.store-page) {
    min-height: 100vh;
    background: linear-gradient(to right, var(--color-bg) 0 50%, var(--white) 50% 100%);
}
body:has(.store-page .purchase__status) {
    background: #fff;
}
.store-checkout {
    --store-accent: var(--primary-500, #0485f7);
    --store-border: #dce2e9;
    --store-muted: #697582;
    max-width: 1400px;
    margin-inline: auto;
    padding: 40px 0 52px;
    color: #19232e;
}
.store-checkout .purchase__back {
    width: 30px;
    height: 30px;
    min-height: 30px;
    padding: 0;
}
.store-checkout .purchase__back svg {
    width: 16px;
    height: 16px;
}
.store-checkout [hidden] {
    display: none !important;
}
.store-checkout .purchase__description,
.store-checkout .purchase__license-desc,
.store-checkout .purchase__card-text,
.store-checkout .purchase__secure {
    font-family: system-ui, sans-serif;
}
.store-checkout__header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 20px;
    margin-bottom: 94px;
}
.store-checkout__brand img {
    display: block;
    width: auto;
    max-width: 160px;
    height: 24px;
}
.store-checkout__step {
    color: var(--store-muted);
    font-size: 12px;
}
.store-checkout .purchase__layout {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 112px;
}
.store-checkout .purchase__inner,
.store-checkout .purchase__info {
    min-width: 0;
}
.store-checkout .purchase__info {
    display: flex;
    flex-direction: column;
    gap: 26px;
}
.store-checkout .purchase__licenses-more:hover {
    color: var(--store-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}
.store-checkout .purchase__eyebrow {
    display: block;
    color: var(--store-muted);
    font-size: 12px;
    line-height: 1.5;
    margin-bottom: 10px;
}
.store-checkout .purchase__title {
    margin: 0 0 14px;
    font-size: clamp(25px, 2.6vw, 34px);
    line-height: 1.18;
    letter-spacing: -0.9px;
    overflow-wrap: anywhere;
}
.store-checkout .purchase__description {
    color: var(--store-muted);
    font-size: 14px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}
.store-checkout .purchase__description img {
    max-width: 100%;
    height: auto;
}
.store-checkout .purchase__price {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin: 26px 0 82px;
    font-size: 13px;
    color: var(--store-muted);
}
.store-checkout .purchase__price strong {
    color: #19232e;
    font-size: 20px;
    font-weight: 800;
}
.store-checkout .purchase__fieldset {
    border: 0;
    padding: 0;
    margin: 0;
    min-width: 0;
}
.store-checkout .purchase__fieldset legend,
.store-checkout .purchase__label {
    display: block;
    padding: 0;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
}
.store-checkout .purchase__licenses {
    display: grid;
    gap: 10px;
}
.store-checkout .purchase__license {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 19px 16px;
    border: 1px solid var(--store-border);
    border-radius: 12px;
    cursor: pointer;
    transition:
        border-color 0.15s,
        background 0.15s;
}
.store-checkout .purchase__license:has(input:checked),
.store-checkout .purchase__paymethod:has(input:checked) {
    border-color: var(--store-accent);
    background: color-mix(in srgb, var(--store-accent) 5%, white);
    box-shadow: 0 0 0 1px var(--store-accent);
}
.store-checkout .purchase__license:hover,
.store-checkout .purchase__paymethod:hover {
    border-color: var(--store-accent);
}
.store-checkout input[type="radio"] {
    appearance: auto;
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--store-accent);
    flex-shrink: 0;
    cursor: pointer;
}
.store-checkout .purchase__license-left {
    display: flex;
}
.store-checkout .purchase__license-body {
    display: grid;
    gap: 5px;
    min-width: 0;
    flex: 1;
}
.store-checkout .purchase__license-title {
    font-size: 14px;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.store-checkout .purchase__license-desc {
    color: var(--store-muted);
    font-size: 12px;
    line-height: 1.5;
}
.store-checkout .purchase__license-price {
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}
.store-checkout .purchase__license-right:has(:empty) {
    display: none;
}
.store-checkout .purchase__licenses-more {
    display: inline-flex;
    gap: 8px;
    margin-top: 14px;
    font-size: 14px;
    color: var(--store-accent);
}
.store-checkout .purchase__section-heading h2 {
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.store-checkout .purchase__author {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border: 1px solid var(--store-border);
    border-radius: 12px;
}
.store-checkout .purchase__author-avatar {
    flex-shrink: 0;
    border-radius: 50%;
    object-fit: cover;
}
.store-checkout .purchase__author-info {
    display: grid;
    gap: 4px;
    min-width: 0;
    overflow-wrap: anywhere;
}
.store-checkout .purchase__author-name {
    font-size: 14px;
    font-weight: 700;
}
.store-checkout .purchase__author-email {
    font-size: 12px;
    color: var(--store-muted);
}
.store-checkout .purchase__payment {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    overflow-x: auto;
    padding: 2px;
}
.store-checkout .purchase__paymethod {
    position: relative;
    display: flex;
    flex: 1 0 auto;
    align-items: center;
    gap: 10px;
    min-height: 64px;
    padding: 18px 14px;
    border: 1px solid var(--store-border);
    border-radius: 12px;
    cursor: pointer;
}
.store-checkout .purchase__paymethod-radio {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.store-checkout .purchase__paymethod:has(input:focus-visible) {
    outline: 2px solid var(--store-accent);
    outline-offset: 2px;
}
.store-checkout .purchase__paymethod-title {
    font-size: 13px;
    font-weight: 500;
    overflow-wrap: anywhere;
}
.store-checkout .purchase__paymethod-logo {
    display: block;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    object-fit: contain;
}
.store-checkout .purchase__card-text {
    font-size: 11px;
    color: var(--store-muted);
    line-height: 1.6;
    margin-top: 9px;
}
.store-checkout .purchase__promo-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.store-checkout .form-input {
    width: 0;
    min-width: 120px;
    flex: 1;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--store-border);
    border-radius: 10px;
    background: #fff;
    font: inherit;
    font-size: 12px;
    color: #19232e;
}
.store-checkout .form-input:disabled {
    background: #f5f7fa;
}
.store-checkout .purchase__promo-controls .btn {
    min-height: 44px;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 12px;
}
.store-checkout .purchase__promo-state {
    font-size: 12px;
    color: #21834b;
    margin-top: 8px;
}
.store-checkout .purchase__promo-state:empty,
.store-checkout .purchase__card-text:empty,
.store-checkout .purchase__total-meta:empty {
    display: none;
}
.store-checkout .purchase__total {
    margin-top: auto;
    padding-top: 24px;
    border-top: 1px solid var(--store-border);
}
.store-checkout .purchase__total-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 17px;
    font-weight: 700;
}
.store-checkout .purchase__total-row strong {
    font-weight: 800;
    font-size: 23px;
    letter-spacing: -0.5px;
}
.store-checkout .purchase__total-meta {
    font-size: 12px;
    margin-top: 8px;
    color: var(--store-muted);
}
.store-checkout .purchase__submit {
    display: flex;
    justify-content: center;
    gap: 16px;
    width: 100%;
    min-height: 48px;
    margin-top: 20px;
    border-radius: 11px;
    font-size: 14px;
}
.store-checkout .purchase__secure {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 22px;
    color: var(--store-muted);
    font-size: 12px;
    line-height: 1.5;
}
.store-checkout .purchase__secure svg {
    flex-shrink: 0;
}
.store-checkout :is(a, button, input):focus-visible {
    outline: 2px solid var(--store-accent);
    outline-offset: 4px;
}
.store-checkout .purchase__error {
    padding: 14px;
    background: #fff2f2;
    color: #a72835;
    border: 1px solid #f4cbd0;
    border-radius: 10px;
    font-size: 13px;
}
.store-checkout .purchase__status {
    padding: 52px 0;
    text-align: center;
}
.store-checkout .purchase__status-badge {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    border-radius: 50%;
    background: #eaf7ef;
    color: #21834b;
}
.store-checkout .purchase__status-badge--fail {
    color: #a72835;
    background: #fff2f2;
}
.store-checkout .purchase__status-title {
    font-size: 28px;
    margin-bottom: 16px;
}
.store-checkout .purchase__status-text {
    color: var(--store-muted);
}
.store-checkout .purchase__status-link {
    margin-top: 24px;
}
.receipt {
    padding: 32px;
    border: 1px solid var(--gray-325);
    border-radius: 20px;
    background: var(--white);
}
.receipt__header,
.receipt__logo,
.receipt__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}
.receipt__logo {
    justify-content: flex-start;
}
.receipt__transaction {
    display: grid;
    gap: 8px;
    font-size: 13px;
}
.receipt__list {
    list-style: none;
    padding: 24px 0;
    display: grid;
    gap: 12px;
}
.receipt__footer {
    list-style: none;
    padding: 20px 0 0;
    border-top: 1px solid var(--gray-325);
    font-size: 13px;
}
.transaction {
    display: grid;
    grid-template-columns: minmax(0, 1fr) max-content max-content;
    align-items: center;
    gap: 24px;
    padding: 20px;
    border: 1px solid var(--gray-325);
    border-radius: 14px;
    background: var(--white);
}
.transaction__body {
    min-width: 0;
}
.transaction__title {
    margin: 4px 0 0;
    overflow-wrap: anywhere;
}
.transaction__license {
    display: block;
    margin-top: 2px;
}
.transaction__summary {
    display: grid;
    gap: 2px;
    min-width: 110px;
}
.transaction > .btn {
    min-width: 104px;
}
.transaction__date,
.transaction__status {
    font-size: 13px;
    color: #697582;
}
.transaction__price {
    font-weight: 600;
}
@media (max-width: 900px) {
    .store-checkout {
        padding: 32px;
    }
    .store-checkout .purchase__layout {
        gap: 64px;
    }
}
@media (max-width: 680px) {
    body:has(.store-page) {
        background: var(--color-bg);
        overflow-x: clip;
    }
    .store-page {
        padding-block: 16px 0;
    }
    .store-checkout {
        padding: 24px 20px 0;
    }
    .store-checkout__header {
        margin-bottom: 78px;
    }
    .store-checkout__step {
        font-size: 10px;
    }
    .store-checkout .purchase__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }
    .store-checkout .purchase__info {
        padding-block: 28px 32px;
        background: var(--white);
        box-shadow: 0 0 0 100vmax var(--white);
        clip-path: inset(0 -100vmax -100vmax);
        gap: 24px;
    }
    .store-checkout .purchase__license {
        flex-wrap: wrap;
    }
    .store-checkout .purchase__license-right {
        margin-left: 32px;
    }
    .receipt {
        padding: 20px;
    }
    .transaction {
        grid-template-columns: minmax(0, 1fr) max-content;
        gap: 16px;
    }
    .transaction__body {
        grid-column: 1 / -1;
    }
    .transaction > .btn {
        justify-self: end;
    }
}
@media (max-width: 420px) {
    .transaction {
        grid-template-columns: minmax(0, 1fr);
    }
    .transaction > .btn {
        width: 100%;
        justify-self: stretch;
    }
}
.receipt-page {
    padding-bottom: 64px;
}
.receipt-card {
    max-width: 880px;
    margin-inline: auto;
    padding: 32px;
    border: 1px solid var(--gray-325);
    border-radius: 24px;
    background: var(--white);
    box-shadow: 0 2px 13px rgb(0 0 0 / 3%);
}
.receipt-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding-bottom: 28px;
}
.receipt-card__brand,
.receipt-card__reference {
    display: grid;
    gap: 10px;
}
.receipt-card__brand img {
    display: block;
    width: 144px;
    height: auto;
}
.receipt-card__brand span,
.receipt-card__reference span,
.receipt-card__total span,
.receipt-card__parties span {
    color: #747b85;
    font-size: 0.85rem;
}
.receipt-card__reference {
    text-align: right;
    font-size: 0.9rem;
}
.receipt-card__total {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 24px;
    border-radius: 16px;
    background: var(--gray-200);
}
.receipt-card__total > div:first-child {
    display: grid;
    gap: 8px;
}
.receipt-card__total strong {
    font-size: clamp(24px, 4vw, 32px);
    overflow-wrap: anywhere;
}
.receipt-card__status span {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}
.receipt-card__status .paid {
    color: #16834a;
    background: #e8f6ee;
}
.receipt-card__status .nopaid {
    color: #85621a;
    background: #fff3d6;
}
.receipt-card__details {
    margin: 28px 0;
}
.receipt-card__details > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--gray-325);
}
.receipt-card__details dt {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #747b85;
}
.receipt-card__details dt svg {
    flex-shrink: 0;
}
.receipt-card__details dd {
    margin: 0;
    text-align: right;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.receipt-card__parties {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.receipt-card__parties > div {
    display: grid;
    gap: 8px;
    overflow-wrap: anywhere;
}
.receipt-card__parties > div:last-child {
    text-align: right;
}
@media (max-width: 600px) {
    .receipt-card {
        padding: 20px;
        border-radius: 20px;
    }
    .receipt-card__header {
        align-items: flex-start;
        flex-direction: column;
    }
    .receipt-card__reference {
        text-align: left;
    }
    .receipt-card__total {
        padding: 18px;
    }
    .receipt-card__details > div {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .receipt-card__details dd {
        text-align: left;
        padding-left: 28px;
    }
}

/* Licenses */
.licenses {
    width: min(100%, 1200px);
    margin: 0 auto;
    padding: 42px 0 88px;
}
.licenses__header {
    max-width: 670px;
    margin: 0 auto 48px;
    text-align: center;
}
.licenses__eyebrow {
    display: inline-flex;
    margin-bottom: 16px;
    padding: 7px 12px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary-500) 10%, var(--white));
    color: var(--primary-500);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.licenses__header h1 {
    margin: 0;
    color: var(--color-title);
    font-size: clamp(32px, 4vw, 50px);
    line-height: 1.08;
    letter-spacing: -0.04em;
}
.licenses__header p {
    max-width: 580px;
    margin: 18px auto 0;
    color: color-mix(in srgb, var(--color-text) 62%, transparent);
    font-size: 16px;
    line-height: 1.65;
}
.licenses__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 20px;
}
.license-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 30px;
    border: 1px solid var(--gray-325);
    border-radius: 24px;
    background: var(--white);
    box-shadow: 0 18px 50px rgb(24 39 75 / 6%);
}
.license-card--featured {
    border: 2px solid var(--primary-500);
    padding: 29px;
    box-shadow: 0 24px 60px color-mix(in srgb, var(--primary-500) 16%, transparent);
    transform: translateY(-12px);
}
.license-card__badge {
    position: absolute;
    top: 20px;
    right: 20px;
    padding: 6px 10px;
    border-radius: 999px;
    background: var(--primary-500);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    transform: rotate(4deg);
}
.license-card__icon {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-bottom: 22px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--primary) 10%, var(--white));
    color: var(--primary);
}
.license-card__intro {
    min-height: 87px;
}
.license-card__intro h2 {
    margin: 0 0 8px;
    color: var(--color-title);
    font-size: 21px;
    line-height: 1.2;
    letter-spacing: -0.025em;
}
.license-card__intro p {
    margin: 0;
    color: color-mix(in srgb, var(--color-text) 58%, transparent);
    font-size: 13px;
    line-height: 1.55;
}
.license-card__price {
    display: flex;
    min-height: 100px;
    flex-direction: column;
    justify-content: center;
    padding: 19px 0 20px;
}
.license-card__price strong {
    color: var(--color-title);
    font-size: clamp(28px, 3vw, 38px);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.045em;
}
.license-card__price strong small {
    font-size: 0.58em;
    font-weight: 700;
}
.license-card__price span {
    margin-top: 8px;
    color: color-mix(in srgb, var(--color-text) 52%, transparent);
    font-size: 11px;
}
.license-card__button {
    width: 100%;
    min-height: 48px;
    border-radius: 12px;
}
.license-card__features {
    margin-top: 25px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-325);
}
.license-card__features h3 {
    margin: 0 0 16px;
    color: var(--color-title);
    font-size: 13px;
    font-weight: 700;
}
.license-card__features ul {
    display: grid;
    gap: 13px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.license-card__features li {
    position: relative;
    padding-left: 25px;
    color: color-mix(in srgb, var(--color-text) 78%, transparent);
    font-size: 12px;
    line-height: 1.45;
}
.license-card__features li::before {
    content: "";
    position: absolute;
    top: 0.15em;
    left: 0;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 8 2.5 2.5L12 5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.licenses__note {
    margin: 34px 0 0;
    color: color-mix(in srgb, var(--color-text) 60%, transparent);
    font-size: 13px;
    text-align: center;
}
.licenses__note a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.licenses :is(a, button):focus-visible {
    outline: 3px solid color-mix(in srgb, var(--primary) 35%, transparent);
    outline-offset: 3px;
}

@media (max-width: 920px) {
    .licenses {
        padding-inline: 20px;
    }
    .licenses__grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin-inline: auto;
    }
    .license-card--featured {
        order: -1;
        transform: none;
    }
    .license-card__intro {
        min-height: 0;
    }
}
@media (max-width: 520px) {
    .licenses {
        padding: 24px 16px 60px;
    }
    .licenses__header {
        margin-bottom: 32px;
    }
    .licenses__header p {
        font-size: 14px;
    }
    .license-card,
    .license-card--featured {
        padding: 24px;
        border-radius: 20px;
    }
    .license-card__badge {
        top: 18px;
        right: 18px;
    }
}
