.shop-page {
    background: #ffffff;
    --shop-page-padding: clamp(12px, 2.2vw, 32px);
    color: #111827;
}

.shop-shell {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0 var(--shop-page-padding) 40px;
}

.shop-seller-shell {
    gap: 10px;
    padding-top: 0;
}

.shop-shell > * {
    width: 100%;
    margin-inline: auto;
}

.shop-product-detail-page .shop-shell {
    width: 1120px;
    max-width: 100%;
    margin-inline: auto;
    padding-top: 18px;
}

.shop-store-page .shop-shell {
    width: min(1180px, 100%);
    height: auto;
    min-height: calc(100vh - 48px);
    margin-inline: auto;
    overflow: visible;
    padding-top: 18px;
}

.shop-pickup-page {
    min-height: 100vh;
}

.shop-pickup-shell {
    min-height: 100vh;
    height: auto;
    justify-content: center;
    margin: 0 auto;
    max-width: 760px;
}

.shop-orders-page .shop-shell {
    width: min(1080px, 100%);
    height: auto;
    min-height: calc(100vh - 48px);
    overflow: visible;
    padding-top: 18px;
}

.shop-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 14px;
}

.shop-head h1 {
    margin: 0 0 6px;
    font-size: 28px;
}

.shop-head p {
    margin: 0;
    color: #64748b;
}

.shop-seller-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    border-bottom: 1px solid #edf0f5;
    min-height: 34px;
}

.shop-seller-nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
    overflow-x: auto;
}

.shop-seller-nav-links a {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border-bottom: 2px solid transparent;
    color: #64748b;
    padding: 0 1px;
    font-size: 13px;
    text-decoration: none;
    white-space: nowrap;
}

.shop-seller-nav-links a:hover {
    color: #111827;
}

.shop-seller-nav-links a.is-active {
    color: #111827;
    border-bottom-color: #111827;
    font-weight: 600;
}

.shop-entry-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.shop-condition-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #fde68a;
    border-radius: 8px;
    background: #fffbeb;
    color: #92400e;
    padding: 10px 12px;
    font-size: 13px;
}

.shop-condition-strip a {
    color: #78350f;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}

.shop-entry-card {
    display: grid;
    gap: 5px;
    min-height: 86px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    color: inherit;
    padding: 11px 12px;
    text-decoration: none;
}

.shop-entry-card:hover {
    border-color: #cbd5e1;
}

.shop-entry-card span,
.shop-entry-card small {
    color: #64748b;
    font-size: 12px;
}

.shop-entry-card strong {
    align-self: end;
    font-size: 18px;
    line-height: 1.1;
}

.shop-filter,
.shop-form-inline {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.shop-filter button,
.shop-form-inline button,
.shop-product-form button,
.shop-buy button,
.shop-primary,
.shop-panel form > button {
    min-height: 30px;
    border: 1px solid #d8dee8;
    border-radius: 7px;
    background: #ffffff;
    color: #1f2937;
    padding: 0 10px;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.shop-buy button,
.shop-primary {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
}

.shop-filter button:hover,
.shop-form-inline button:hover,
.shop-product-form button:hover,
.shop-panel form > button:hover {
    border-color: #9ca3af;
}

.shop-notice,
.shop-error {
    padding: 8px 10px;
    border-radius: 7px;
    background: #ecfdf5;
    color: #047857;
}

.shop-error {
    background: #fef2f2;
    color: #b91c1c;
}

.shop-filter input,
.shop-filter select,
.shop-form-inline input,
.shop-product-form input,
.shop-product-form select,
.shop-product-form textarea,
.shop-buy input,
.shop-buy select {
    min-height: 32px;
    border: 1px solid #d8dee8;
    border-radius: 7px;
    background: #ffffff;
    padding: 0 10px;
    font: inherit;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
    gap: 12px;
}

.store-front-toolbar {
    border-bottom: 1px solid #eef2f7;
    padding-bottom: 8px;
}

.store-filter {
    display: grid;
    grid-template-columns: minmax(120px, 160px) minmax(110px, 140px) minmax(220px, 1fr) auto;
    align-items: center;
    gap: 8px;
}

.store-filter label {
    display: grid;
    min-width: 0;
}

.store-filter select,
.store-filter input {
    min-height: 28px;
    border-radius: 5px;
    padding-inline: 8px;
    font-size: 13px;
}

.store-filter button {
    min-height: 28px;
    border-radius: 5px;
    padding-inline: 12px;
    font-size: 13px;
}

.store-filter-search {
    min-width: 0;
}

.store-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr));
    gap: 14px;
}

