.admin-page,
.shopfront-editor,
.shop-story-blocks {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 48px;
}

.shop-visual.has-image,
.shop-visual.has-video {
    background: #10261f;
    overflow: hidden;
}

.shop-visual img,
.shop-visual iframe {
    width: 100%;
    height: 100%;
    min-height: 600px;
    border: 0;
    object-fit: cover;
}

.shop-visual.video-provider-facebook,
.shop-visual.video-provider-instagram {
    display: grid;
    place-items: center;
    background: #0b0f0d;
}

.shop-visual.video-provider-facebook iframe,
.shop-visual.video-provider-instagram iframe {
    width: min(100%, 430px);
    height: min(86vh, 720px);
    min-height: 520px;
    aspect-ratio: 9 / 16;
    background: #050505;
}

.profile-cover-preview {
    display: grid;
    gap: 10px;
    margin-top: 10px;
}

.profile-cover-preview img {
    width: min(520px, 100%);
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid rgba(40, 32, 22, .14);
    border-radius: 8px;
}

@media (max-width: 840px) {
    .shop-visual img,
    .shop-visual iframe {
        min-height: 360px;
    }

    .shop-visual.video-provider-facebook iframe,
    .shop-visual.video-provider-instagram iframe {
        min-height: 480px;
    }
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.admin-panel {
    background: #fff;
    border: 1px solid rgba(40, 32, 22, .12);
    border-radius: 8px;
    padding: 18px;
    box-shadow: 0 12px 32px rgba(30, 20, 8, .06);
}

.admin-table {
    display: grid;
    gap: 10px;
}

.admin-table article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid rgba(40, 32, 22, .1);
    border-radius: 8px;
    background: #fffdf8;
}

.admin-table.compact article {
    grid-template-columns: minmax(0, 1fr) auto;
}

.admin-table strong,
.admin-table small {
    display: block;
}

.admin-table small {
    color: #706a60;
    margin-top: 4px;
}

.admin-table form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.admin-table select,
.admin-table button {
    min-height: 38px;
}

.seller-quickbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.profile-editor,
.shopfront-editor {
    max-width: 1240px;
    padding-inline: 24px;
}

.profile-head,
.shopfront-head {
    max-width: 1120px;
}

.seller-profile-form.wide,
.shopfront-form.wide {
    width: min(1120px, 100%);
    max-width: none;
    margin: 0 auto;
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.profile-form-section,
.shopfront-block {
    border: 1px solid rgba(40, 32, 22, .12);
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 18px;
    background: #fffdf8;
    box-shadow: 0 14px 42px rgba(35, 27, 15, .06);
}

.section-kicker {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    margin-bottom: 18px;
}

.section-kicker span {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #183f34;
    color: #fff;
    font-weight: 800;
}

.section-kicker h2 {
    margin: 0 0 4px;
    font-size: 22px;
}

.section-kicker p {
    margin: 0;
    color: #706a60;
}

.seller-profile-form label,
.shopfront-form label {
    display: grid;
    gap: 8px;
    margin: 0 0 16px;
    font-weight: 800;
}

.seller-profile-form input,
.seller-profile-form select,
.seller-profile-form textarea,
.shopfront-form input,
.shopfront-form select,
.shopfront-form textarea {
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    padding: 12px 13px;
    border: 1px solid #cfc7bb;
    border-radius: 6px;
    background: #fff;
    color: #102033;
    font: inherit;
}

.seller-profile-form textarea,
.shopfront-form textarea {
    min-height: 150px;
    line-height: 1.7;
    resize: vertical;
}

.seller-profile-form input:focus,
.seller-profile-form select:focus,
.seller-profile-form textarea:focus,
.shopfront-form input:focus,
.shopfront-form select:focus,
.shopfront-form textarea:focus {
    outline: 3px solid rgba(47, 104, 87, .18);
    border-color: #2f6857;
}

.seller-profile-form small,
.shopfront-form small {
    color: #7a746b;
    font-weight: 500;
}

.shopfront-block-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.block-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}

.block-head strong {
    font-size: 18px;
}

.media-field-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0 14px;
}

.media-field-grid label:last-child {
    grid-column: 1 / -1;
}

.shopfront-preview {
    width: min(320px, 100%);
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    margin-top: 12px;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 20px;
}

.sticky-actions {
    position: sticky;
    bottom: 18px;
    padding: 12px;
    border: 1px solid rgba(40, 32, 22, .12);
    border-radius: 8px;
    background: rgba(255, 253, 248, .94);
    backdrop-filter: blur(8px);
    box-shadow: 0 14px 36px rgba(35, 27, 15, .12);
}

