body.hypego-storefront .shop-purchase-panel,
body.hypego-storefront .shop-dialog-panel,
body.hypego-storefront .shop-dialog-panel * {
    box-sizing: border-box;
}

body.hypego-storefront .shop-purchase-panel {
    width: 100%;
    padding: 28px;
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: 8px;
    box-shadow: var(--sf-shadow);
}

body.hypego-storefront .shop-purchase-label {
    margin: 0 0 14px;
    color: var(--sf-muted);
    font-size: 14px;
    font-weight: 500;
}

body.hypego-storefront .shop-server-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
    gap: 10px;
}

body.hypego-storefront .shop-server-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    min-height: 56px;
    padding: 12px 16px;
    background: var(--sf-soft);
    color: var(--sf-text);
    border: 1px solid var(--sf-border);
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease;
}

body.hypego-storefront .shop-server-button::after {
    content: "›";
    flex: 0 0 auto;
    margin-left: 12px;
    color: var(--sf-orange-text);
    font-size: 23px;
    line-height: 1;
}

body.hypego-storefront .shop-server-button:hover,
body.hypego-storefront .shop-product-button:hover {
    background: var(--sf-orange-soft);
    border-color: var(--sf-orange);
}

body.hypego-storefront .shop-server-button:focus-visible,
body.hypego-storefront .shop-product-button:focus-visible,
body.hypego-storefront .shop-icon-button:focus-visible,
body.hypego-storefront .shop-buy-button:focus-visible {
    outline: 3px solid var(--sf-orange);
    outline-offset: 3px;
}

body.hypego-storefront .shop-dialog[open] {
    display: block;
}

body.hypego-storefront .shop-dialog {
    width: min(700px, calc(100% - 32px));
    max-width: 700px;
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 0;
    overflow: hidden;
    background: transparent;
    color: var(--sf-text);
    border: 0;
}

body.hypego-storefront .shop-dialog::backdrop {
    background: rgba(9, 10, 13, .68);
    backdrop-filter: blur(3px);
}

body.hypego-storefront .shop-dialog-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 18px;
    width: 100%;
    max-height: calc(100dvh - 32px);
    padding: 24px;
    overflow: auto;
    overscroll-behavior: contain;
    background: var(--sf-surface);
    color: var(--sf-text);
    border: 1px solid var(--sf-border);
    border-radius: 12px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .32);
}

body.hypego-storefront .shop-dialog-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

body.hypego-storefront .shop-dialog-eyebrow {
    margin: 0 0 5px;
    color: var(--sf-muted);
    font-size: 12px;
    line-height: 1.4;
}

