@import url("/assets/user/css/onesh-core.css");

.store-hero {
    position: relative;
    display: flex;
    min-height: 278px;
    overflow: hidden;
    align-items: flex-end;
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background-image: linear-gradient(90deg, rgba(0, 0, 0, .72), rgba(0, 0, 0, .22)), var(--hero-background);
    background-position: center;
    background-size: cover;
    box-shadow: var(--shadow);
}

.store-hero__copy {
    position: relative;
    z-index: 1;
    max-width: 520px;
}

.store-hero h1 {
    margin: 12px 0 8px;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.05;
    letter-spacing: 0;
}

.store-hero p {
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 15px;
}

.store-hero__glow {
    position: absolute;
    right: 8%;
    bottom: -20%;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--accent) 28%, transparent);
    filter: blur(70px);
}

.store-notice {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-top: 16px;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.store-notice__icon {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    color: var(--accent);
    background: var(--accent-soft);
}

.store-notice strong {
    display: block;
    margin-bottom: 3px;
}

.store-notice p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.65;
}

.store-notice[data-notice-trigger] {
    cursor: pointer;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.store-notice[data-notice-trigger]:hover,
.store-notice[data-notice-trigger]:focus-visible {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow-soft);
    outline: 0;
}

.store-notice[data-notice-trigger]:active {
    transform: translateY(1px);
}

.notice-drawer {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity .22s ease, visibility 0s linear .22s;
}

.notice-drawer[hidden] {
    display: flex;
}

.notice-drawer.is-open {
    visibility: visible;
    opacity: 1;
    transition-delay: 0s;
}

.notice-drawer__scrim {
    position: absolute;
    inset: 0;
    background: rgba(16, 20, 29, .46);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}

.notice-drawer__panel {
    position: relative;
    z-index: 1;
    width: min(100% - 24px, 560px);
    max-height: min(78vh, 620px);
    overflow: auto;
    margin: 0 auto;
    padding: 24px 22px max(22px, env(safe-area-inset-bottom));
    border: 1px solid var(--border);
    border-bottom: 0;
    border-radius: 24px 24px 0 0;
    background: var(--surface);
    box-shadow: 0 -18px 50px rgba(0, 0, 0, .2);
    transform: translateY(100%);
    transition: transform .28s cubic-bezier(.22, .8, .25, 1);
}

.notice-drawer.is-open .notice-drawer__panel {
    transform: translateY(0);
}

.notice-drawer__close {
    position: absolute;
    top: 17px;
    right: 17px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    color: var(--text-soft);
    background: transparent;
    font-size: 18px;
    transition: color .18s ease, background-color .18s ease;
}

.notice-drawer__close:hover,
.notice-drawer__close:focus-visible {
    color: var(--text);
    background: var(--surface-soft);
    outline: 0;
}

.notice-drawer__head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 42px;
}

.notice-drawer__icon {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 13px;
    color: var(--accent);
    background: var(--accent-soft);
    font-size: 18px;
}

.notice-drawer__head strong {
    display: block;
    color: var(--text);
    font-size: 17px;
}

.notice-drawer__head small {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: var(--text-soft);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notice-drawer__body {
    margin-top: 18px;
    max-height: min(38vh, 300px);
    overflow: auto;
    padding: 14px 15px;
    border: 1px solid var(--border);
    border-radius: 14px;
    color: var(--text-muted);
    background: var(--surface-soft);
    font-size: 13px;
    line-height: 1.75;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.notice-drawer__body p {
    margin: 0 0 10px;
}

.notice-drawer__body p:last-child {
    margin-bottom: 0;
}

.notice-drawer__ack {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    margin-top: 18px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    color: #fff;
    background: var(--accent);
    box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 24%, transparent);
    font-size: 14px;
    font-weight: 700;
    transition: filter .18s ease, transform .18s ease;
}

.notice-drawer__ack:hover,
.notice-drawer__ack:focus-visible {
    filter: brightness(1.06);
    outline: 0;
}

.notice-drawer__ack:active {
    transform: translateY(1px);
}

body.notice-drawer-open {
    overflow: hidden;
}

.store-catalog {
    display: grid;
    grid-template-columns: 235px minmax(0, 1fr);
    gap: 30px;
    margin-top: 34px;
}

.catalog-sidebar {
    align-self: start;
    position: sticky;
    top: 96px;
}

.catalog-sidebar__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 700;
}

.catalog-count {
    color: var(--text-soft);
    font-size: 12px;
    font-weight: 500;
}

.catalog-categories {
    display: grid;
    gap: 5px;
}

.catalog-category {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--text-muted);
    transition: color .18s ease, background-color .18s ease, border-color .18s ease;
}