.shop-story-blocks {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.shop-full-story {
    display: grid;
    grid-template-columns: minmax(260px, .72fr) minmax(0, 1.28fr);
    gap: 42px;
    padding: 64px max(24px, 7vw);
    background: #fffdf8;
    border-top: 1px solid rgba(40, 32, 22, .08);
    border-bottom: 1px solid rgba(40, 32, 22, .08);
}

.shop-full-story h2 {
    margin: 0;
    font: 700 clamp(30px, 3vw, 44px)/1.2 Georgia, "Noto Serif Thai", serif;
}

.shop-full-story .rich-copy {
    max-width: 820px;
    color: #26362f;
}

.shop-story-block {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
    gap: 20px;
    align-items: center;
    padding: 22px;
    border: 1px solid rgba(40, 32, 22, .1);
    border-radius: 8px;
    background: #fffdf8;
}

.shop-story-block img,
.shop-block-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 0;
    border-radius: 8px;
}

.shop-block-video {
    min-width: 0;
}

.product-video.video-provider-facebook,
.product-video.video-provider-instagram {
    grid-template-columns: minmax(260px, .75fr) minmax(280px, 480px);
    justify-content: center;
    align-items: start;
}

.product-video.video-provider-facebook iframe,
.product-video.video-provider-instagram iframe {
    width: min(100%, 480px);
    max-height: 760px;
    aspect-ratio: 9 / 16;
    justify-self: center;
    background: #050505;
}

.shop-block-video.video-provider-facebook,
.shop-block-video.video-provider-instagram {
    display: grid;
    justify-items: center;
}

.shop-block-video.video-provider-facebook iframe,
.shop-block-video.video-provider-instagram iframe {
    width: min(100%, 420px);
    max-height: 680px;
    aspect-ratio: 9 / 16;
    background: #050505;
}

.subscription-shell {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 64px 0 88px;
}

.subscription-head {
    align-items: end;
}

.inline-flash {
    width: auto;
    margin: 0 0 18px;
}

.subscription-overview,
.subscription-plans,
.product-entitlement-card {
    display: grid;
    gap: 16px;
}

.subscription-overview {
    grid-template-columns: 1.4fr 1fr 1fr;
    margin: 26px 0;
}

.subscription-overview article,
.subscription-plan,
.product-entitlement-card {
    background: #fffdf8;
    border: 1px solid #e5d7c3;
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(23, 31, 48, .07);
}

.subscription-overview article {
    padding: 24px;
}

.subscription-overview small,
.product-entitlement-card small {
    display: block;
    color: #657268;
    font-size: .82rem;
    margin-bottom: 8px;
}

.subscription-overview strong {
    display: block;
    color: #07182f;
    font-family: Georgia, serif;
    font-size: clamp(1.7rem, 3vw, 2.8rem);
    line-height: 1;
    margin-bottom: 10px;
}

.subscription-overview span,
.product-entitlement-card p,
.subscription-plan p {
    color: #58645d;
    line-height: 1.65;
}

.subscription-plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.subscription-plan {
    display: grid;
    align-content: space-between;
    min-height: 330px;
    padding: 26px;
}

.subscription-plan.is-current {
    border-color: #0f3f33;
    box-shadow: 0 0 0 2px rgba(15, 63, 51, .12), 0 18px 44px rgba(23, 31, 48, .07);
}

.subscription-plan h2 {
    margin: 8px 0 10px;
    font-size: clamp(1.55rem, 2.4vw, 2.4rem);
}

.subscription-plan > strong {
    color: #07182f;
    font-family: Georgia, serif;
    font-size: 2.2rem;
    margin: 24px 0 18px;
}

.subscription-plan > strong small {
    display: block;
    font-family: inherit;
    font-size: .88rem;
    font-weight: 600;
    color: #657268;
}

.product-entitlement-card {
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    margin: 22px 0;
    padding: 18px;
}

.product-entitlement-card strong {
    font-size: 1.55rem;
}

.visibility-badge {
    display: inline-flex;
    width: fit-content;
    margin-top: 10px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
}

.visibility-badge.visible {
    background: #e5f3ec;
    color: #0f3f33;
}

.visibility-badge.hidden {
    background: #f7e8d5;
    color: #8a3f18;
}

.manage-list article.is-subscription-hidden {
    background: #fff8ef;
    border-color: #edcfaa;
}