.store-product-card {
    min-width: 0;
    border: 1px solid #e5eaf2;
    background: #ffffff;
}

.store-product-card a {
    display: grid;
    color: inherit;
    min-height: 100%;
    text-decoration: none;
}

.store-product-card a:hover .store-product-foot span {
    color: #047857;
}

.store-product-media {
    display: grid;
    place-items: center;
    height: 118px;
    border-bottom: 1px solid #edf1f6;
    background: linear-gradient(135deg, #f8fafc, #eef8f4);
}

.store-product-media span {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border: 1px solid #d8e7df;
    background: #ffffff;
    color: #0f766e;
    font-size: 24px;
    font-weight: 700;
}

.store-product-body {
    display: grid;
    gap: 10px;
    padding: 13px 14px 14px;
}

.store-product-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    min-height: 22px;
}

.store-product-tags span {
    border: 1px solid #e5eaf2;
    color: #64748b;
    padding: 2px 6px;
    font-size: 12px;
    line-height: 1.4;
}

.store-product-body h2 {
    margin: 0;
    color: #111827;
    font-size: 16px;
    line-height: 1.35;
}

.store-product-body p {
    margin: 0;
    min-height: 42px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.6;
}

.store-product-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-top: 1px solid #f1f4f8;
    padding-top: 10px;
}

.store-product-foot strong {
    color: #b42318;
    font-size: 20px;
    line-height: 1;
}

.store-product-foot span {
    color: #64748b;
    font-size: 13px;
}

.store-empty {
    grid-column: 1 / -1;
}

.shop-card,
.shop-panel,
.shop-detail {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
}

.shop-list {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.shop-products-list {
    background: #ffffff;
}

.shop-card a {
    display: grid;
    gap: 8px;
    padding: 14px;
    color: inherit;
    text-decoration: none;
}

.shop-card strong {
    font-size: 16px;
}

.shop-card span,
.shop-card p,
.shop-meta,
.shop-empty {
    color: #64748b;
}

.shop-card p {
    margin: 0;
    min-height: 42px;
}

.shop-card em {
    color: #111827;
    font-style: normal;
    font-weight: 700;
}

.shop-detail {
    display: block;
    padding: 18px;
}

.shop-detail-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 24px;
    align-items: start;
}

.shop-detail-main h2,
.shop-detail-main p {
    margin: 0;
}

.shop-detail-main h2 {
    color: #111827;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
}

.shop-detail-main > p:not(.shop-meta) {
    color: #475569;
    font-size: 13px;
    line-height: 1.7;
}

.shop-detail-main .shop-meta {
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.shop-detail-main h2,
.shop-detail-main > p:not(.shop-meta),
.shop-detail-main .shop-meta {
    grid-column: 1;
}

.shop-detail-action {
    grid-column: 2;
    grid-row: 1 / span 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-width: 150px;
}

.shop-detail-action strong {
    color: #111827;
    font-size: 22px;
    font-weight: 600;
    line-height: 1.2;
}

.shop-detail-content {
    border-top: 1px solid #eef2f7;
    margin-top: 18px;
    padding-top: 18px;
}

.shop-buy,
.shop-product-form {
    display: grid;
    gap: 12px;
}

.shop-product-form {
    max-width: none;
}

.shop-publish-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 16px;
    align-items: start;
    min-height: 520px;
}

.shop-publish-main {
    display: grid;
    align-content: start;
    gap: 12px;
    min-width: 0;
}

.shop-publish-sidebar {
    position: sticky;
    top: 0;
    display: grid;
    align-content: start;
    gap: 10px;
    min-width: 0;
    max-height: 100vh;
    overflow-y: auto;
    background: #f8fafc;
    padding: 12px;
}

.shop-publish-sidebar > button[type="submit"] {
    width: 100%;
    margin-top: 6px;
}

.shop-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.shop-form-grid-compact {
    grid-template-columns: minmax(260px, 1fr) 120px 180px minmax(180px, 0.7fr);
}