.catalog-category > span:nth-child(2) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.catalog-category i {
    margin-left: auto;
    color: var(--text-soft);
    font-size: 11px;
}

.catalog-category__icon {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background-position: center;
    background-size: cover;
}

.catalog-category:hover,
.catalog-category.is-primary {
    color: var(--text);
    border-color: var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.catalog-category.is-primary {
    color: var(--accent);
}

.catalog-toolbar {
    display: flex;
    align-items: end;
    gap: 18px;
    margin-bottom: 18px;
}

.catalog-toolbar__copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
}

.catalog-toolbar h2 {
    margin: 6px 0 0;
    font-size: 24px;
    letter-spacing: 0;
}

.query-input-wrap input::placeholder {
    color: var(--text-soft);
}

.item-list {
    display: grid;
    gap: 10px;
}

.store-category-heading {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 12px 0 1px;
    color: var(--text);
}

.store-category-heading__line {
    width: 4px;
    height: 22px;
    border-radius: 3px;
    background: var(--accent);
}

.store-category-heading strong {
    font-size: 16px;
}

.store-category-heading > span:last-child {
    color: var(--text-soft);
    font-size: 12px;
}

.store-product {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) auto 38px 16px;
    align-items: center;
    gap: 13px;
    min-height: 84px;
    padding: 10px 14px 10px 10px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
    transition: border-color .18s ease, background-color .18s ease, transform .18s ease;
}

.store-product:hover {
    border-color: color-mix(in srgb, var(--accent) 52%, var(--border));
    background: var(--surface-raised);
    transform: translateY(-1px);
}

.store-product.is-soldout {
    opacity: .62;
    filter: grayscale(.5);
}

.store-product__image {
    display: block;
    width: 64px;
    height: 64px;
    overflow: hidden;
    border-radius: 10px;
    background: var(--surface-soft);
}

.store-product__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.store-product__body {
    display: grid;
    min-width: 0;
    gap: 7px;
}

.store-product__name {
    overflow: hidden;
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.store-product__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.store-product__price {
    color: var(--accent);
    font-size: 17px;
    font-weight: 800;
    white-space: nowrap;
}

.store-product__cart {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--text-muted);
    background: var(--surface-soft);
}

.store-product:hover .store-product__cart {
    color: var(--accent);
    border-color: var(--accent);
}

.store-product__arrow {
    color: var(--text-soft);
    font-size: 11px;
}

.store-loading,
.store-empty {
    display: flex;
    min-height: 160px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
}

.store-loading i,
.store-empty i {
    color: var(--accent);
    font-size: 22px;
}

.store-empty strong {
    color: var(--text);
}

.store-empty span {
    font-size: 13px;
}

.purchase-feed {
    margin-top: 24px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.purchase-feed--item {
    margin-top: 22px;
}

.purchase-feed__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 15px;
}

.purchase-feed__head h2 {
    margin: 6px 0 0;
    font-size: 20px;
    letter-spacing: 0;
}

.purchase-feed__list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.purchase-feed__item {
    display: flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 11px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-soft);
}

.purchase-feed__item:nth-child(n + 4) {
    display: none;
}

@keyframes purchase-feed-refresh {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.purchase-feed__list.is-refreshing .purchase-feed__item {
    animation: purchase-feed-refresh .42s ease both;
}

.purchase-feed__list.is-refreshing .purchase-feed__item:nth-child(2) {
    animation-delay: .05s;
}

.purchase-feed__list.is-refreshing .purchase-feed__item:nth-child(3) {
    animation-delay: .1s;
}

.purchase-feed__avatar {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 50%;
    color: var(--accent);
    background: var(--accent-soft);
}

.purchase-feed__copy {
    min-width: 0;
    flex: 1;
}

.purchase-feed__copy > div {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 5px;
    overflow: hidden;
    color: var(--text-muted);
    font-size: 12px;
    white-space: nowrap;
}

.purchase-feed__copy strong,
.purchase-feed__copy b {
    color: var(--text);
}

.purchase-feed__copy em {
    overflow: hidden;
    color: var(--accent);
    font-style: normal;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.purchase-feed__copy small {
    display: block;
    margin-top: 5px;
    color: var(--text-soft);
    font-size: 11px;
}

.purchase-feed__copy small i {
    margin-right: 5px;
}

.purchase-feed__empty {
    display: flex;
    min-height: 70px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text-muted);
}

.purchase-feed__empty i {
    color: var(--accent);
}

.store-breadcrumb {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 18px;
    color: var(--text-muted);
    font-size: 13px;
}

.store-breadcrumb a:hover {
    color: var(--accent);
}

.store-breadcrumb i {
    color: var(--text-soft);
    font-size: 10px;
}

.item-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
    gap: 30px;
    align-items: start;
}