.subscription-notice-card {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, .9fr) minmax(220px, auto);
    gap: 18px;
    align-items: center;
    margin: 22px 0 26px;
    padding: 22px;
    background: #f4faf6;
    border: 1px solid #cfe3d6;
    border-left: 6px solid #0f3f33;
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(23, 31, 48, .06);
}

.subscription-notice-card.needs-action {
    background: #fff8ef;
    border-color: #edcfaa;
    border-left-color: #c85d1f;
}

.subscription-notice-card h2 {
    margin: 4px 0 8px;
    font-size: clamp(1.35rem, 2vw, 2rem);
}

.subscription-notice-card p {
    margin: 0;
    color: #536159;
    line-height: 1.7;
}

.subscription-notice-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.subscription-notice-metrics span {
    min-width: 0;
    padding: 12px;
    background: rgba(255, 255, 255, .72);
    border: 1px solid rgba(15, 63, 51, .12);
    border-radius: 8px;
}

.subscription-notice-metrics small,
.subscription-notice-actions small {
    display: block;
    color: #657268;
    font-size: .78rem;
    line-height: 1.4;
}

.subscription-notice-metrics strong {
    display: block;
    margin-top: 5px;
    color: #07182f;
    font-size: 1.35rem;
}

.subscription-notice-actions {
    display: grid;
    justify-items: start;
    gap: 12px;
}

.legacy-plan-notice {
    display: none;
}

.seller-plan-summary,
.subscription-page-v2 {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

.seller-plan-summary {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, .95fr) minmax(220px, auto);
    gap: 18px;
    align-items: center;
    margin-block: 22px 28px;
    padding: 22px;
    background: #fffdf8;
    border: 1px solid #e3d4bf;
    border-left: 6px solid #0f3f33;
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(23, 31, 48, .07);
}

.seller-plan-summary.needs-action {
    border-left-color: #c85d1f;
    background: #fff8ef;
}

.seller-plan-copy h2 {
    margin: 4px 0 8px;
    font-size: clamp(1.45rem, 2.1vw, 2.1rem);
}

.seller-plan-copy p,
.seller-plan-action small {
    color: #58645d;
    line-height: 1.65;
}

.seller-plan-numbers,
.subscription-current-numbers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.seller-plan-numbers span,
.subscription-current-numbers span {
    padding: 13px;
    background: #f8f2e8;
    border: 1px solid #e4d8c7;
    border-radius: 8px;
}

.seller-plan-numbers span.warn,
.subscription-current-numbers span.warn {
    background: #fff0df;
    border-color: #edcfaa;
}

.seller-plan-numbers small,
.subscription-current-numbers small {
    display: block;
    color: #657268;
    font-size: .78rem;
}

.seller-plan-numbers strong,
.subscription-current-numbers strong {
    display: block;
    margin-top: 6px;
    color: #07182f;
    font-size: 1.35rem;
}

.seller-plan-action {
    display: grid;
    gap: 12px;
    justify-items: start;
}

.subscription-page-v2 {
    padding: 56px 0 88px;
}

.subscription-hero-v2,
.subscription-current-v2,
.subscription-rules-v2,
.subscription-plan-area-v2 {
    background: #fffdf8;
    border: 1px solid #e3d4bf;
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(23, 31, 48, .06);
}

.subscription-hero-v2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: end;
    padding: 30px;
    margin-bottom: 18px;
}

.subscription-hero-v2 h1 {
    margin: 6px 0 10px;
    font-size: clamp(2.4rem, 5vw, 4.2rem);
}

.subscription-hero-v2 p,
.subscription-current-v2 p,
.subscription-rules-v2 li,
.subscription-card-v2 p {
    color: #58645d;
    line-height: 1.65;
}

.subscription-current-v2 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, .9fr);
    gap: 18px;
    align-items: center;
    padding: 24px;
    margin-bottom: 18px;
}

.subscription-current-v2 h2,
.subscription-rules-v2 h2,
.subscription-plan-area-v2 h2 {
    margin: 4px 0 8px;
    font-size: clamp(1.6rem, 2.4vw, 2.5rem);
}

.subscription-rules-v2 {
    padding: 24px 28px;
    margin-bottom: 18px;
}

.subscription-rules-v2 ol {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: plan-rule;
}

.subscription-rules-v2 li {
    position: relative;
    padding: 16px 16px 16px 54px;
    background: #f7f0e6;
    border: 1px solid #e6d8c6;
    border-radius: 8px;
}

.subscription-rules-v2 li::before {
    counter-increment: plan-rule;
    content: counter(plan-rule);
    position: absolute;
    left: 16px;
    top: 15px;
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    background: #0f3f33;
    color: #fff;
    font-weight: 800;
}