.shop-field-wide {
    grid-column: 1 / -1;
}

.shop-product-form label {
    display: grid;
    gap: 3px;
    color: #475569;
    font-size: 13px;
}

.shop-publish-sidebar label > span,
.shop-publish-sidebar .shop-product-choice > span {
    color: #64748b;
    font-size: 12px;
    line-height: 1.2;
}

.shop-publish-sidebar input,
.shop-publish-sidebar select {
    min-height: 32px;
    font-size: 13px;
}

.shop-publish-sidebar textarea {
    font-size: 13px;
}

.shop-product-choice {
    display: grid;
    gap: 5px;
    color: #475569;
}

.shop-product-choice-primary {
    gap: 6px;
    border-bottom: 1px solid #edf0f5;
    padding-bottom: 10px;
}

.shop-product-choice > span {
    font-size: 12px;
}

.shop-product-choice-primary > span {
    color: #64748b;
    font-size: 12px;
    font-weight: 400;
}

.shop-product-choice-options {
    display: flex;
    align-items: center;
    gap: 12px;
}

.shop-product-choice-options label {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    color: #475569;
    font-size: 13px;
    cursor: pointer;
}

.shop-product-form textarea {
    min-height: 78px;
    resize: vertical;
}

.shop-product-form .shop-textarea-compact {
    min-height: 64px;
}

.shop-product-form .shop-textarea-tall {
    min-height: 118px;
}

.shop-rich-content hr {
    height: 1px;
    border: 0;
    background: #dbe3ef;
    margin: 16px 0;
}

.shop-rich-content h3,
.shop-rich-content h4 {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.5;
}

.shop-rich-content p {
    margin: 0 0 10px;
}

.shop-rich-content ul,
.shop-rich-content ol {
    margin: 0 0 10px 20px;
    padding: 0;
}

.shop-rich-content blockquote {
    margin: 0 0 10px;
    border-left: 3px solid #cbd5e1;
    padding-left: 10px;
    color: #475569;
}

.shop-rich-content code {
    background: #eef2f7;
    padding: 1px 4px;
    font-family: "Cascadia Mono", "Consolas", monospace;
    font-size: 12px;
}

.shop-rich-content span[style*="background-color"] {
    padding: 1px 2px;
}

.shop-paid-content-marker {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 18px 0 56px;
    color: #64748b;
    font-size: 12px;
    line-height: 1.4;
}

.shop-paid-content-marker::before,
.shop-paid-content-marker::after {
    content: "";
    height: 1px;
    flex: 1 1 0;
    max-width: 240px;
    border-top: 1px dashed #cbd5e1;
}

.shop-rich-input {
    display: none;
}

.shop-field-note {
    color: #64748b;
    font-size: 12px;
    line-height: 1.6;
}

.shop-card-inventory-editor {
    display: grid;
    gap: 8px;
}

