.theme-shop { color: #202020; margin-block: 32px 48px; }
.theme-shop h2 { margin: 0 0 16px; font-size: 1.3rem; font-weight: 700; letter-spacing: -.035em; }
.theme-shop a:focus-visible { outline: 3px solid #305fbe; outline-offset: 3px; }
.shop-page { margin: 0; color: #202020; font: 16px/1.5 var(--rosea-font, system-ui, sans-serif); }
.shop-page header, .shop-page main { width: min(1080px, calc(100% - 40px)); margin-inline: auto; }
.shop-page header { padding-block: 22px; border-bottom: 1px solid #dededb; }
.shop-page header a { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; }
.shop-page .shop-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.shop-header > a:last-child { font-size: .875rem; font-weight: 500; }
.shop-page a { color: inherit; }
.shop-back, .shop-note { font-size: .875rem; color: #575754; }
.shop-back { text-decoration: none; }
.shop-page h1 { margin: 18px 0 26px; font-size: clamp(2rem, 4vw, 3.4rem); line-height: 1.1; letter-spacing: -.05em; }

.shop-page header, .shop-page .shop-index { width: min(1480px, calc(100% - 48px)); }
.shop-page:not(.shop-license-page) .shop-header {
    max-width: 1200px;
    padding-block: 12px;
    border-color: #e8e8ec;
}
.shop-page .shop-index { margin-block-start: clamp(28px, 4vw, 48px); }
.shop-intro { text-align: center; margin: 30px auto 36px; }
.shop-index .shop-intro { margin-top: 0; }
.shop-intro h1 { margin-block: 0 14px; }
.shop-intro p { margin: 0; color: #57585d; font-size: clamp(1rem, 2vw, 1.2rem); }
.shop-filters, .shop-filter-fields { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; }
.shop-filters { margin-bottom: 28px; }
.shop-platforms {
    display: flex;
    align-self: start;
    gap: 2px;
    padding: 2px;
    border-radius: 999px;
    background: #f0f0f2;
}
.shop-platforms a {
    display: grid;
    place-items: center;
    box-sizing: border-box;
    min-height: 44px;
    min-width: 92px;
    padding: 8px 16px;
    border-radius: inherit;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
}
.shop-platforms a[aria-current="page"] { background: #1d1d1f; color: #fff; }
.shop-platforms a:focus-visible { outline: 2px solid #9a3d4d; }

@media (max-width: 600px) {
    .shop-platforms { width: 100%; box-sizing: border-box; }
    .shop-platforms a { flex: 1; min-width: 0; }
}
.shop-filter-fields label, .shop-filter-fields button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    min-height: 44px;
    border: 1px solid #dddde0;
    border-radius: 999px;
    background: #fff;
    color: #393a40;
    font: inherit;
    font-size: .9rem;
    font-weight: 500;
}
.shop-filter-fields select { max-width: 100%; border: 0; background: transparent; color: #202020; font: inherit; }
.shop-filter-fields button { cursor: pointer; }
.shop-filter-fields button:hover { background: #efeff1; }
.shop-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(16px, 2vw, 28px);
    max-width: 1200px;
    margin-inline: auto;
}
.shop-card {
    --shop-card-muted: #5d5d68;
    --shop-card-inset: #f3f3f6;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: clamp(12px, 1.6vw, 20px);
    border: 1px solid #e1e1e6;
    border-radius: 16px;
    background: #fff;
    color: #19191c;
}
.shop-card:hover, .shop-card:focus-within { border-color: #c9c9d2; background: #fafafb; }
.shop-card-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px;
}
.shop-card .shop-card-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: clamp(16px, 1.6vw, 20px);
    line-height: 1.15;
    overflow-wrap: anywhere;
}
.shop-card-heading img {
    flex: none;
    width: clamp(26px, 3vw, 38px);
    height: clamp(26px, 3vw, 38px);
    object-fit: contain;
}
.shop-card-heading small {
    display: block;
    margin-top: 2px;
    color: var(--shop-card-muted);
    font-size: clamp(11px, 1.1vw, 13px);
    font-weight: 400;
    letter-spacing: 0;
}
.shop-card-price { padding-block: 7px; font-size: clamp(15px, 1.7vw, 20px); line-height: 1; font-weight: 700; white-space: nowrap; }
.shop-card-price small { color: var(--shop-card-muted); font-size: inherit; }
.shop-card-price strong { letter-spacing: -.035em; }
.shop-card-frame { padding: 30px; border-radius: 9px; background: var(--shop-card-inset); }
.shop-card-preview {
    display: block;
    width: 100%;
    aspect-ratio: 1020 / 562.5;
    object-fit: contain;
    border-radius: 7px;
}
.shop-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
}
.shop-card-navigation {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--shop-card-muted);
    font-size: .8125rem;
    line-height: 1.4;
    font-weight: 500;
}
.shop-card-navigation-icon {
    display: grid;
    place-items: center;
    flex: 0 0 30px;
    height: 30px;
    border-radius: 7px;
    background: var(--shop-card-inset);
}
.shop-card-navigation-icon::before {
    content: "";
    box-sizing: border-box;
    width: 20px;
    height: 16px;
    border: 2px solid currentColor;
    border-radius: 4px;
    background: linear-gradient(currentColor 0 0) left / 6px 100% no-repeat;
}
.shop-card-navigation[data-navigation="top-bar"] .shop-card-navigation-icon::before {
    background-position: top;
    background-size: 100% 4px;
}
@media (forced-colors: active) {
    .shop-card-navigation-icon::before { forced-color-adjust: none; color: CanvasText; }
}
.shop-card-action { flex: none; font-size: clamp(13px, 1.4vw, 16px); font-weight: 700; text-align: end; text-decoration: none; }
.shop-card-action:hover { text-decoration: underline; text-underline-offset: .25em; }
.shop-card-action::after { position: absolute; inset: 0; border-radius: 16px; content: ""; }
.shop-empty { text-align: center; }
.shop-plugins {
    --shop-plugins-gap: clamp(24px, 4vw, 48px);
    max-width: 34rem;
    margin: var(--shop-plugins-gap) auto 0;
    padding-block-start: var(--shop-plugins-gap);
    border-block-start: 1px solid #e8e6e4;
}
.shop-plugins h2 {
    margin: 0 0 .5rem;
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
    font-weight: 500;
    line-height: 1.25;
}
.shop-plugins p { margin: 0; color: #57585d; }
.shop-plugins a {
    display: inline-flex;
    align-items: center;
    gap: .675rem;
    box-sizing: border-box;
    min-height: 3.375rem;
    margin-block-start: 1.25rem;
    padding: .75rem 1.5rem;
    border-radius: 999px;
    background: #f4f4f4;
    font-size: clamp(1rem, 2vw, 1.3125rem);
    font-weight: 500;
    line-height: 1.12;
    text-decoration: none;
}
.shop-plugins a:is(:hover, :focus-visible) { background: #f48694; }

@media (min-width: 768px) {
    .shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
    .shop-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
    .shop-page header, .shop-page .shop-index { width: calc(100% - 32px); }
}

.shop-license-page {
    --shop-ink: #202020;
    --shop-muted: #68686f;
    --shop-divider: #e8e8ec;
    --shop-accent: #7860b5;
    background: #fff;
}
.shop-license-page .shop-header, .shop-license-page .shop-detail, .shop-license-footer { width: min(960px, calc(100% - 48px)); margin-inline: auto; }
.shop-license-page .shop-header { box-sizing: border-box; min-height: 88px; justify-content: flex-start; gap: 14px 42px; border-color: var(--shop-divider); }
.shop-license-page .shop-header > a:first-child { font-size: 22px; letter-spacing: -.045em; }
.shop-header nav, .shop-header-account { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.shop-license-page .shop-header > a:last-child, .shop-header-account { margin-inline-start: auto; }
.shop-license-page .shop-header nav a, .shop-license-page .shop-header > a:last-child, .shop-header-account { font-size: 13px; font-weight: 500; }
.shop-header-account { color: var(--shop-muted); }
.shop-header-account button { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.shop-header-account button:hover, .shop-license-page .shop-header nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.shop-license-page .shop-detail { margin-block: clamp(16px, 2vw, 28px) 64px; }
.shop-page .shop-nav-action {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 40px;
    padding: 6px 13px;
    border: 1px solid #dedee4;
    border-radius: 999px;
    background: #fff;
    color: #39383f;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}
@media (hover: hover) {
    .shop-page .shop-nav-action:hover { background: #f3f1f7; border-color: #aaa0ba; }
}
.shop-page .shop-nav-action:focus-visible { outline: 2px solid #665095; outline-offset: 3px; }
.shop-page .shop-nav-action:active { background: #e9e5ef; border-color: #897a9d; }
.shop-compare:hover { text-decoration: underline; text-underline-offset: 3px; }
.shop-detail-heading { margin-block: 24px 32px; padding-block-end: 25px; border-bottom: 1px solid var(--shop-divider); }
.shop-license-page .shop-detail-heading h1 { margin: 0; font-size: 32px; line-height: 40px; letter-spacing: -.025em; }
.shop-detail-heading p { margin: 10px 0 0; color: var(--shop-muted); font-size: 14px; line-height: 20px; }
.shop-detail-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 28px; }
.shop-preview { margin: 0 0 20px; }
.shop-preview img { box-sizing: border-box; display: block; width: 100%; height: auto; aspect-ratio: 284 / 176; object-fit: cover; object-position: top; border: 1px solid var(--shop-divider); border-radius: 12px; }
.shop-detail-title { display: flex; align-items: center; gap: 14px; }
.shop-detail-title img { flex: none; box-sizing: border-box; padding: 7px; border-radius: 11px; background: #eee8fa; object-fit: contain; }
.shop-detail-title p { margin: 0; color: var(--shop-muted); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.shop-detail-title h2 { margin: 3px 0 0; font-size: 22px; line-height: 1.25; overflow-wrap: anywhere; }
.shop-theme-details { margin-block: 14px 18px; }
.shop-license-benefits { padding-block-start: 20px; border-top: 1px solid var(--shop-divider); color: #45454d; font-size: 12px; }
.shop-license-benefits h3 { margin: 0 0 14px; color: var(--shop-ink); font-size: 14px; }
.shop-license-benefits ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.shop-license-benefits li { display: flex; gap: 10px; }
.shop-license-benefits p { margin: 20px 0 14px; color: var(--shop-muted); }
.shop-compare { font-weight: 500; text-decoration: none; }

.shop-purchase { padding: 22px 23px 29px; border: 1px solid #e8e8ed; border-radius: 20px; background: #f7f7f9; }
.shop-purchase h2 { margin: 0 0 14px; font-size: 18px; line-height: 26px; letter-spacing: -.015em; }
.shop-license-options { display: grid; gap: 11px; min-width: 0; margin: 0; padding: 0; border: 0; }
.shop-option {
    position: relative;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    box-sizing: border-box;
    min-height: 80px;
    padding: 11px 18px 11px 17px;
    border: 1px solid #dedee5;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}
.shop-option input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; }
.shop-option-indicator { width: 20px; height: 20px; background: url(../images/license-picker/radio.svg) center no-repeat; }
.shop-option:has(input:checked:not(:disabled)) { border-color: var(--shop-accent); box-shadow: inset 0 0 0 .5px var(--shop-accent); background: #f5f2ff; }
.shop-option input:checked:not(:disabled) + .shop-option-indicator {
    background-image: url(../images/license-picker/dot.svg), url(../images/license-picker/active.svg);
}
.shop-option:has(input:focus-visible), .shop-continue:focus-visible, .shop-header-account button:focus-visible {
    outline: 2px solid #514087;
    outline-offset: 3px;
}
.shop-option:has(input:not(:disabled)):hover { border-color: var(--shop-accent); }
.shop-license-options:disabled .shop-option { cursor: default; }
.shop-option-name { min-width: 0; overflow-wrap: anywhere; font-size: 15px; line-height: 21px; }
.shop-option-name small { display: block; margin-top: 5px; color: var(--shop-muted); font-size: 11px; line-height: 16px; }
.shop-option-price { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.shop-purchase-notice { color: var(--shop-muted); font-size: 14px; }
.shop-purchase .shop-note { margin: 18px 0 19px; color: var(--shop-muted); font-size: 11px; line-height: 17px; }
.shop-continue {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    min-height: 52px;
    padding: 8px 22px;
    border: 0;
    border-radius: 26px;
    background: #252329;
    color: #fff;
    font: 500 13px/20px var(--rosea-font, system-ui, sans-serif);
    text-align: start;
    cursor: pointer;
}
.shop-continue:hover { background: #3b3349; }
.shop-continue-end { display: flex; gap: 8px; align-items: center; font-weight: 700; white-space: nowrap; }
.shop-license-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 24px; padding-block: 20px 36px; border-top: 1px solid var(--shop-divider); color: var(--shop-muted); font-size: 11px; }
.shop-license-footer a { text-underline-offset: 3px; }
.shop-page:not(.shop-license-page) .shop-license-footer {
    --shop-divider: #e8e8ec;
    --shop-muted: #57585d;
    width: min(1200px, calc(100% - 48px));
    font-size: .8125rem;
}
.shop-page:not(.shop-license-page) .shop-license-footer a:hover { text-decoration: underline; }

@media (max-width: 620px) {
    .shop-page:not(.shop-license-page) .shop-license-footer { width: calc(100% - 32px); }
}

@media (max-width: 680px) {
    .shop-license-page .shop-header, .shop-license-page .shop-detail, .shop-license-footer { width: calc(100% - 32px); }
    .shop-license-page .shop-header, .shop-header nav, .shop-header-account { gap: 12px 16px; }
    .shop-detail-body { grid-template-columns: minmax(0, 1fr); }
    .shop-preview { max-width: 420px; }
    .shop-purchase { padding: 16px; }
    .shop-option { gap: 9px; padding-inline: 11px; }
    .shop-option-price { font-size: 16px; }
}

/* Guest license selection */
.shop-guest-license {
    color-scheme: light;
    min-height: 100vh;
    background:
        radial-gradient(ellipse 55rem 40rem at 0% 20%, rgba(198, 174, 245, .32), transparent 75%),
        radial-gradient(ellipse 48rem 35rem at 100% 76%, rgba(247, 190, 207, .29), transparent 74%),
        #fcfbfd;
}
.shop-guest-license .shop-purchase {
    background: #fbfafc;
    box-shadow: 0 16px 48px -28px rgba(73, 49, 99, .24);
}

.shop-guest-license .shop-overview {
    --overview-inset: clamp(18px, 2vw, 24px);
    overflow: hidden;
    border: 1px solid var(--shop-divider);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 12px 36px -28px rgba(73, 49, 99, .22);
}
.shop-guest-license .shop-preview { max-width: none; margin: 0; }
.shop-guest-license .shop-preview img {
    border: 0;
    border-bottom: 1px solid var(--shop-divider);
    border-radius: 0;
}
.shop-guest-license .shop-detail-title { margin: var(--overview-inset) var(--overview-inset) 0; gap: 12px; }
.shop-guest-license .shop-detail-title h2 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.12; }
.shop-guest-license .shop-detail-title p { letter-spacing: .055em; }
.shop-guest-license .shop-theme-details { margin-inline: var(--overview-inset); }
.shop-guest-license .shop-license-benefits {
    padding: 17px var(--overview-inset) 19px;
    background: #fcfbfd;
    font-size: 13px;
}
.shop-guest-license .shop-license-benefits ul { gap: 7px; }
.shop-guest-license .shop-license-benefits li { align-items: baseline; }
.shop-guest-license .shop-license-benefits li > span {
    display: inline-grid;
    flex: none;
    width: 18px;
    height: 18px;
    place-items: center;
    border-radius: 50%;
    background: #eee9f6;
    color: #51416b;
    font-size: 11px;
    font-weight: 700;
}
.shop-guest-license .shop-license-benefits p { margin: 16px 0 7px; font-size: 12px; }
.shop-guest-license .shop-compare { text-decoration: underline; text-underline-offset: .2em; }
.shop-guest-license .shop-compare:hover { color: #574277; }