.subscription-plan-area-v2 {
    padding: 26px;
}

.subscription-plan-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.subscription-card-v2 {
    position: relative;
    display: grid;
    align-content: start;
    min-height: 340px;
    padding: 24px;
    background: #fbf7ef;
    border: 1px solid #dfd1be;
    border-radius: 8px;
}

.subscription-card-v2.is-current {
    background: #eff8f2;
    border-color: #9ec4ae;
}

.subscription-card-v2 h3 {
    margin: 8px 0 10px;
    font-size: clamp(1.7rem, 2.4vw, 2.5rem);
}

.subscription-card-v2 > strong {
    margin: 22px 0 18px;
    color: #07182f;
    font-family: Georgia, serif;
    font-size: 2.35rem;
}

.subscription-card-v2 > strong small {
    display: block;
    margin-top: 4px;
    color: #657268;
    font-family: inherit;
    font-size: .9rem;
}

.subscription-card-v2 form {
    margin-top: auto;
}

.current-plan-pill {
    position: absolute;
    right: 16px;
    top: 16px;
    padding: 5px 10px;
    background: #0f3f33;
    color: #fff;
    border-radius: 999px;
    font-size: .76rem;
    font-weight: 800;
}

.seller-renewal-alert,
.seller-thankyou-alert {
    width: min(1180px, calc(100% - 48px));
    margin: 18px auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    padding: 22px;
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(23, 31, 48, .07);
}

.seller-renewal-alert {
    background: #fff5e8;
    border: 1px solid #edcfaa;
    border-left: 6px solid #c85d1f;
}

.seller-thankyou-alert {
    background: #eef8f2;
    border: 1px solid #b9d9c5;
    border-left: 6px solid #0f7a4f;
}

.seller-renewal-alert h2,
.seller-thankyou-alert h2 {
    margin: 4px 0 8px;
    font-size: clamp(1.45rem, 2.1vw, 2.1rem);
}

.seller-renewal-alert p,
.seller-thankyou-alert p {
    margin: 0;
    color: #536159;
    line-height: 1.7;
}

.selectable-products article {
    grid-template-columns: auto 92px minmax(0, 1fr) auto;
}

.priority-check {
    display: grid;
    justify-items: center;
    gap: 6px;
    width: 86px;
    color: #536159;
    font-size: .76rem;
    font-weight: 800;
    text-align: center;
}

.priority-check input {
    width: 20px;
    height: 20px;
    accent-color: #0f3f33;
}

.selectable-products article.is-prioritized {
    border-color: #9ec4ae;
    background: #f5fbf7;
}

.link-button {
    appearance: none;
    border: 0;
    background: transparent;
    color: #0f3f33;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    padding: 0;
}

.product-priority-guide h2 {
    margin: 0 0 6px;
    font-size: 1.25rem;
}

@media (max-width: 840px) {
    .admin-grid,
    .shop-story-block,
    .shopfront-block-grid,
    .subscription-overview,
    .subscription-plans,
    .product-entitlement-card,
    .subscription-notice-card,
    .subscription-notice-metrics,
    .seller-plan-summary,
    .seller-plan-numbers,
    .seller-renewal-alert,
    .seller-thankyou-alert,
    .selectable-products article,
    .subscription-hero-v2,
    .subscription-current-v2,
    .subscription-current-numbers,
    .subscription-rules-v2 ol,
    .subscription-plan-grid-v2,
    .shop-full-story {
        grid-template-columns: 1fr;
    }

    .admin-table article,
    .admin-table.compact article {
        grid-template-columns: 1fr;
    }

    .product-video.video-provider-facebook,
    .product-video.video-provider-instagram {
        grid-template-columns: 1fr;
    }

    .profile-editor,
    .shopfront-editor {
        padding-inline: 16px;
    }

    .profile-form-section,
    .shopfront-block {
        padding: 18px;
    }

    .media-field-grid {
        grid-template-columns: 1fr;
    }

    .form-actions,
    .sticky-actions {
        justify-content: stretch;
    }

    .form-actions .button,
    .sticky-actions .button {
        width: 100%;
    }

    .subscription-shell {
        width: min(100% - 28px, 640px);
        padding-top: 36px;
    }

    .seller-plan-summary,
    .subscription-page-v2,
    .seller-renewal-alert,
    .seller-thankyou-alert {
        width: min(100% - 28px, 640px);
    }

    .subscription-hero-v2,
    .subscription-current-v2,
    .subscription-rules-v2,
    .subscription-plan-area-v2 {
        padding: 18px;
    }
}