.shop-card-inventory-tools {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.shop-card-inventory-import-open {
    justify-self: start;
}

.shop-card-inventory-dialog {
    width: min(560px, calc(100vw - 32px));
    border: 1px solid #e5e7eb;
    padding: 0;
    background: #fff;
    color: #111827;
}

.shop-card-inventory-dialog::backdrop {
    background: rgb(15 23 42 / 0.28);
}

.shop-card-inventory-dialog-body {
    display: grid;
    gap: 12px;
    padding: 14px;
}

.shop-card-inventory-dialog-head,
.shop-card-inventory-dialog-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.shop-card-inventory-dialog-head strong {
    color: #334155;
    font-size: 13px;
    font-weight: 500;
}

.shop-card-inventory-dialog-head button {
    min-height: 0;
    border: 0;
    background: transparent;
    padding: 0;
    color: #64748b;
    font-size: 20px;
    line-height: 1;
}

.shop-card-inventory-dialog-actions {
    justify-content: flex-end;
}

.shop-product-form .shop-card-inventory-dialog textarea.shop-card-inventory-import {
    min-height: 180px;
    font-family: "Cascadia Mono", "Consolas", monospace;
    line-height: 1.55;
}

.shop-card-inventory-table-wrap {
    overflow-x: auto;
    max-height: 440px;
    min-width: 0;
}

.shop-card-inventory-table {
    width: max(100%, 560px);
    border-collapse: collapse;
    color: #475569;
    font-size: 13px;
}

.shop-card-inventory-table th,
.shop-card-inventory-table td {
    border-top: 1px solid #edf0f5;
    padding: 6px 8px;
    text-align: left;
    vertical-align: middle;
}

.shop-card-inventory-table th {
    color: #64748b;
    font-weight: 500;
    font-size: 12px;
}

.shop-card-inventory-table th:first-child,
.shop-card-inventory-table td:first-child {
    width: 52px;
    color: #94a3b8;
}

.shop-card-inventory-table th:nth-child(3),
.shop-card-inventory-table td:nth-child(3) {
    width: 72px;
}

.shop-card-inventory-table th:last-child,
.shop-card-inventory-table td:last-child {
    width: 64px;
}

.shop-product-form .shop-card-inventory-table input {
    width: 100%;
    min-height: 28px;
    padding: 0 8px;
    font-size: 12px;
}

.shop-card-inventory-status {
    color: #64748b;
    font-size: 12px;
}

.shop-product-form .shop-card-inventory-remove {
    min-height: 0;
    border: 0;
    background: transparent;
    color: #64748b;
    padding: 0;
    font-size: 12px;
}

.shop-product-form .shop-card-inventory-remove:hover {
    color: #dc2626;
}

.shop-product-section {
    display: grid;
    gap: 10px;
    min-width: 0;
}

.shop-product-section[hidden] {
    display: none;
}

.shop-product-section:not(.shop-product-detail-editor-section) {
    border: 1px solid #e1e7f0;
    background: #ffffff;
    padding: 12px;
}

.shop-product-section-head {
    display: grid;
    gap: 2px;
}

.shop-product-section-head-actions {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
}

.shop-product-section-head-actions > div:first-child {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.shop-product-section-head strong {
    color: #334155;
    font-size: 13px;
    font-weight: 500;
}

.shop-product-section-head span {
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.shop-buy strong {
    font-size: 24px;
}

.shop-product-layout {
    display: grid;
    grid-template-columns: minmax(0, 860px);
    justify-content: center;
    gap: 14px;
    align-items: start;
}

.shop-product-layout.is-buy-ready {
    transition: grid-template-columns 0.18s ease;
}

.shop-product-layout.is-buy-open {
    grid-template-columns: minmax(0, 1fr) 320px;
}

.shop-buy-panel[hidden] {
    display: none;
}

.shop-buy-panel {
    display: grid;
    align-content: start;
    gap: 14px;
    min-width: 0;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 18px;
}

.shop-buy-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #eef2f7;
    padding-bottom: 10px;
}

.shop-buy-head div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.shop-buy-head span {
    color: #94a3b8;
    font-size: 11px;
}

.shop-buy-head strong {
    color: #475569;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
}

.shop-buy-head button {
    border: 0;
    background: transparent;
    color: #94a3b8;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.shop-buy label {
    display: grid;
    gap: 5px;
    color: #475569;
}

.shop-contact-choice {
    display: grid;
    gap: 8px;
}

.shop-contact-tabs {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
}

.shop-contact-tabs label {
    display: inline-flex;
    align-items: center;
    color: #475569;
    font-size: 12px;
    cursor: pointer;
}

.shop-contact-tabs input {
    margin: 0 1px 0 0;
}

.shop-contact-choice [data-shop-contact-field] input {
    min-height: 28px;
    padding: 0 8px;
    font-size: 12px;
    line-height: 28px;
}

.shop-contact-hint {
    margin: -2px 0 0;
    color: #94a3b8;
    font-size: 11px;
    line-height: 1.4;
}

.shop-contact-hint.is-error {
    color: #b91c1c;
}

.shop-order-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.shop-order-tab {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    color: #475569;
    font-size: 13px;
    line-height: 1;
    text-decoration: none;
    background: #ffffff;
}

.shop-order-tab:hover,
.shop-order-tab:focus-visible {
    color: #111827;
    border-color: #cbd5e1;
}

.shop-order-tab.is-active {
    color: #0f172a;
    border-color: #94a3b8;
    background: #f8fafc;
}

.shop-contact-choice [hidden] {
    display: none;
}

.shop-buy button[type="submit"] {
    min-height: 38px;
    margin-top: 4px;
    font-size: 14px;
}

.shop-buy-payment .shop-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    margin-top: 4px;
    font-size: 14px;
    line-height: 1;
    text-align: center;
}

.shop-buy-payment {
    display: grid;
    gap: 18px;
}

.shop-buy-payment-head {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.shop-buy-payment-head span {
    color: #64748b;
    font-size: 12px;
}

.shop-payment-field {
    display: grid;
    gap: 6px;
}

.shop-payment-field span {
    color: #94a3b8;
    font-size: 11px;
}

.shop-payment-field strong {
    color: #111827;
    font-size: 15px;
    line-height: 1.35;
}

.shop-payment-amount strong {
    font-size: 28px;
    line-height: 1.2;
}

.shop-payment-options {
    display: grid;
    gap: 8px;
}

.shop-payment-balance-row,
.shop-payment-gateway-row {
    display: grid;
    gap: 8px;
}

.shop-payment-gateway-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.shop-payment-options label {
    min-width: 0;
}

.shop-payment-options input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.shop-payment-options label > span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 34px;
    border: 1px solid #e2e8f0;
    border-radius: 7px;
    padding: 0 9px;
    background: #fff;
    color: #475569;
    font-size: 12px;
    cursor: pointer;
}

.shop-payment-options svg {
    flex: 0 0 auto;
    color: #64748b;
    filter: grayscale(1);
}

.shop-payment-options input:checked + span {
    border-color: #e2e8f0;
    background: #fff;
    box-shadow: inset 0 0 0 1px #111827;
    color: #111827;
}

.shop-payment-options input:checked + span svg {
    color: inherit;
    filter: none;
}

.shop-payment-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 24px;
}