.item-cover-frame {
    position: relative;
    min-height: 520px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.item-cover {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 520px;
    object-fit: cover;
}

.item-visual__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    color: var(--text-muted);
    font-size: 13px;
}

.item-visual__meta span,
.item-visual__meta button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.item-visual__meta button {
    padding: 0;
    border: 0;
    color: var(--accent);
    background: transparent;
    cursor: pointer;
}

.item-purchase {
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.item-heading__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.item-services {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.item-service {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--accent);
    background: var(--accent-soft);
    font-size: 12px;
    font-weight: 700;
}

.item-service:hover {
    border-color: var(--accent);
}

.item-policy {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 14px;
    padding: 10px 12px;
    border: 1px solid var(--warning);
    border-radius: 9px;
    color: var(--text-muted);
    background: var(--warning-soft);
    font-size: 12px;
    line-height: 1.6;
}

.item-policy > i {
    flex: 0 0 auto;
    margin-top: 2px;
    color: var(--warning);
}

.item-heading h1 {
    margin: 16px 0 12px;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.15;
    letter-spacing: 0;
}

.item-price .price {
    color: var(--accent);
    font-size: 30px;
    font-weight: 800;
}

.item-form {
    display: grid;
    gap: 17px;
    margin-top: 24px;
}

.field-group {
    display: grid;
    gap: 7px;
}

.field-label {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 700;
}

.field-hint {
    color: var(--text-soft);
    font-size: 11px;
}

.choice-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.choice,
.field-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 36px;
    padding: 8px 11px;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--text-muted);
    background: var(--surface-soft);
    cursor: pointer;
    transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}

.choice b {
    color: var(--accent);
    font-size: 11px;
    font-weight: 600;
}

.choice:hover,
.choice.is-primary,
.field-button:hover {
    color: var(--text);
    border-color: var(--accent);
    background: var(--accent-soft);
}

.form-control {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 9px;
    outline: 0;
    color: var(--text);
    background: var(--surface-soft);
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.form-control:focus {
    border-color: var(--accent);
    background: var(--surface);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.qty-group {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    align-items: center;
    width: 150px;
    min-height: 42px;
    padding: 3px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface-soft);
}

.qty-group button {
    height: 32px;
    border: 0;
    border-radius: 7px;
    color: var(--text);
    background: transparent;
    cursor: pointer;
}

.qty-group button:hover {
    color: var(--accent);
    background: var(--accent-soft);
}

.qty-group input {
    min-height: 32px;
    padding: 2px;
    border: 0;
    text-align: center;
    background: transparent;
    box-shadow: none;
}

.qty-group input::-webkit-inner-spin-button,
.qty-group input::-webkit-outer-spin-button {
    margin: 0;
    appearance: none;
}

.captcha-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 110px;
    gap: 8px;
}

.captcha-img {
    width: 110px;
    height: 44px;
    object-fit: cover;
    border: 1px solid var(--border);
    border-radius: 9px;
    cursor: pointer;
}

.payment-panel {
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-soft);
}

.payment-panel__title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--text);
    font-size: 13px;
    font-weight: 700;
}

.pay-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pay-list .pay {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 36px;
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 9px;
    color: var(--text-muted);
    background: var(--surface);
    cursor: pointer;
}

.pay-list .pay:hover,
.pay-list .pay.active,
.pay-list .pay.is-primary,
.pay-list .pay.selected {
    color: var(--accent);
    border-color: var(--accent);
    background: var(--accent-soft);
}

.pay-list .pay img {
    width: 18px;
    height: 18px;
    object-fit: cover;
    border-radius: 5px;
}

.item-description,
.query-result-panel {
    margin-top: 22px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.section-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.section-heading__line {
    width: 4px;
    height: 22px;
    border-radius: 3px;
    background: var(--accent);
}

.section-heading h2 {
    margin: 0;
    font-size: 18px;
}

.item-description__body {
    color: var(--text-muted);
    line-height: 1.75;
}

.item-description__body img {
    max-width: 100%;
    height: auto;
}

.page-intro {
    max-width: 680px;
    margin: 22px 0 24px;
}

.page-intro h1 {
    margin: 10px 0 8px;
    font-size: 34px;
    letter-spacing: 0;
}

.page-intro p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.query-panel {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.order-query-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.query-input-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    background: var(--surface-soft);
}

.query-input-wrap:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.query-input-wrap input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    color: var(--text);
    background: transparent;
}