body.hypego-storefront .shop-dialog-header h2 {
    margin: 0;
    color: var(--sf-text);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

body.hypego-storefront .shop-icon-button {
    display: grid;
    flex: 0 0 36px;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: var(--sf-soft);
    color: var(--sf-muted);
    border: 1px solid var(--sf-border);
    border-radius: 8px;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

body.hypego-storefront .shop-product-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 10px;
    min-height: 0;
}

body.hypego-storefront .shop-category-group {
    display: grid;
    gap: 10px;
    min-width: 0;
}

body.hypego-storefront .shop-category-heading {
    margin: 0;
    padding: 0 0 8px;
    color: var(--sf-muted);
    border-bottom: 1px solid var(--sf-border);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

body.hypego-storefront .shop-category-products {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
}

body.hypego-storefront .shop-dialog [hidden] {
    display: none !important;
}

body.hypego-storefront .shop-product-button {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 12px;
    min-width: 0;
    min-height: 96px;
    padding: 10px;
    background: var(--sf-soft);
    color: var(--sf-text);
    border: 1px solid var(--sf-border);
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    transition: border-color 160ms ease, background-color 160ms ease;
}

body.hypego-storefront .shop-product-image {
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    overflow: hidden;
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: 6px;
}

body.hypego-storefront .shop-product-image img,
body.hypego-storefront .shop-selected-product img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.hypego-storefront .shop-product-placeholder {
    color: var(--sf-orange-text);
    font-size: 26px;
    font-weight: 750;
}

body.hypego-storefront .shop-product-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

body.hypego-storefront .shop-product-name {
    color: var(--sf-text);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

body.hypego-storefront .shop-product-price {
    color: var(--sf-orange-text);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.35;
}

body.hypego-storefront .shop-product-arrow {
    color: var(--sf-muted);
    font-size: 22px;
    text-align: center;
}

body.hypego-storefront .shop-checkout-panel {
    display: block;
    max-width: 560px;
    margin-inline: auto;
}

body.hypego-storefront .shop-checkout-form {
    display: grid;
    gap: 16px;
    margin: 16px 0 0;
}

body.hypego-storefront .shop-selected-product {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    padding: 12px;
    background: var(--sf-soft);
    border: 1px solid var(--sf-border);
    border-radius: 8px;
}

body.hypego-storefront .shop-selected-product img {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
    background: var(--sf-surface);
    border: 1px solid var(--sf-border);
    border-radius: 6px;
}

body.hypego-storefront .shop-selected-copy {
    min-width: 0;
}

body.hypego-storefront .shop-selected-copy h3 {
    margin: 0 0 5px;
    color: var(--sf-text);
    font-size: 16px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

body.hypego-storefront .shop-selected-copy p {
    margin: 0;
    color: var(--sf-orange-text);
    font-size: 14px;
    font-weight: 650;
}

body.hypego-storefront .shop-duration-options {
    display: grid;
    gap: 8px;
}

body.hypego-storefront .shop-duration-label {
    color: var(--sf-muted);
    font-size: 13px;
    font-weight: 500;
}

body.hypego-storefront .shop-duration-segment {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

body.hypego-storefront .shop-duration-segment button {
    display: grid;
    align-content: center;
    gap: 5px;
    min-width: 0;
    min-height: 58px;
    padding: 8px 6px;
    background: var(--sf-soft);
    color: var(--sf-text);
    border: 1px solid var(--sf-border);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.25;
    text-align: center;
    cursor: pointer;
}

body.hypego-storefront .shop-duration-segment button:hover,
body.hypego-storefront .shop-duration-segment button:focus-visible {
    border-color: var(--sf-orange);
}

body.hypego-storefront .shop-duration-segment button[aria-pressed="true"] {
    background: var(--sf-orange-soft);
    color: var(--sf-orange-text);
    border-color: var(--sf-orange);
}

body.hypego-storefront .shop-duration-segment button span:last-child {
    font-size: 12px;
    font-weight: 650;
}

body.hypego-storefront .payment-grid li[hidden] {
    display: none !important;
}

body.hypego-storefront .shop-product-description {
    padding: 10px 12px;
    background: var(--sf-soft);
    border: 1px solid var(--sf-border);
    border-radius: 8px;
}

body.hypego-storefront .shop-product-description summary {
    color: var(--sf-text);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

body.hypego-storefront .shop-product-description > div {
    padding-top: 10px;
    color: var(--sf-muted);
    font-size: 13px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

body.hypego-storefront .shop-product-description > div :first-child {
    margin-top: 0;
}

body.hypego-storefront .shop-product-description > div p,
body.hypego-storefront .shop-product-description > div ul,
body.hypego-storefront .shop-product-description > div ol,
body.hypego-storefront .shop-product-description > div blockquote {
    margin-bottom: 8px;
}

body.hypego-storefront .shop-product-description > div ul,
body.hypego-storefront .shop-product-description > div ol {
    padding-left: 22px;
}

body.hypego-storefront .shop-product-description > div a {
    color: var(--sf-orange-text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

body.hypego-storefront .shop-field {
    display: grid;
    gap: 7px;
    min-width: 0;
}

body.hypego-storefront .shop-field label {
    color: var(--sf-muted);
    font-size: 13px;
    font-weight: 500;
}

body.hypego-storefront .buyform.shop-checkout-form .shop-field input {
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0 13px;
    background: var(--sf-soft);
    color: var(--sf-text);
    border: 1px solid var(--sf-border);
    border-radius: 8px;
    font-size: 15px;
}

body.hypego-storefront .buyform.shop-checkout-form .shop-field input:focus {
    border-color: var(--sf-orange);
    outline: 2px solid rgba(245, 154, 11, .25);
    outline-offset: 1px;
}

body.hypego-storefront .shop-form-error {
    margin: 0;
    padding: 10px 12px;
    color: #a52323;
    background: #fff0f0;
    border: 1px solid #efc1c1;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.45;
}

body.hypego-storefront .shop-terms-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-width: 0;
}

body.hypego-storefront .shop-terms-row label {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    color: var(--sf-muted);
    font-size: 12px;
    line-height: 1.4;
}

body.hypego-storefront .shop-terms-row input {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--sf-orange);
}

body.hypego-storefront .shop-terms-row a {
    color: var(--sf-orange-text);
}

body.hypego-storefront .shop-terms-row img {
    display: block;
    flex: 0 1 184px;
    width: min(184px, 36%);
    height: auto;
    object-fit: contain;
}

body.hypego-storefront .shop-buy-button {
    width: 100%;
    min-height: 52px;
    padding: 12px 18px;
    background: var(--sf-orange);
    color: #241b0c;
    border: 0;
    border-radius: 8px;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
}

body.hypego-storefront .shop-buy-button:hover {
    background: var(--sf-orange-hover);
}

body.hypego-storefront .shop-empty-state {
    margin: 0;
    padding: 16px;
    color: var(--sf-muted);
    background: var(--sf-soft);
    border: 1px solid var(--sf-border);
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
}

@media (max-width: 600px) {
    body.hypego-storefront .shop-purchase-panel {
        padding: 18px;
    }

    body.hypego-storefront .shop-dialog {
        width: calc(100% - 20px);
        max-height: calc(100dvh - 20px);
    }

    body.hypego-storefront .shop-dialog-panel {
        gap: 14px;
        max-height: calc(100dvh - 20px);
        padding: 18px;
    }

    body.hypego-storefront .shop-category-products {
        grid-template-columns: minmax(0, 1fr);
    }

    body.hypego-storefront .shop-duration-segment {
        gap: 6px;
    }

    body.hypego-storefront .shop-duration-segment button {
        padding-inline: 4px;
        font-size: 12px;
    }

    body.hypego-storefront .shop-terms-row {
        align-items: flex-start;
        flex-direction: column;
    }

    body.hypego-storefront .shop-terms-row img {
        width: min(184px, 70%);
    }
}

@media (prefers-reduced-motion: reduce) {
    body.hypego-storefront .shop-server-button,
    body.hypego-storefront .shop-product-button {
        transition: none;
    }
}