.shop-payment-countdown {
    margin: 0;
    color: #64748b;
    font-size: 12px;
}

.shop-payment-countdown span {
    color: #111827;
}

.shop-cancel-form button {
    min-height: 0;
    border: 0;
    background: transparent;
    color: #64748b;
    padding: 0;
    font-size: 12px;
    cursor: pointer;
}

.shop-cancel-form button:hover {
    color: #dc2626;
}

.shop-panel {
    padding: 12px;
}

.shop-publish-panel {
    border: 0;
    border-radius: 0;
    padding: 0;
}

.shop-orders-panel {
    border: 0;
    border-radius: 0;
    padding: 0;
}

.shop-orders-home,
.shop-order-detail-page,
.shop-order-detail-main,
.shop-order-summary {
    min-width: 0;
}

.shop-orders-titlebar {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid #eef2f7;
    padding-bottom: 12px;
}

.shop-orders-titlebar h2,
.shop-order-detail-head h2 {
    margin: 0;
    color: #111827;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.35;
}

.shop-orders-titlebar p,
.shop-order-detail-head p {
    margin: 5px 0 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.5;
}

.shop-order-list-buyer {
    display: grid;
    gap: 8px;
    border: 0;
    border-radius: 0;
    margin-top: 10px;
    overflow: visible;
}

.shop-order-list-buyer .shop-order-item {
    border: 1px solid #edf0f5;
    background: #ffffff;
    padding: 10px 12px;
}

.shop-order-list-buyer .shop-order-item:first-child {
    border-top: 1px solid #edf0f5;
}