.query-result-panel {
    margin-top: 18px;
}

.empty-state {
    display: flex;
    min-height: 220px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    padding: 28px;
    border: 1px dashed var(--border-strong);
    border-radius: var(--radius);
    text-align: center;
}

.empty-state > i {
    color: var(--accent);
    font-size: 28px;
}

.empty-state h2 {
    margin: 4px 0 0;
    font-size: 18px;
}

.empty-state p {
    margin: 0;
    color: var(--text-muted);
}

.order-item {
    margin-bottom: 12px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--surface-soft);
}

.order-header {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.order-left {
    display: flex;
    gap: 14px;
}

.order-basic,
.goods-details {
    min-width: 0;
}

.order-no {
    color: var(--text);
    font-weight: 700;
}

.order-time,
.payment-time,
.payment-dst,
.amount-label {
    margin-top: 4px;
    color: var(--text-muted);
    font-size: 12px;
}

.amount-value {
    color: var(--accent);
    font-size: 22px;
    font-weight: 800;
}

.goods-section {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 11px;
    background: var(--surface);
}

.goods-image {
    width: 58px;
    height: 58px;
    object-fit: cover;
    border-radius: 9px;
}

.goods-name {
    margin: 2px 0 8px;
    color: var(--text);
    font-size: 14px;
}

.goods-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.card-section {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}

.card-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--text);
    font-weight: 700;
}

.card-content,
.card-content-no-password {
    margin-top: 10px;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    background: var(--surface);
    white-space: pre-line;
    word-break: break-word;
}

.card-password-input {
    border-radius: 9px 0 0 9px;
}

.view-card-btn {
    border: 1px solid var(--accent);
    border-radius: 0 9px 9px 0;
    color: #fff;
    background: var(--accent);
}

.shipment-badge {
    display: inline-flex;
    margin-left: 6px;
    padding: 3px 7px;
    border-radius: 999px;
    font-size: 11px;
}

.shipment-waiting {
    color: var(--warning);
    background: var(--warning-soft);
}

.shipment-paid {
    color: var(--success);
    background: var(--success-soft);
}

.flow-shell {
    width: min(900px, calc(100% - 36px));
}

.flow-intro {
    margin: 8px 0 24px;
}

.flow-intro h1 {
    margin: 10px 0 8px;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    letter-spacing: 0;
}

.flow-intro p {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.7;
}

.flow-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, .82fr);
    gap: 18px;
    align-items: start;
}

.flow-card {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--surface);
    box-shadow: var(--shadow-soft);
}

.flow-card + .flow-card {
    margin-top: 18px;
}

.flow-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.flow-card__head h2 {
    margin: 0;
    font-size: 18px;
    letter-spacing: 0;
}

.flow-summary {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 13px;
    align-items: center;
}

.flow-summary__image {
    width: 68px;
    height: 68px;
    object-fit: cover;
    border-radius: 12px;
    background: var(--surface-soft);
}

.flow-summary__name {
    color: var(--text);
    font-weight: 700;
}

.flow-summary__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 7px;
}

.flow-summary__line,
.flow-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.flow-summary__line {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 13px;
}

.flow-total {
    margin-top: 9px;
    color: var(--text);
    font-weight: 700;
}

.flow-total strong {
    color: var(--accent);
    font-size: 22px;
}

.flow-form {
    display: grid;
    gap: 16px;
}

.flow-payment-options {
    display: grid;
    gap: 8px;
}

.flow-payment-option {
    display: flex;
    align-items: center;
    gap: 11px;
    width: 100%;
    min-height: 52px;
    padding: 9px 11px;
    border: 1px solid var(--border);
    border-radius: 11px;
    color: var(--text);
    text-align: left;
    background: var(--surface-soft);
    cursor: pointer;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease;
}

.flow-payment-option:hover,
.flow-payment-option.is-selected {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-soft);
}

.flow-payment-option i {
    display: grid;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    place-items: center;
    border-radius: 8px;
    color: var(--accent);
    background: var(--surface);
}

.flow-payment-option span {
    display: grid;
    gap: 2px;
}

.flow-payment-option small {
    color: var(--text-muted);
    font-size: 11px;
}

.flow-stepper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 7px;
    margin-bottom: 24px;
}

.flow-step {
    display: grid;
    gap: 7px;
    color: var(--text-soft);
    font-size: 11px;
    text-align: center;
}

.flow-step::before {
    content: "";
    display: block;
    height: 4px;
    border-radius: 999px;
    background: var(--surface-soft);
}

.flow-step.is-active,
.flow-step.is-done {
    color: var(--accent);
}

.flow-step.is-active::before,
.flow-step.is-done::before {
    background: var(--accent);
}

.flow-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--warning);
    background: var(--warning-soft);
    font-size: 12px;
}

.flow-status--success {
    color: var(--success);
    background: var(--success-soft);
}

.flow-status--danger {
    color: var(--danger);
    background: var(--danger-soft);
}

.flow-order-meta {
    display: grid;
    gap: 10px;
}

.flow-order-meta__row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    color: var(--text-muted);
    font-size: 13px;
}

.flow-order-meta__row strong {
    color: var(--text);
    text-align: right;
    word-break: break-all;
}

.flow-secret {
    margin: 0;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    background: var(--surface-soft);
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    line-height: 1.7;
    white-space: pre-wrap;
    word-break: break-word;
}

.flow-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 18px;
}

.flow-actions .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    background: var(--surface-soft);
}

.flow-note {
    margin: 16px 0 0;
    color: var(--text-muted);
    font-size: 12px;
    line-height: 1.7;
}

.flow-empty {
    padding: 36px 20px;
    border: 1px dashed var(--border-strong);
    border-radius: 14px;
    color: var(--text-muted);
    text-align: center;
}

.flow-empty i {
    margin-bottom: 8px;
    color: var(--accent);
    font-size: 26px;
}

.flow-query-list {
    display: grid;
    gap: 10px;
    margin-top: 18px;
}

.flow-query-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface-soft);
}

.flow-query-item__copy {
    min-width: 0;
}

.flow-query-item__copy strong,
.flow-query-item__copy small {
    display: block;
}

.flow-query-item__copy strong {
    overflow: hidden;
    color: var(--text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.flow-query-item__copy small {
    margin-top: 4px;
    color: var(--text-muted);
}

@media (max-width: 720px) {
    .flow-shell {
        width: min(100% - 28px, 600px);
    }

    .flow-grid {
        grid-template-columns: 1fr;
    }

    .flow-card {
        padding: 17px;
        border-radius: 16px;
    }

    .flow-step {
        font-size: 10px;
    }

    .flow-query-item {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 900px) {
    .store-catalog {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .catalog-sidebar {
        position: static;
    }

    .catalog-toolbar {
        display: flex;
        align-items: stretch;
    }

    .catalog-sidebar:not(.is-open) {
        display: none;
    }

    .catalog-categories {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .item-layout {
        grid-template-columns: 1fr;
    }

    .item-cover-frame,
    .item-cover {
        min-height: min(70vw, 480px);
    }

    .purchase-feed__list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 580px) {
    .store-shell {
        width: min(100% - 24px, 600px);
        padding-top: 18px;
    }

    .store-hero {
        min-height: 230px;
        padding: 24px 20px;
        border-radius: 16px;
    }

    .store-hero h1 {
        font-size: 2rem;
    }

    .notice-drawer__panel {
        width: 100%;
        padding: 21px 16px max(16px, env(safe-area-inset-bottom));
        border-radius: 21px 21px 0 0;
    }

    .notice-drawer__body {
        max-height: 42vh;
    }

    .catalog-categories {
        grid-template-columns: 1fr;
    }

    .purchase-feed {
        padding: 16px;
        border-radius: 16px;
    }

    .purchase-feed__head {
        align-items: flex-start;
    }

    .purchase-feed__head h2 {
        font-size: 18px;
    }

    .purchase-feed__item {
        padding: 10px;
    }

    .store-product {
        grid-template-columns: 52px minmax(0, 1fr) auto 34px;
        gap: 10px;
        min-height: 72px;
        padding: 8px;
    }

    .store-product__image {
        width: 52px;
        height: 52px;
    }

    .store-product__price {
        grid-column: 3;
        grid-row: 1;
        font-size: 14px;
    }

    .store-product__cart {
        grid-column: 4;
        grid-row: 1;
        width: 32px;
        height: 32px;
    }

    .store-product__arrow {
        display: none;
    }

    .store-product__body {
        grid-column: 2;
        grid-row: 1;
    }

    .store-product__name {
        font-size: 13px;
    }

    .store-product__meta {
        gap: 3px;
    }

    .store-product__meta .store-badge {
        padding: 2px 6px;
        font-size: 10px;
    }

    .item-purchase,
    .item-description,
    .query-result-panel {
        padding: 17px;
        border-radius: 16px;
    }

    .item-heading h1 {
        font-size: 1.6rem;
    }

    .order-query-form {
        grid-template-columns: 1fr;
    }

    .btn-search-query {
        width: 100%;
    }

    .order-header,
    .order-left {
        flex-direction: column;
    }

    .order-right {
        text-align: left;
    }
}