.shop-order-list-buyer .shop-order-main {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.shop-order-list-title,
.shop-order-list-time,
.shop-order-list-status,
.shop-order-list-amount {
    min-width: 0;
}

.shop-order-list-title a {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #111827;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    text-decoration: none;
}

.shop-order-list-title a:hover {
    color: #047857;
}

.shop-order-list-order-no {
    display: block;
    margin-top: 4px;
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.shop-order-list-time,
.shop-order-list-status {
    color: #64748b;
    font-size: 12px;
    line-height: 1.35;
    white-space: nowrap;
}

.shop-order-list-time {
    color: #475569;
}

.shop-order-list-compact {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    min-width: 0;
    white-space: nowrap;
}

.shop-order-list-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
}

.shop-order-list-amount {
    color: #111827;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    text-align: right;
    white-space: nowrap;
}

.shop-order-list-subscriptions .shop-order-item {
    border: 1px solid #edf0f5;
    background: #ffffff;
    padding: 10px 12px;
}

.shop-order-list-subscriptions {
    display: grid;
    gap: 8px;
    border: 0;
    border-radius: 0;
    margin-top: 10px;
    overflow: visible;
}

.shop-order-pagination {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    color: #64748b;
    font-size: 12px;
}

.shop-pagination-links {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.shop-pagination-link {
    color: #0f172a;
    text-decoration: none;
}

.shop-pagination-current {
    color: #64748b;
}

.shop-order-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 18px;
    align-items: start;
    margin-top: 18px;
}

.shop-order-detail-main {
    display: grid;
    gap: 14px;
}

.shop-order-back {
    display: inline-flex;
    width: max-content;
    margin-bottom: 8px;
    color: #64748b;
    font-size: 12px;
    text-decoration: none;
}

.shop-order-back:hover {
    color: #111827;
}

.shop-orders-page .shop-order-detail-page .shop-order-detail-head h2,
.shop-orders-page .shop-order-detail-page .shop-order-detail-layout h4,
.shop-orders-page .shop-order-detail-page .shop-order-summary strong,
.shop-orders-page .shop-order-detail-page .shop-order-summary dt,
.shop-orders-page .shop-order-detail-page .shop-order-summary dd,
.shop-orders-page .shop-order-detail-page .shop-order-state-note strong {
    font-weight: 400;
}

.shop-order-delivery-card {
    display: grid;
    gap: 12px;
}

.shop-order-section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.shop-order-section-head h3,
.shop-delivery-block-head h4 {
    margin: 0;
    color: #111827;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.shop-order-section-head span,
.shop-order-state-note span {
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.shop-order-delivery-list {
    display: grid;
    gap: 12px;
}

.shop-delivery-block {
    display: grid;
    gap: 8px;
    border: 1px solid #e5eaf2;
    background: #ffffff;
    padding: 12px;
}

.shop-delivery-block-head {
    display: grid;
    gap: 3px;
}

.shop-delivery-download {
    justify-self: start;
}

.shop-card-secret {
    font-family: "Cascadia Mono", "Consolas", monospace;
    cursor: pointer;
}

.shop-card-secret-wrap {
    position: relative;
    display: grid;
}

.shop-card-secret:hover,
.shop-card-secret.is-copied {
    border-color: #a7f3d0;
    background: #f0fdf4;
}

.shop-card-secret-toast {
    position: absolute;
    top: 8px;
    right: 8px;
    opacity: 0;
    pointer-events: none;
    background: #047857;
    color: #ffffff;
    padding: 3px 7px;
    font-size: 12px;
    line-height: 1.4;
    transform: translateY(-2px);
    transition: opacity 0.15s ease, transform 0.15s ease;
}

.shop-card-secret-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.shop-order-state-note {
    display: grid;
    gap: 4px;
    border: 1px solid #f1f5f9;
    background: #f8fafc;
    padding: 12px;
}

.shop-order-state-note strong {
    color: #111827;
    font-size: 14px;
}

.shop-order-summary {
    position: sticky;
    top: 18px;
    display: grid;
    gap: 14px;
    background: #f8fafc;
    padding: 14px;
}

.shop-order-summary-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid #e5eaf2;
    padding-bottom: 12px;
}

.shop-order-summary-head span {
    color: #64748b;
    font-size: 12px;
}

.shop-order-summary-head strong {
    color: #111827;
    font-size: 22px;
    font-weight: 600;
}

.shop-order-summary dl {
    display: grid;
    gap: 9px;
    margin: 0;
}

.shop-order-summary dl div {
    display: grid;
    gap: 3px;
}

.shop-order-summary dt,
.shop-order-summary dd {
    margin: 0;
    min-width: 0;
}

.shop-order-summary dt {
    color: #64748b;
    font-size: 12px;
}

.shop-order-summary dd {
    color: #111827;
    font-size: 13px;
    word-break: break-all;
}

.shop-order-summary-action {
    justify-content: center;
}

.shop-complaint-link {
    justify-self: start;
    border: 0;
    background: transparent;
    color: #64748b;
    padding: 0;
    font: inherit;
    font-size: 13px;
    cursor: pointer;
}

.shop-complaint-link:hover {
    color: #b91c1c;
}

.shop-complaint-dialog {
    width: min(480px, calc(100vw - 32px));
    border: 0;
    background: #ffffff;
    color: #111827;
    padding: 0;
    box-shadow: 0 18px 50px rgb(15 23 42 / 0.18);
}

.shop-complaint-dialog::backdrop {
    background: rgb(15 23 42 / 0.28);
}

.shop-complaint-form {
    display: grid;
    gap: 12px;
    padding: 16px;
}

.shop-complaint-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.shop-complaint-head div {
    display: grid;
    gap: 4px;
}

.shop-complaint-head span,
.shop-complaint-form label span {
    color: #64748b;
    font-size: 12px;
}

.shop-complaint-head strong {
    font-size: 17px;
    font-weight: 600;
}

.shop-complaint-head button {
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}

.shop-complaint-form label {
    display: grid;
    gap: 5px;
}

.shop-complaint-form select,
.shop-complaint-form textarea {
    width: 100%;
    border: 1px solid #d8dee8;
    border-radius: 7px;
    background: #ffffff;
    padding: 8px 10px;
    font: inherit;
    font-size: 13px;
}

.shop-complaint-form textarea {
    min-height: 110px;
    resize: vertical;
}

.shop-complaint-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.shop-complaint-actions button {
    min-height: 30px;
    border: 1px solid #d8dee8;
    border-radius: 7px;
    background: #ffffff;
    color: #1f2937;
    padding: 0 12px;
    font-size: 13px;
    cursor: pointer;
}

.shop-complaint-actions button[type="submit"] {
    border-color: #111827;
    background: #111827;
    color: #ffffff;
}

.shop-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 88px 96px;
    gap: 12px;
    align-items: center;
    padding: 9px 10px;
    border-top: 1px solid #edf0f5;
    color: inherit;
    text-decoration: none;
}

.shop-row:hover {
    background: #f8fafc;
}

.shop-row-wide {
    grid-template-columns: minmax(0, 1fr) 96px 96px 96px;
}

.shop-product-row {
    grid-template-columns: minmax(0, 1fr) auto;
}

.shop-product-lock-note {
    grid-column: 1 / -1;
    min-width: 0;
    color: #64748b;
    font-size: 12px;
    line-height: 1.45;
    word-break: break-word;
}

.shop-product-row-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 96px 96px 96px;
    gap: 12px;
    align-items: center;
    min-width: 0;
    color: inherit;
    text-decoration: none;
}

.shop-row-action {
    display: inline-flex;
    align-items: center;
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    color: #475569;
    font-size: 12px;
    font-family: inherit;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    line-height: 1;
}

.shop-row-action:hover {
    color: #111827;
}

.shop-row-action-danger {
    color: #b91c1c;
}

.shop-row-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.12s ease;
}

.shop-row:hover .shop-row-actions,
.shop-row:focus-within .shop-row-actions {
    opacity: 1;
    pointer-events: auto;
}

.shop-inline-form {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.shop-panel .shop-inline-form > .shop-row-action {
    min-height: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    padding: 0;
    color: #475569;
    font-size: 12px;
    transition: color 0.15s ease;
}

.shop-panel .shop-inline-form > .shop-row-action-danger {
    color: #b91c1c;
}

.shop-panel .shop-inline-form > .shop-row-action:hover {
    border-color: transparent;
    background: transparent;
    color: #111827;
}

.shop-row:first-child {
    border-top: 0;
}

.shop-row strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 600;
}

.shop-row span {
    color: #64748b;
    font-size: 13px;
    text-align: right;
}

.shop-order-list {
    display: grid;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.shop-orders-panel .shop-order-list {
    border: 0;
    border-radius: 0;
    overflow: visible;
}

.shop-order-item {
    display: grid;
    gap: 8px;
    padding: 10px 12px;
    border-top: 1px solid #edf0f5;
}

.shop-order-item:first-child {
    border-top: 0;
}

.shop-order-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: baseline;
}

.shop-order-main strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 14px;
}

.shop-order-title-line,
.shop-order-price-line {
    display: flex;
    align-items: baseline;
    gap: 8px 14px;
    min-width: 0;
}

.shop-order-title-line span {
    color: #64748b;
    font-size: 12px;
    white-space: nowrap;
}

.shop-order-price-line {
    justify-content: flex-end;
    white-space: nowrap;
}

.shop-order-price-line span,
.shop-order-details,
.shop-order-note {
    color: #64748b;
    font-size: 12px;
    line-height: 1.5;
}

.shop-order-price-line .shop-order-status {
    color: #111827;
    font-weight: 500;
}

.shop-order-details {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 14px;
}

.shop-order-note {
    color: #475569;
}

.shop-empty {
    margin: 0;
    padding: 14px 10px;
}

.shop-setting-list {
    display: grid;
}

.shop-setting-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 12px;
    align-items: center;
    border-top: 1px solid #edf0f5;
    padding: 12px 10px;
}

.shop-setting-row:first-child {
    border-top: 0;
}

.shop-setting-row strong {
    font-size: 14px;
}

.shop-setting-row p {
    margin: 4px 0 0;
    color: #64748b;
    font-size: 13px;
}

.shop-setting-status {
    display: grid;
    justify-items: end;
    gap: 5px;
}

.shop-setting-status em {
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-style: normal;
}

.shop-setting-status em.is-ok {
    background: #ecfdf5;
    color: #047857;
}

.shop-setting-status em.is-warn {
    background: #fffbeb;
    color: #b45309;
}

.shop-setting-status small {
    color: #64748b;
    font-size: 12px;
}

.shop-setting-action {
    display: flex;
    justify-content: flex-end;
}

.shop-setting-action:empty {
    display: none;
}

.shop-delivery,
.shop-preview {
    white-space: pre-wrap;
    border: 1px solid #e5e7eb;
    padding: 12px;
    background: #f8fafc;
    user-select: text;
    -webkit-user-select: text;
}

@media (max-width: 900px) {
    .shop-shell {
        width: 100%;
        height: auto;
        min-height: calc(100vh - 48px);
        overflow: visible;
        padding: 0 var(--shop-page-padding) 80px;
    }
}

@media (max-width: 760px) {
    .shop-shell {
        gap: 12px;
    }

    .shop-store-page .shop-shell {
        padding-top: 14px;
    }

    .store-filter {
        grid-template-columns: 1fr;
    }

    .shop-publish-layout {
        grid-template-columns: 1fr;
        gap: 14px;
        min-height: 0;
    }

    .shop-publish-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
        padding: 12px;
    }

    .shop-order-detail-layout {
        grid-template-columns: 1fr;
    }

    .shop-order-summary {
        position: static;
        order: -1;
    }

    .shop-order-list-buyer .shop-order-main {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 6px 10px;
    }

    .shop-order-list-title {
        grid-column: 1 / -1;
    }

    .shop-order-list-compact {
        flex-wrap: wrap;
        justify-content: flex-start;
        white-space: normal;
    }

    .shop-head {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: stretch;
    }

    .shop-product-layout,
    .shop-product-layout.is-buy-open {
        grid-template-columns: 1fr;
    }

    .shop-detail-main {
        grid-template-columns: 1fr;
    }

    .shop-detail-main h2,
    .shop-detail-main > p:not(.shop-meta),
    .shop-detail-main .shop-meta,
    .shop-detail-action {
        grid-column: 1;
        grid-row: auto;
    }

    .shop-detail-action {
        align-items: flex-start;
        min-width: 0;
    }

    .shop-seller-nav {
        align-items: stretch;
        flex-direction: column;
    }

    .shop-entry-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shop-condition-strip,
    .shop-setting-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .shop-condition-strip {
        flex-direction: column;
        align-items: flex-start;
    }

    .shop-setting-status {
        justify-items: start;
    }

    .shop-setting-action {
        justify-content: flex-start;
    }

    .shop-form-grid {
        grid-template-columns: 1fr;
    }

    .shop-form-grid-compact {
        grid-template-columns: 1fr;
    }

    .shop-row {
        grid-template-columns: 1fr;
    }

    .shop-row-wide {
        grid-template-columns: 1fr;
    }

    .shop-row span {
        text-align: left;
    }

    .shop-order-title-line {
        flex-wrap: wrap;
    }

    .shop-order-main {
        grid-template-columns: 1fr;
    }

    .shop-order-price-line {
        justify-content: flex-start;
        white-space: normal;
    }

}

@media (max-width: 520px) {
    .shop-entry-grid {
        grid-template-columns: 1fr;
    }
}
