:root {
    --color-primary: #1672c9;
    --color-primary-dark: #0d4f87;
    --color-accent: #eef8ff;
    --color-text: #12324d;
    --color-muted: #60758b;
    --color-surface: #ffffff;
    --color-background: #eef6fb;
    --color-border: #d5e3ef;
    --color-success: #1a8a52;
    --color-warning: #9a6a06;
    --shadow-soft: 0 22px 50px rgba(19, 83, 136, 0.12);
    --shadow-card: 0 14px 28px rgba(17, 73, 118, 0.1);
    --radius-xl: 30px;
    --radius-lg: 24px;
    --radius-md: 16px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: var(--color-text);
    background:
        radial-gradient(circle at top left, rgba(112, 197, 255, 0.28), transparent 28%),
        radial-gradient(circle at top right, rgba(215, 244, 255, 0.85), transparent 22%),
        linear-gradient(180deg, #f8fcff 0%, var(--color-background) 100%);
    min-height: 100vh;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.site-header,
.site-footer {
    padding: 16px 20px;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 20;
    background: #e60012;
    border-bottom: 1px solid rgba(156, 0, 13, 0.38);
    box-shadow: 0 10px 26px rgba(156, 0, 13, 0.18);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.brand-logo {
    width: 160px;
    max-width: 42vw;
    height: auto;
    display: block;
}

.header-tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex: 1;
}

.header-cart-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 10px 20px rgba(156, 0, 13, 0.16);
    text-decoration: none;
    flex: 0 0 auto;
}

.header-cart-icon {
    width: 22px;
    height: 22px;
    color: var(--color-primary-dark);
}

.header-cart-icon svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.header-cart-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: #ff5a5a;
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 22px;
    text-align: center;
    box-shadow: 0 8px 16px rgba(255, 90, 90, 0.26);
}

.line-connection-indicator {
    display: flex;
    justify-content: flex-end;
}

.line-connection-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(22, 114, 201, 0.15);
    background: rgba(255, 255, 255, 0.84);
    color: var(--color-muted);
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
}

.line-connection-pill.is-connected {
    border-color: rgba(26, 138, 82, 0.24);
    background: rgba(26, 138, 82, 0.1);
    color: var(--color-success);
}

.brand-copy strong,
.brand-copy span {
    display: block;
}

.brand-copy strong {
    display: none;
}

.brand-copy span {
    color: var(--color-muted);
    font-size: 0.9rem;
}

.catalog-home {
    padding: 12px 20px 48px;
}

.liff-entry-shell {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.liff-entry-card {
    width: 100%;
    max-width: 640px;
    padding: 28px 24px;
    text-align: center;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 251, 255, 0.94) 100%);
    border: 1px solid rgba(215, 229, 242, 0.95);
    border-radius: 30px;
    box-shadow: 0 26px 60px rgba(17, 73, 118, 0.14);
    overflow: hidden;
    position: relative;
}

.liff-entry-card::before {
    content: "";
    position: absolute;
    inset: -80px auto auto -60px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(103, 194, 255, 0.28) 0%, rgba(103, 194, 255, 0) 72%);
    pointer-events: none;
}

.liff-entry-logo-wrap {
    margin-bottom: 18px;
    display: flex;
    justify-content: center;
}

.liff-entry-logo {
    width: min(300px, 72vw);
    height: auto;
}

.liff-entry-loader {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 18px;
}

.liff-entry-loader span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--color-primary) 0%, #42b9ff 100%);
    animation: liff-entry-bounce 1.1s infinite ease-in-out;
}

.liff-entry-loader span:nth-child(2) {
    animation-delay: 0.16s;
}

.liff-entry-loader span:nth-child(3) {
    animation-delay: 0.32s;
}

.liff-entry-title {
    margin: 0;
    font-size: clamp(2rem, 4.6vw, 3rem);
    line-height: 1.08;
}

.liff-entry-text {
    max-width: 520px;
    margin: 14px auto 0;
    color: var(--color-muted);
    line-height: 1.75;
    font-size: 1.02rem;
}

.liff-entry-status-row {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.liff-entry-indicator-wrap {
    display: flex;
    justify-content: center;
    margin-top: 14px;
}

.liff-entry-indicator-wrap .line-connection-pill {
    min-height: 40px;
    padding: 0 16px;
    font-size: 0.92rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.liff-entry-actions {
    margin-top: 22px;
    display: flex;
    justify-content: center;
}

.liff-entry-help {
    margin: 16px auto 0;
    max-width: 460px;
    color: var(--color-muted);
    font-size: 0.95rem;
    line-height: 1.7;
}

@keyframes liff-entry-bounce {
    0%,
    80%,
    100% {
        transform: scale(0.72);
        opacity: 0.45;
    }

    40% {
        transform: scale(1);
        opacity: 1;
    }
}

.hero-card {
    max-width: 980px;
    margin: 0 auto;
    padding: 28px 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(248, 252, 255, 0.9) 100%);
    border: 1px solid rgba(215, 229, 242, 0.9);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(10px);
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--color-primary);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
}

h1 {
    margin: 0;
    font-size: 2rem;
    line-height: 1.1;
}

.hero-text {
    margin: 14px 0 0;
    color: var(--color-muted);
    line-height: 1.7;
}

.catalog-hero {
    position: relative;
    overflow: hidden;
}

.catalog-hero::after {
    content: "";
    position: absolute;
    inset: auto -60px -70px auto;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(89, 183, 255, 0.3) 0%, rgba(89, 183, 255, 0) 70%);
}

.catalog-hero::before {
    content: "";
    position: absolute;
    inset: 18px auto auto 18px;
    width: 84px;
    height: 84px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(223, 243, 255, 0.95) 0%, rgba(255, 255, 255, 0.2) 100%);
    opacity: 0.7;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(144, 203, 241, 0.6);
    color: var(--color-primary-dark);
    font-size: 0.84rem;
    font-weight: 700;
}

.status-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 22px;
}

.status-item {
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.status-label {
    display: block;
    margin-bottom: 6px;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.notice {
    margin-top: 20px;
    padding: 14px 16px;
    border-radius: 14px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.notice-success {
    background: rgba(26, 138, 82, 0.1);
    color: var(--color-success);
}

.notice-warning {
    background: rgba(154, 106, 6, 0.1);
    color: var(--color-warning);
}

.modal-notification[hidden] {
    display: none;
}

.modal-notification {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 24px;
}

body.modal-open {
    overflow: hidden;
}

.modal-notification-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(14, 34, 52, 0.4);
    backdrop-filter: blur(10px);
}

.modal-notification-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 460px);
    padding: 28px 22px 22px;
    border-radius: 28px;
    border: 1px solid rgba(215, 229, 242, 0.95);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 251, 255, 0.97) 100%);
    box-shadow: 0 28px 70px rgba(24, 60, 90, 0.22);
    text-align: center;
}

.modal-notification-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 16px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: rgba(225, 241, 255, 0.95);
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.modal-notification-title {
    margin: 0;
    color: var(--color-text);
    font-size: 1.8rem;
    line-height: 1.2;
}

.modal-notification-message {
    margin: 14px 0 0;
    color: var(--color-muted);
    line-height: 1.75;
    white-space: pre-line;
}

.modal-notification-actions {
    margin-top: 22px;
}

.automatic-quotation-preview-modal-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
}

.automatic-quotation-preview-modal-actions .primary-button,
.automatic-quotation-preview-modal-actions .secondary-button {
    width: 100%;
}

.order-cancellation-modal-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
}

.order-cancellation-card form,
.admin-cancellation-review-card form {
    display: grid;
    gap: 16px;
    margin-top: 18px;
}

.order-cancellation-card > p:not(.section-kicker),
.admin-cancellation-review-card .catalog-order-editor-head p {
    color: var(--color-muted);
    line-height: 1.7;
}

.order-cancellation-card .notice,
.admin-cancellation-review-card .notice {
    margin-top: 16px;
}

.modal-notification-button {
    width: 100%;
}

.modal-notification.is-success .modal-notification-badge {
    background: rgba(225, 245, 234, 0.95);
    color: #1b8e5f;
}

.modal-notification.is-warning .modal-notification-badge {
    background: rgba(255, 244, 224, 0.95);
    color: #9a651f;
}

.modal-notification.is-error .modal-notification-badge {
    background: rgba(255, 232, 232, 0.95);
    color: #b33b3b;
}

.modal-notification.is-info .modal-notification-badge {
    background: rgba(225, 241, 255, 0.95);
    color: var(--color-primary);
}

.spare-cart-quantity-modal[hidden] {
    display: none;
}

.spare-cart-quantity-modal {
    position: fixed;
    inset: 0;
    z-index: 2100;
    display: grid;
    place-items: center;
    padding: 24px;
}

.spare-cart-quantity-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(14, 34, 52, 0.4);
    backdrop-filter: blur(10px);
}

.spare-cart-quantity-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 420px);
    padding: 28px 22px 22px;
    border: 1px solid rgba(215, 229, 242, 0.95);
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(246, 251, 255, 0.97) 100%);
    box-shadow: 0 28px 70px rgba(24, 60, 90, 0.22);
    text-align: center;
}

.spare-cart-quantity-product {
    margin: 12px 0 18px;
    color: var(--color-muted);
    line-height: 1.55;
}

.spare-cart-quantity-field {
    text-align: left;
}

.spare-cart-quantity-field .field-control {
    text-align: center;
    font-size: 1.2rem;
    font-weight: 800;
}

.spare-cart-quantity-actions {
    display: grid;
    grid-template-columns: 1fr 1.35fr;
    gap: 12px;
    margin-top: 20px;
}

.spare-cart-quantity-actions .primary-button,
.spare-cart-quantity-actions .secondary-button,
.spare-cart-add-button {
    width: 100%;
}

.spare-order-history-grid {
    width: min(100%, 980px);
    margin: 18px auto 0;
    display: grid;
    gap: 18px;
}

.spare-history-card {
    display: grid;
    gap: 16px;
}

.spare-history-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.spare-history-card-header h2 {
    margin: 4px 0 0;
    color: var(--color-ink);
    font-size: 1.2rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.spare-history-card-header .status-pill {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    cursor: default;
    white-space: nowrap;
}

.spare-history-label,
.spare-history-date {
    color: var(--color-muted);
    font-size: 0.86rem;
}

.spare-history-items {
    overflow: hidden;
    border: 1px solid rgba(159, 217, 255, 0.58);
    border-radius: 18px;
    background: rgba(247, 252, 255, 0.84);
}

.spare-history-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
}

.spare-history-item + .spare-history-item {
    border-top: 1px solid rgba(159, 217, 255, 0.42);
}

.spare-history-item div {
    min-width: 0;
}

.spare-history-item span,
.spare-history-item strong {
    display: block;
    overflow-wrap: anywhere;
}

.spare-history-item span {
    color: var(--color-muted);
    font-size: 0.82rem;
}

.spare-history-item div strong {
    margin-top: 3px;
    color: var(--color-ink);
    line-height: 1.45;
}

.spare-history-summary {
    margin-top: 0;
}

.spare-history-date {
    margin: 0;
}

@media (min-width: 768px) {
    .spare-order-history-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .order-cancellation-modal-actions {
        grid-template-columns: 1fr;
    }

    .modal-notification {
        padding: 16px;
    }

    .modal-notification-dialog {
        padding: 24px 18px 18px;
        border-radius: 24px;
    }

    .modal-notification-title {
        font-size: 1.5rem;
    }

    .spare-cart-quantity-modal {
        padding: 16px;
    }

    .spare-cart-quantity-dialog {
        padding: 24px 18px 18px;
        border-radius: 24px;
    }
}

.filter-panel,
.catalog-results {
    max-width: 980px;
    margin: 18px auto 0;
}

.catalog-shortcut-card {
    display: grid;
    gap: 16px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(215, 229, 242, 0.9);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.catalog-filter-form {
    display: grid;
    gap: 14px;
    padding: 18px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(215, 229, 242, 0.9);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
}

.field-group {
    display: block;
}

.field-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
    font-size: 0.95rem;
}

.field-control {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
    color: var(--color-text);
    font-size: 1rem;
}

.field-control:focus {
    outline: 2px solid rgba(15, 111, 198, 0.18);
    border-color: var(--color-primary);
}

.filter-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 18px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-button {
    border: 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, #33b0ff 100%);
    color: #fff;
    box-shadow: 0 16px 30px rgba(15, 111, 198, 0.24);
    cursor: pointer;
}

.secondary-button {
    border: 1px solid var(--color-border);
    background: rgba(255, 255, 255, 0.88);
    color: var(--color-text);
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-1px);
}

.primary-button[disabled],
.disabled-button {
    cursor: not-allowed;
    pointer-events: none;
    opacity: 0.7;
    box-shadow: none;
    background: linear-gradient(135deg, #a7b6c5 0%, #c3cdd6 100%);
}

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

.order-list-grid {
    display: grid;
    gap: 16px;
}

.order-list-card {
    height: 100%;
}

.order-list-status-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 14px 0 16px;
}

.product-card {
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 252, 255, 0.94) 100%);
    border: 1px solid rgba(215, 229, 242, 0.95);
    border-radius: 26px;
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 34px rgba(17, 73, 118, 0.14);
}

.product-image-wrap {
    aspect-ratio: 4 / 3;
    background: #ffffff;
    padding: 10px;
}

.product-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

.product-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-muted);
    font-weight: 700;
}

.product-card-body {
    padding: 14px;
}

.product-card-footer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 14px;
}

.product-card-actions {
    display: grid;
    gap: 10px;
}

.product-cta-note {
    color: var(--color-primary-dark);
    font-size: 0.78rem;
    font-weight: 700;
}

.product-availability-note {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.product-delivery-note {
    color: var(--color-muted);
    font-size: 0.76rem;
    font-weight: 700;
}

.product-price {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(15, 111, 198, 0.12);
    color: var(--color-primary-dark);
    font-size: 0.84rem;
    font-weight: 700;
}

.promotion-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    color: #ffffff !important;
    background: #e84c3d;
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.2;
}

.promotion-badge-inline {
    margin: 2px 0 7px;
}

.promotion-price-stack {
    display: grid;
    gap: 2px;
}

.promotion-original-price {
    color: var(--color-muted) !important;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: line-through;
}

.promotion-final-price {
    color: var(--color-primary-dark);
    font-size: 1.1rem;
}

.order-promotion-summary {
    margin-top: 12px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
}

.product-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.product-code,
.product-category {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 0.72rem;
}

.product-code {
    background: rgba(15, 111, 198, 0.1);
    color: var(--color-primary-dark);
}

.product-category {
    background: rgba(21, 49, 75, 0.08);
    color: var(--color-text);
}

.product-title {
    margin: 0;
    font-size: 1rem;
    line-height: 1.4;
}

.product-description {
    margin: 10px 0 16px;
    color: var(--color-muted);
    line-height: 1.55;
    font-size: 0.86rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-link {
    width: 100%;
    min-height: 46px;
    padding: 0 12px;
    font-size: 0.88rem;
}

.detail-shell {
    max-width: 980px;
    margin: 0 auto;
}

.order-shell {
    max-width: 980px;
    margin: 18px auto 0;
    display: grid;
    gap: 18px;
}

.payment-shell {
    max-width: 980px;
    margin: 18px auto 0;
    display: grid;
    gap: 18px;
}

.order-summary-card {
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 252, 255, 0.94) 100%);
    border: 1px solid rgba(215, 229, 242, 0.95);
    border-radius: 26px;
    box-shadow: var(--shadow-card);
}

.order-summary-image {
    background: #ffffff;
    padding: 16px;
}

.order-summary-body {
    padding: 22px 20px;
}

.order-summary-title {
    margin: 0;
    font-size: 1.6rem;
    line-height: 1.25;
}

.order-summary-price {
    margin: 12px 0 0;
    color: var(--color-primary-dark);
    font-size: 1.35rem;
    font-weight: 700;
}

.order-line-summary {
    margin-top: 18px;
    overflow: hidden;
    border: 1px solid rgba(159, 217, 255, 0.7);
    border-radius: 20px;
    background: rgba(235, 248, 255, 0.72);
}

.order-line-summary-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 16px;
}

.order-line-summary-row + .order-line-summary-row {
    border-top: 1px solid rgba(159, 217, 255, 0.46);
}

.order-line-summary-row span {
    color: var(--color-muted);
    font-size: 0.9rem;
}

.order-line-summary-row strong {
    color: var(--color-ink);
    text-align: right;
    overflow-wrap: anywhere;
}

.order-line-summary-row-stacked {
    display: grid;
    justify-content: stretch;
    gap: 5px;
}

.order-line-summary-row-stacked strong {
    text-align: left;
    line-height: 1.55;
}

.order-line-summary-total {
    background: rgba(208, 239, 255, 0.82);
}

.order-line-summary-total strong {
    color: var(--color-primary-dark);
    font-size: 1.08rem;
}

.order-item-stack {
    display: grid;
    gap: 10px;
    margin-top: 16px;
}

.order-line-card {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border: 1px solid rgba(159, 217, 255, 0.62);
    border-radius: 18px;
    background: rgba(235, 248, 255, 0.72);
}

.order-line-card span,
.order-line-card small {
    color: var(--color-muted);
}

.order-line-card strong {
    color: var(--color-ink);
    line-height: 1.45;
}

.order-customer-compact {
    margin-top: 16px;
    display: grid;
    gap: 10px;
}

.order-customer-summary {
    margin-top: 0;
}

.order-customer-summary .order-line-summary-row {
    display: grid;
    justify-content: stretch;
    gap: 5px;
}

.order-customer-summary .order-line-summary-row strong {
    text-align: left;
    line-height: 1.55;
}

.spare-order-line-summary {
    margin-top: 0;
}

.spare-payment-items-panel {
    order: 2;
}

.spare-payment-items-heading {
    display: grid;
    gap: 4px;
}

.spare-payment-items-heading .section-kicker,
.spare-payment-items-heading .order-summary-title {
    margin: 0;
}

.spare-payment-overview-panel {
    order: 3;
}

.spare-payment-customer-panel {
    order: 1;
}

.spare-payment-cancellation-panel {
    order: 4;
}

.spare-order-item-row {
    display: grid;
    justify-content: stretch;
    gap: 12px;
    padding-top: 16px;
    padding-bottom: 16px;
}

.spare-order-item-description {
    min-width: 0;
}

.spare-order-item-description span,
.spare-order-item-description strong {
    display: block;
}

.spare-order-item-description strong {
    margin-top: 4px;
    line-height: 1.45;
    text-align: left;
}

.spare-order-item-price {
    display: grid;
    gap: 3px;
    min-width: 0;
    padding-top: 10px;
    border-top: 1px dashed rgba(94, 156, 199, 0.35);
}

.spare-order-item-price span {
    color: var(--color-muted);
    font-size: 0.82rem;
}

.spare-order-item-price strong {
    text-align: left;
    line-height: 1.4;
}

@media (min-width: 768px) {
    .spare-order-item-row {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 24px;
    }

    .spare-order-item-price {
        min-width: 190px;
        padding-top: 0;
        padding-left: 20px;
        border-top: 0;
        border-left: 1px dashed rgba(94, 156, 199, 0.35);
    }

    .spare-order-item-price span,
    .spare-order-item-price strong {
        text-align: right;
    }
}

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

.payment-card {
    display: grid;
    gap: 18px;
}

.cart-actions-row {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.cart-update-form,
.cart-clear-form {
    display: grid;
    gap: 12px;
}

.cart-quantity-group {
    margin: 0;
}

.cart-summary-card {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.payment-amount-card,
.payment-qr-card,
.payment-slip-preview {
    padding: 18px;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
}

.payment-amount-card strong {
    display: block;
    margin-top: 6px;
    color: var(--color-primary-dark);
    font-size: 1.6rem;
}

.payment-qr-image {
    width: 100%;
    max-width: 280px;
    margin-top: 10px;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    background: #ffffff;
    padding: 10px;
}

.payment-bank-details {
    width: min(100%, 420px);
    margin-top: 14px;
    padding: 16px 18px;
    display: grid;
    gap: 5px;
    text-align: center;
    border: 1px solid rgba(159, 217, 255, 0.65);
    border-radius: 16px;
    background: rgba(235, 248, 255, 0.72);
}

.payment-bank-details span {
    color: var(--color-muted);
    line-height: 1.5;
}

.payment-bank-details strong {
    color: var(--color-ink);
}

.payment-bank-account {
    margin-top: 3px;
    color: var(--color-primary-dark) !important;
    font-size: 1.35rem;
    letter-spacing: 0.04em;
}

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

.payment-slip-preview img {
    width: 100%;
    max-width: 320px;
    margin-top: 10px;
    border-radius: 16px;
    border: 1px solid var(--color-border);
    background: #ffffff;
}

.order-confirm-grid,
.order-customer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.detail-highlight-item-compact {
    padding: 12px 14px;
}

.detail-highlight-item-compact strong {
    font-size: 0.98rem;
    line-height: 1.6;
}

.order-inline-section {
    margin-top: 0;
}

.order-total-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    background: rgba(227, 245, 255, 0.48);
}

.order-total-card strong {
    margin-top: 6px;
    color: var(--color-primary-dark);
    font-size: 1.45rem;
}

.order-total-note {
    margin-top: 8px;
    color: var(--color-muted);
    line-height: 1.6;
    font-size: 0.92rem;
}

.quote-note-card {
    margin-top: 12px;
}

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

.automatic-quotation-item-list {
    display: grid;
    gap: 12px;
}

.automatic-quotation-item-card,
.automatic-quotation-total-row {
    border: 1px solid rgba(159, 217, 255, 0.72);
    background: linear-gradient(135deg, rgba(235, 248, 255, 0.95), rgba(255, 255, 255, 0.86));
    box-shadow: 0 14px 34px rgba(41, 139, 206, 0.08);
}

.automatic-quotation-item-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: 20px;
}

.automatic-quotation-item-code {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 9px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(217, 237, 255, 0.9);
    color: var(--color-primary-dark);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.automatic-quotation-item-name {
    display: block;
    color: var(--color-ink);
    font-size: 1.08rem;
    line-height: 1.55;
}

.automatic-quotation-item-price {
    display: grid;
    gap: 4px;
    padding-top: 12px;
    border-top: 1px dashed rgba(94, 156, 199, 0.34);
}

.automatic-quotation-item-price span,
.automatic-quotation-total-row span {
    color: var(--color-muted);
    line-height: 1.5;
    font-weight: 700;
}

.automatic-quotation-item-price strong,
.automatic-quotation-total-row strong {
    color: var(--color-primary-dark);
    font-size: 1.12rem;
    line-height: 1.35;
}

.automatic-quotation-total-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border-radius: 18px;
}

.automatic-quotation-total-row-grand {
    background: linear-gradient(135deg, rgba(204, 239, 255, 0.98), rgba(232, 248, 255, 0.96));
}

.automatic-quotation-total-row-grand strong {
    font-size: 1.28rem;
}

.automatic-quotation-item-actions {
    display: grid;
    margin-top: 2px;
}

.automatic-quotation-item-actions .primary-button,
.automatic-quotation-item-actions .secondary-button {
    width: 100%;
}

.tax-invoice-fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.tax-invoice-options {
    display: grid;
    gap: 10px;
    margin-top: 8px;
}

.tax-invoice-option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-text);
    font-weight: 700;
}

.tax-invoice-option input {
    margin: 0;
}

.tax-invoice-address-wrap.is-hidden {
    display: none;
}

.admin-auth-shell {
    max-width: 560px;
    margin: 0 auto;
}

.admin-auth-card {
    padding: 26px 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 252, 255, 0.94) 100%);
    border: 1px solid rgba(215, 229, 242, 0.95);
    border-radius: 26px;
    box-shadow: var(--shadow-card);
}

.admin-auth-form {
    display: grid;
    gap: 14px;
    margin-top: 20px;
}

.admin-auth-form .primary-button[disabled] {
    opacity: 0.65;
    cursor: not-allowed;
    box-shadow: none;
}

.admin-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 24px;
    width: min(100%, 1480px);
    margin: 0 auto;
    padding: 22px 20px 40px;
}

.admin-main {
    min-width: 0;
}

.admin-layout .catalog-home {
    max-width: none;
    padding: 0;
}

.admin-sidebar-toggle,
.admin-sidebar-close {
    border: 0;
    font: inherit;
    cursor: pointer;
}

.admin-sidebar-toggle {
    display: none;
    align-items: center;
    gap: 8px;
    width: calc(100% - 40px);
    margin: 14px 20px 0;
    padding: 13px 16px;
    border: 1px solid rgba(159, 217, 255, 0.78);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.86);
    color: var(--color-primary-dark);
    font-weight: 800;
    box-shadow: var(--shadow-card);
}

.admin-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(11, 37, 58, 0.36);
    backdrop-filter: blur(8px);
}

.admin-sidebar-backdrop[hidden] {
    display: none;
}

.admin-sidebar {
    position: sticky;
    top: 96px;
    align-self: start;
    display: flex;
    flex-direction: column;
    max-height: calc(100vh - 118px);
    overflow: hidden;
    padding: 18px 24px 18px 18px;
    border: 1px solid rgba(184, 222, 247, 0.92);
    border-radius: 30px;
    background:
        radial-gradient(circle at top left, rgba(112, 197, 255, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 250, 255, 0.94) 100%);
    box-shadow: 0 24px 56px rgba(20, 85, 133, 0.14);
}

.admin-sidebar-head {
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 8px 18px;
    border-bottom: 1px solid rgba(213, 227, 239, 0.8);
}

.admin-sidebar-head strong {
    display: block;
    margin-top: 3px;
    color: var(--color-text);
    font-size: 1.18rem;
    line-height: 1.25;
}

.admin-sidebar-kicker {
    display: block;
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.admin-sidebar-close {
    display: none;
    width: 38px;
    height: 38px;
    border-radius: 14px;
    background: rgba(225, 241, 255, 0.92);
    color: var(--color-primary-dark);
    font-size: 1.45rem;
    line-height: 1;
}

.admin-sidebar-nav {
    display: grid;
    gap: 18px;
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding-top: 18px;
    padding-right: 2px;
    scrollbar-width: none;
}

.admin-sidebar-nav::-webkit-scrollbar {
    width: 0;
    height: 0;
}

.admin-sidebar-scrollbar {
    position: absolute;
    top: 96px;
    right: 9px;
    bottom: 18px;
    width: 8px;
    border-radius: 999px;
    background: rgba(207, 235, 254, 0.96);
    box-shadow: inset 0 0 0 1px rgba(151, 211, 250, 0.55);
    cursor: pointer;
}

.admin-sidebar-scrollbar.is-hidden {
    display: none;
}

.admin-sidebar-scrollbar-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    min-height: 54px;
    border-radius: 999px;
    background: linear-gradient(180deg, #1f7fd0 0%, #35aef0 100%);
    box-shadow: 0 5px 13px rgba(31, 127, 208, 0.24);
    cursor: grab;
    touch-action: none;
}

.admin-sidebar-scrollbar-thumb.is-dragging {
    cursor: grabbing;
}

.admin-sidebar-group h2 {
    margin: 0 8px 9px;
    color: var(--color-muted);
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-sidebar-links {
    display: grid;
    gap: 6px;
}

.admin-sidebar-link {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 48px;
    padding: 7px 10px 7px 7px;
    border: 1px solid transparent;
    border-radius: 18px;
    color: var(--color-text);
    font-weight: 800;
    line-height: 1.35;
    text-decoration: none;
    transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.admin-sidebar-link:hover {
    transform: translateY(-1px);
    border-color: rgba(159, 217, 255, 0.68);
    background: rgba(235, 248, 255, 0.72);
    box-shadow: 0 10px 22px rgba(22, 114, 201, 0.08);
}

.admin-sidebar-link.is-active {
    border-color: rgba(73, 176, 244, 0.56);
    background: linear-gradient(135deg, rgba(225, 244, 255, 0.98), rgba(255, 255, 255, 0.9));
    color: var(--color-primary-dark);
    box-shadow: inset 4px 0 0 var(--color-primary), 0 12px 28px rgba(22, 114, 201, 0.1);
}

.admin-sidebar-icon {
    width: 40px;
    height: 40px;
    padding: 9px;
    border-radius: 14px;
    background: rgba(225, 241, 255, 0.82);
    fill: currentColor;
}

.admin-sidebar-link.is-active .admin-sidebar-icon {
    background: linear-gradient(135deg, var(--color-primary), #31b2f3);
    color: #fff;
}

.admin-dashboard-panel {
    max-width: 980px;
    margin: 18px auto 0;
}

.admin-form-wrap,
.admin-table-wrap {
    max-width: 980px;
    margin: 18px auto 0;
}

.admin-form-card,
.admin-table-card {
    padding: 22px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 252, 255, 0.94) 100%);
    border: 1px solid rgba(215, 229, 242, 0.95);
    border-radius: 26px;
    box-shadow: var(--shadow-card);
}

.issue-report-admin-page {
    --issue-admin-soft: rgba(235, 248, 255, 0.76);
    --issue-admin-line: rgba(159, 217, 255, 0.66);
}

.issue-report-admin-page .hero-card,
.issue-report-admin-page .admin-table-wrap,
.issue-report-admin-page .issue-report-attachments-card,
.issue-report-admin-detail-grid {
    max-width: 1180px;
    margin-left: auto;
    margin-right: auto;
}

.issue-report-admin-summary {
    margin-top: 18px;
}

.issue-report-filter-form {
    max-width: 1180px;
    margin: 18px auto 0;
    display: grid;
    gap: 14px;
}

.issue-report-filter-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.issue-status-pill,
.issue-email-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 6px 11px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.2;
    white-space: nowrap;
}

.issue-status-pill.is-new,
.issue-email-pill.is-pending {
    color: #8a5a00;
    background: #fff5d8;
    border-color: #f1d48c;
}

.issue-status-pill.is-reviewing {
    color: #075da2;
    background: #e8f5ff;
    border-color: #a8dcff;
}

.issue-status-pill.is-resolved,
.issue-email-pill.is-sent {
    color: #147443;
    background: #e4f6eb;
    border-color: #a9ddbf;
}

.issue-email-pill.is-failed {
    color: #a52626;
    background: #fff0f0;
    border-color: #efbaba;
}

.admin-pagination {
    margin: 16px auto 0;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--color-muted);
    text-align: center;
    font-weight: 700;
}

.admin-pagination a {
    padding: 8px 12px;
    border: 1px solid var(--color-border);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-primary-dark);
    text-decoration: none;
}

.issue-report-admin-detail-grid {
    margin-top: 18px;
    display: grid;
    gap: 18px;
}

.issue-report-admin-detail-card {
    min-width: 0;
    display: grid;
    align-content: start;
    gap: 18px;
}

.issue-report-admin-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.issue-report-admin-card-head h2,
.issue-report-admin-card-head p {
    margin: 0;
}

.issue-report-admin-card-head h2 {
    margin-top: 3px;
    color: var(--color-ink);
}

.issue-report-admin-data {
    overflow: hidden;
    margin: 0;
    display: grid;
    border: 1px solid var(--issue-admin-line);
    border-radius: 18px;
    background: var(--issue-admin-soft);
}

.issue-report-admin-data > div {
    min-width: 0;
    padding: 13px 15px;
    border-bottom: 1px solid rgba(159, 217, 255, 0.45);
}

.issue-report-admin-data > div:last-child {
    border-bottom: 0;
}

.issue-report-admin-data dt {
    margin: 0 0 4px;
    color: var(--color-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.issue-report-admin-data dd {
    overflow-wrap: anywhere;
    margin: 0;
    color: var(--color-ink);
    line-height: 1.6;
    font-weight: 700;
}

.issue-report-user-agent {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.78rem;
    font-weight: 500 !important;
}

.issue-report-admin-status-form {
    display: grid;
    gap: 12px;
}

.issue-report-admin-status-form + form .secondary-button {
    width: 100%;
}

.issue-report-attachments-card {
    margin-top: 18px;
}

.issue-report-admin-attachments {
    margin-top: 18px;
    display: grid;
    gap: 16px;
}

.issue-report-admin-attachment {
    overflow: hidden;
    min-width: 0;
    display: grid;
    border: 1px solid var(--issue-admin-line);
    border-radius: 20px;
    background: rgba(246, 252, 255, 0.92);
}

.issue-report-admin-attachment img,
.issue-report-admin-attachment video {
    width: 100%;
    height: 230px;
    display: block;
    object-fit: contain;
    background: #eef7fc;
}

.issue-report-admin-attachment > div {
    min-width: 0;
    padding: 15px;
    display: grid;
    gap: 8px;
}

.issue-report-admin-attachment strong,
.issue-report-admin-attachment span {
    overflow-wrap: anywhere;
}

.issue-report-admin-attachment span {
    color: var(--color-muted);
    font-size: 0.84rem;
}

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

.admin-form-grid-span-2 {
    grid-column: 1 / -1;
}

.catalog-order-editor {
    display: grid;
    gap: 20px;
}

.catalog-order-editor-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.catalog-order-editor-head p:last-child {
    max-width: 680px;
    margin: 10px 0 0;
    color: var(--color-muted);
    line-height: 1.65;
}

.catalog-order-editor-state {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 800;
}

.catalog-order-editor-state.is-ready {
    color: var(--color-success);
    background: rgba(26, 138, 82, 0.1);
    border: 1px solid rgba(26, 138, 82, 0.2);
}

.catalog-order-editor-state.is-locked {
    color: var(--color-warning);
    background: rgba(154, 106, 6, 0.1);
    border: 1px solid rgba(154, 106, 6, 0.2);
}

.catalog-order-editor-notice {
    margin-top: 0;
}

.catalog-order-editor-form {
    display: grid;
    gap: 18px;
}

.catalog-order-editor-fields {
    display: grid;
    gap: 16px;
}

.catalog-order-editor-preview {
    overflow: hidden;
    display: grid;
    border: 1px solid rgba(159, 217, 255, 0.72);
    border-radius: 20px;
    background: rgba(235, 248, 255, 0.68);
}

.catalog-order-editor-preview > div {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 16px;
    border-bottom: 1px solid rgba(159, 217, 255, 0.42);
}

.catalog-order-editor-preview > div:last-child {
    border-bottom: 0;
}

.catalog-order-editor-preview span {
    color: var(--color-muted);
}

.catalog-order-editor-preview strong {
    text-align: right;
}

.catalog-order-editor-preview .catalog-order-editor-grand-total {
    color: var(--color-primary-dark);
    background: rgba(159, 217, 255, 0.23);
}

.catalog-order-editor-preview .catalog-order-editor-grand-total strong {
    font-size: 1.12rem;
}

.catalog-order-editor-reason {
    min-height: 104px;
}

.catalog-order-editor-actions {
    display: grid;
    gap: 14px;
}

.catalog-order-editor-actions p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.88rem;
    line-height: 1.65;
}

.catalog-order-editor-actions .primary-button[disabled],
.catalog-order-editor-form .field-control[disabled] {
    opacity: 0.62;
    cursor: not-allowed;
}

.order-editing-slip-warning {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 22px;
    padding: 18px 20px;
    border: 1px solid #f2c976;
    border-radius: 20px;
    background: #fff8e8;
    color: #173653;
}

.order-editing-slip-warning strong {
    display: block;
    margin-bottom: 4px;
}

.order-editing-slip-warning p {
    margin: 0;
    color: #6d5a31;
    line-height: 1.65;
}

.order-editing-slip-warning form {
    flex: 0 0 auto;
    margin: 0;
}

.order-editing-slip-warning .secondary-button {
    white-space: nowrap;
}

.field-help.is-warning {
    color: #b42b2b;
    font-weight: 700;
}

.spare-order-editor {
    display: grid;
    gap: 20px;
}

.spare-order-editor-list {
    display: grid;
    gap: 16px;
}

.spare-order-editor-item,
.spare-order-add-form {
    display: grid;
    gap: 16px;
    padding: 18px;
    border: 1px solid rgba(159, 217, 255, 0.72);
    border-radius: 22px;
    background: rgba(244, 251, 255, 0.72);
}

.spare-order-editor-item-head,
.spare-order-add-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.spare-order-editor-item-head span,
.spare-order-add-head > span {
    color: var(--color-muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.spare-order-editor-item-head h3,
.spare-order-add-head h3 {
    margin: 4px 0 0;
    color: var(--color-ink);
    font-size: 1.18rem;
}

.spare-order-editor-item-head p,
.spare-order-add-head p {
    margin: 5px 0 0;
}

.spare-order-editor-item-head > strong {
    color: var(--color-primary-dark);
    white-space: nowrap;
}

.spare-order-editor-snapshot {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.spare-order-editor-snapshot span {
    padding: 7px 10px;
    border-radius: 999px;
    color: var(--color-muted);
    background: rgba(159, 217, 255, 0.2);
    font-size: 0.82rem;
    font-weight: 700;
}

.spare-order-editor-item-fields,
.spare-order-add-fields {
    display: grid;
    gap: 14px;
}

.spare-order-editor-item-actions {
    display: grid;
    gap: 10px;
}

.spare-order-editor-item-actions .primary-button,
.spare-order-editor-item-actions .secondary-button {
    width: 100%;
}

.spare-order-editor-item-actions button[disabled],
.spare-order-add-form button[disabled],
.spare-order-add-form .field-control[disabled],
.spare-order-editor-item .field-control[disabled] {
    opacity: 0.62;
    cursor: not-allowed;
}

.spare-order-add-form {
    padding: 20px;
    border-color: rgba(45, 156, 229, 0.3);
    background: linear-gradient(135deg, rgba(235, 248, 255, 0.9), rgba(255, 255, 255, 0.94));
}

.spare-order-add-preview {
    overflow: hidden;
    display: grid;
    border: 1px solid rgba(159, 217, 255, 0.72);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.spare-order-add-preview > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 14px;
    border-bottom: 1px solid rgba(159, 217, 255, 0.42);
}

.spare-order-add-preview > div:last-child {
    border-bottom: 0;
}

.spare-order-add-preview span {
    color: var(--color-muted);
}

.spare-order-add-preview strong {
    text-align: right;
}

.promotion-settings-form {
    display: grid;
    gap: 22px;
}

.promotion-settings-grid {
    display: grid;
    gap: 16px;
}

.promotion-setting-panel {
    min-width: 0;
    margin: 0;
    padding: 20px;
    display: grid;
    gap: 16px;
    border: 1px solid rgba(159, 217, 255, 0.7);
    border-radius: 20px;
    background: rgba(235, 248, 255, 0.58);
}

.promotion-setting-panel legend {
    padding: 0 8px;
    color: var(--color-ink);
    font-size: 1.2rem;
    font-weight: 800;
}

.promotion-setting-panel p {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.6;
}

.promotion-enabled-control {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
}

.promotion-enabled-control input {
    width: 20px;
    height: 20px;
    margin: 0;
    accent-color: var(--color-primary);
}

.promotion-setting-status {
    padding: 12px 14px;
    display: grid;
    gap: 3px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid var(--color-border);
}

.promotion-setting-status span {
    color: var(--color-muted);
    font-size: 0.84rem;
}

.promotion-setting-status.is-active {
    border-color: rgba(58, 183, 112, 0.42);
    background: rgba(225, 247, 234, 0.82);
}

.promotion-setting-status.is-active strong {
    color: #128246;
}

.promotion-settings-actions {
    margin-top: 0;
}

.promotion-mode-group {
    display: grid;
    gap: 10px;
}

.promotion-mode-option {
    min-width: 0;
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    gap: 11px;
    border: 1px solid var(--color-border);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.78);
    cursor: pointer;
}

.promotion-mode-option:has(input:checked) {
    border-color: rgba(31, 143, 224, 0.68);
    background: rgba(221, 243, 255, 0.9);
}

.promotion-mode-option input {
    width: 19px;
    height: 19px;
    margin: 2px 0 0;
    flex: 0 0 auto;
    accent-color: var(--color-primary);
}

.promotion-mode-option span {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.promotion-mode-option small {
    color: var(--color-muted);
    line-height: 1.45;
}

.promotion-product-selector {
    padding: 20px;
    display: grid;
    gap: 18px;
    border: 1px solid rgba(159, 217, 255, 0.82);
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(235, 248, 255, 0.76), rgba(255, 255, 255, 0.92));
}

.promotion-product-selector[hidden] {
    display: none;
}

.promotion-product-selector-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.promotion-product-selector-head h2,
.promotion-product-selector-head p {
    margin: 0;
}

.promotion-product-selector-head h2 {
    margin-top: 3px;
}

.promotion-product-selector-head p:not(.eyebrow) {
    margin-top: 7px;
    color: var(--color-muted);
    line-height: 1.55;
}

.promotion-selected-count {
    padding: 10px 14px;
    flex: 0 0 auto;
    border: 1px solid rgba(31, 143, 224, 0.28);
    border-radius: 999px;
    background: #fff;
    color: var(--color-muted);
    white-space: nowrap;
}

.promotion-selected-count strong {
    color: var(--color-primary-dark);
}

.promotion-product-tools {
    display: grid;
    gap: 12px;
}

.promotion-product-search {
    margin: 0;
}

.promotion-product-tool-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.promotion-product-tool-actions .secondary-button {
    min-height: 44px;
    padding: 9px 14px;
}

.promotion-product-list {
    max-height: 520px;
    padding-right: 4px;
    display: grid;
    gap: 10px;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.promotion-product-option {
    min-width: 0;
    padding: 13px 14px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    border: 1px solid var(--color-border);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    cursor: pointer;
}

.promotion-product-option[hidden] {
    display: none;
}

.promotion-product-option:has(input:checked) {
    border-color: rgba(31, 143, 224, 0.62);
    box-shadow: inset 4px 0 0 var(--color-primary);
}

.promotion-product-option.is-inactive {
    background: rgba(241, 245, 249, 0.88);
}

.promotion-product-option input {
    width: 20px;
    height: 20px;
    margin: 2px 0 0;
    flex: 0 0 auto;
    accent-color: var(--color-primary);
}

.promotion-product-copy,
.promotion-product-title {
    min-width: 0;
    display: flex;
    gap: 10px;
}

.promotion-product-copy {
    flex: 1;
    flex-direction: column;
    gap: 5px;
}

.promotion-product-title {
    align-items: flex-start;
    justify-content: space-between;
}

.promotion-product-title strong {
    overflow-wrap: anywhere;
}

.promotion-product-status {
    padding: 4px 9px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #e8edf2;
    color: var(--color-muted);
    font-size: 0.78rem;
    font-weight: 800;
}

.promotion-product-status.is-active {
    background: #dff5e8;
    color: #128246;
}

.promotion-product-meta,
.promotion-product-empty {
    color: var(--color-muted);
}

.promotion-product-empty {
    margin: 0;
    padding: 18px;
    text-align: center;
}

.field-control-textarea {
    min-height: 130px;
    padding-top: 12px;
    padding-bottom: 12px;
    resize: vertical;
}

.field-control-file {
    padding-top: 12px;
    padding-bottom: 12px;
}

.field-help {
    display: block;
    margin-top: 8px;
    color: var(--color-muted);
}

.admin-check-option {
    justify-content: center;
    padding: 14px 16px;
    border: 1px solid rgba(200, 219, 236, 0.92);
    border-radius: 18px;
    background: rgba(239, 249, 255, 0.78);
}

.admin-check-control {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    color: var(--color-text);
    line-height: 1.45;
}

.admin-check-control input[type="checkbox"] {
    width: 19px;
    height: 19px;
    margin-top: 2px;
    flex: 0 0 auto;
    accent-color: var(--color-primary);
}

.consent-field-group {
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid rgba(200, 219, 236, 0.92);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.9);
}

.consent-control {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--color-text);
    line-height: 1.7;
}

.consent-control input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
}

.consent-link {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.admin-video-panel {
    margin-top: 22px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(215, 229, 242, 0.95);
    border-radius: 22px;
}

.admin-qa-panel {
    background:
        linear-gradient(135deg, rgba(238, 248, 255, 0.92), rgba(255, 255, 255, 0.96));
}

.admin-qa-item {
    border-left: 4px solid var(--color-primary);
}

.admin-video-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.admin-video-list {
    display: grid;
    gap: 14px;
}

.admin-video-item {
    padding: 16px;
    background: rgba(248, 252, 255, 0.95);
    border: 1px solid var(--color-border);
    border-radius: 18px;
}

.admin-video-item-grid {
    display: grid;
    gap: 14px;
}

.admin-video-item-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 10px;
}

.admin-current-image {
    margin-bottom: 18px;
}

.admin-current-image img {
    width: 100%;
    max-width: 280px;
    border-radius: 20px;
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-card);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--color-border);
    vertical-align: top;
    text-align: left;
}

.admin-table th {
    color: var(--color-muted);
    font-size: 0.9rem;
    background: rgba(239, 248, 255, 0.55);
}

.admin-product-cell {
    display: flex;
    gap: 12px;
}

.admin-product-thumb {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-muted);
    font-size: 0.8rem;
    text-align: center;
}

.admin-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

.admin-inline-meta {
    display: block;
    margin-top: 6px;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.admin-inline-form {
    margin: 0;
}

.status-pill {
    min-height: 38px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    font-weight: 700;
    cursor: pointer;
}

.status-active {
    background: rgba(26, 138, 82, 0.14);
    color: var(--color-success);
}

.status-inactive {
    background: rgba(154, 106, 6, 0.14);
    color: var(--color-warning);
}

.admin-shipping-badge {
    display: block;
    width: fit-content;
    margin-top: 7px;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(26, 138, 82, 0.14);
    color: var(--color-success);
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.admin-action-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.admin-small-button {
    min-height: 40px;
    padding: 0 14px;
    font-size: 0.92rem;
}

.admin-danger-button {
    border-color: rgba(184, 40, 40, 0.25);
    color: #ab2d2d;
}

.admin-danger-fill {
    background: linear-gradient(135deg, #d34646 0%, #ed6a5e 100%);
}

.detail-card,
.detail-section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(249, 252, 255, 0.94) 100%);
    border: 1px solid rgba(215, 229, 242, 0.95);
    border-radius: 26px;
    box-shadow: var(--shadow-card);
}

.detail-card {
    overflow: hidden;
}

.detail-visual {
    background: #ffffff;
    padding: 16px;
}

.detail-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    object-position: center center;
}

.detail-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-muted);
    font-weight: 700;
}

.detail-content {
    padding: 22px 20px;
}

.detail-title {
    margin: 8px 0 0;
    font-size: 1.85rem;
    line-height: 1.2;
}

.detail-summary {
    margin: 14px 0 0;
    color: var(--color-muted);
    line-height: 1.7;
    font-size: 1rem;
}

.detail-highlight-bar {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 18px;
}

.detail-highlight-item {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(227, 245, 255, 0.65);
    border: 1px solid rgba(159, 217, 255, 0.5);
}

.detail-highlight-item span,
.detail-highlight-item strong {
    display: block;
}

.detail-highlight-item span {
    margin-bottom: 6px;
    color: var(--color-muted);
    font-size: 0.85rem;
}

.detail-highlight-item .product-price-note {
    display: block;
    margin-top: 7px;
    color: var(--color-muted);
    font-size: 0.78rem;
    line-height: 1.55;
}

.detail-highlight-item .product-bangkok-free-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 8px;
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--color-success);
    background: rgba(26, 138, 82, 0.11);
    border: 1px solid rgba(26, 138, 82, 0.22);
    font-size: 0.76rem;
    font-weight: 700;
}

.detail-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-top: 20px;
}

.product-detail-actions > :nth-child(odd) {
    border: 1px solid rgba(15, 111, 198, 0.2);
    background: linear-gradient(135deg, #e8f6ff 0%, #cbeaff 100%);
    color: var(--color-primary-dark);
    box-shadow: 0 12px 24px rgba(15, 111, 198, 0.12);
}

.product-detail-actions > :nth-child(even) {
    border: 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, #33b0ff 100%);
    color: #fff;
    box-shadow: 0 16px 30px rgba(15, 111, 198, 0.24);
}

.product-detail-actions > .disabled-button {
    border: 0;
    background: linear-gradient(135deg, #a7b6c5 0%, #c3cdd6 100%);
    color: #fff;
    box-shadow: none;
}

.detail-section {
    margin-top: 16px;
    padding: 22px 20px;
}

.detail-section h2 {
    margin: 0 0 12px;
    font-size: 1.2rem;
}

.section-kicker {
    margin: 0 0 8px;
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.automatic-quotation-review-divider {
    height: 1px;
    margin: 10px 0 18px;
    border: 0;
    background: linear-gradient(90deg, rgba(25, 91, 155, 0.08) 0%, rgba(25, 91, 155, 0.32) 18%, rgba(25, 91, 155, 0.12) 100%);
}

.detail-copy {
    color: var(--color-text);
    line-height: 1.8;
    white-space: normal;
}

.policy-list {
    display: grid;
    gap: 12px;
    margin-top: 16px;
}

.product-video-grid {
    display: grid;
    gap: 16px;
}

.product-qa-shell {
    display: grid;
    gap: 24px;
}

.product-qa-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(220px, 0.55fr);
    gap: 28px;
    align-items: center;
    padding: clamp(24px, 4vw, 46px);
    border: 1px solid var(--color-border);
    border-radius: 30px;
    background:
        radial-gradient(circle at 94% 12%, rgba(48, 169, 239, 0.2), transparent 38%),
        rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
}

.product-qa-hero-copy h1 {
    margin: 14px 0 12px;
    color: var(--color-text);
    font-size: clamp(2rem, 5vw, 3.7rem);
    line-height: 1.08;
}

.product-qa-hero-copy > p:not(.section-kicker) {
    margin: 0;
    color: var(--color-muted);
    font-size: 1.05rem;
    line-height: 1.75;
}

.product-qa-hero-image-wrap {
    display: grid;
    place-items: center;
    min-height: 220px;
    padding: 18px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid var(--color-border);
}

.product-qa-hero-image {
    display: block;
    width: 100%;
    height: 240px;
    object-fit: contain;
    border-radius: 16px;
}

.product-qa-list {
    display: grid;
    gap: 20px;
}

.product-qa-card {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 22px;
    padding: clamp(22px, 4vw, 38px);
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-soft);
}

.product-qa-number {
    display: grid;
    place-items: center;
    align-self: start;
    width: 68px;
    height: 68px;
    border-radius: 22px;
    color: #ffffff;
    background: linear-gradient(145deg, var(--color-primary), #30a9ef);
    font-size: 1.25rem;
    font-weight: 800;
    box-shadow: 0 14px 30px rgba(23, 126, 206, 0.22);
}

.product-qa-content h2 {
    margin: 4px 0 16px;
    color: var(--color-text);
    font-size: clamp(1.35rem, 3vw, 2rem);
    line-height: 1.35;
}

.product-qa-answer {
    margin: 0;
}

.product-qa-video {
    max-width: 900px;
    margin-top: 24px;
    border-radius: 20px;
}

.product-qa-empty {
    text-align: center;
}

.product-video-card {
    padding: 16px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(215, 229, 242, 0.95);
    border-radius: 22px;
}

.product-video-embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    overflow: hidden;
    border-radius: 18px;
    background: #dfeaf4;
}

.product-video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.product-video-title {
    margin: 14px 0 0;
    font-size: 1rem;
    line-height: 1.5;
}

.product-video-note {
    margin-top: 18px;
}

.empty-state {
    padding: 34px 22px;
    text-align: center;
    background: rgba(255, 255, 255, 0.94);
    border: 1px dashed var(--color-border);
    border-radius: 24px;
    color: var(--color-muted);
}

.empty-state h2 {
    margin: 0 0 10px;
    color: var(--color-text);
    font-size: 1.4rem;
}

.empty-state p {
    margin: 0;
    line-height: 1.7;
}

.contact-page-hero {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.contact-page-grid {
    align-items: stretch;
}

.contact-option-card {
    position: relative;
}

/* Contact cards have no image column; keep their content full-width on desktop. */
.order-summary-card.contact-option-card {
    display: block;
    grid-template-columns: none;
}

.sale-confirmation-header {
    justify-content: center;
}

.sale-confirmation-header .brand {
    margin: 0;
}

.sale-confirmation-shell {
    width: min(920px, calc(100% - 32px));
    margin: 32px auto 56px;
    display: grid;
    gap: 18px;
}

.sale-confirmation-hero,
.sale-confirmation-card,
.sale-confirmation-action-card,
.sale-confirmation-state-card {
    border: 1px solid rgba(215, 229, 242, 0.95);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow-card);
}

.sale-confirmation-hero {
    padding: 30px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(222, 243, 255, 0.96));
}

.sale-confirmation-hero h1,
.sale-confirmation-state-card h1 {
    margin: 6px 0 10px;
    color: var(--color-text);
    font-size: clamp(2rem, 5vw, 3.4rem);
    line-height: 1.1;
}

.sale-confirmation-hero > p:last-of-type,
.sale-confirmation-state-card > p:last-of-type {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.7;
}

.sale-confirmation-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.sale-confirmation-meta-row span,
.sale-confirmation-order-reference {
    padding: 9px 13px;
    border: 1px solid rgba(20, 140, 227, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    color: var(--color-muted);
    font-size: 0.86rem;
}

.sale-confirmation-card {
    padding: 24px;
}

.sale-confirmation-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.sale-confirmation-section-heading h2,
.sale-confirmation-action-card h2 {
    margin: 4px 0 0;
    color: var(--color-text);
    font-size: 1.35rem;
}

.sale-confirmation-count {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(20, 140, 227, 0.1);
    color: var(--color-primary-dark);
    font-weight: 700;
}

.sale-confirmation-items {
    display: grid;
    gap: 12px;
}

.sale-confirmation-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    padding: 16px;
    border: 1px solid var(--color-border);
    border-radius: 18px;
    background: #f9fcff;
}

.sale-confirmation-item h3 {
    margin: 9px 0 5px;
    color: var(--color-text);
    font-size: 1.05rem;
}

.sale-confirmation-item p {
    margin: 0;
    color: var(--color-muted);
}

.sale-confirmation-stock {
    min-width: 132px;
    padding: 11px 13px;
    border-radius: 14px;
    text-align: right;
}

.sale-confirmation-stock span,
.sale-confirmation-stock strong {
    display: block;
}

.sale-confirmation-stock span {
    margin-bottom: 4px;
    font-size: 0.76rem;
}

.sale-confirmation-stock.is-enough {
    color: var(--color-success);
    background: rgba(26, 138, 82, 0.1);
}

.sale-confirmation-stock.is-insufficient {
    color: #b52828;
    background: rgba(181, 40, 40, 0.09);
}

.sale-confirmation-summary-card {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.sale-confirmation-summary-card > div {
    padding: 14px;
    border-radius: 16px;
    background: rgba(227, 245, 255, 0.65);
}

.sale-confirmation-summary-card span,
.sale-confirmation-summary-card strong {
    display: block;
}

.sale-confirmation-summary-card span {
    margin-bottom: 6px;
    color: var(--color-muted);
    font-size: 0.8rem;
}

.sale-confirmation-action-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 22px;
    padding: 24px;
}

.sale-confirmation-action-card p {
    margin: 8px 0 0;
    color: var(--color-muted);
    line-height: 1.6;
}

.sale-confirmation-submit {
    min-width: 220px;
    border: 0;
    cursor: pointer;
}

.sale-confirmation-submit:disabled {
    cursor: not-allowed;
    filter: grayscale(0.65);
    opacity: 0.58;
}

.sale-confirmation-state-card {
    padding: 48px 30px;
    text-align: center;
}

.sale-confirmation-state-icon {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    border-radius: 22px;
    color: #fff;
    background: var(--color-primary);
    font-size: 2rem;
    font-weight: 800;
}

.sale-confirmation-state-card.is-success .sale-confirmation-state-icon {
    background: var(--color-success);
}

.sale-confirmation-state-card.is-warning .sale-confirmation-state-icon {
    background: #cf8a16;
}

.sale-confirmation-state-card.is-error .sale-confirmation-state-icon {
    background: #b52828;
}

.sale-confirmation-state-card .sale-confirmation-order-reference {
    display: table;
    margin: 14px auto 0;
}

.contact-option-body {
    display: grid;
    gap: 14px;
}

.contact-option-description {
    margin: 0;
    color: var(--color-muted);
    line-height: 1.7;
}

.contact-combined-grid .contact-option-card {
    height: 100%;
}

.contact-combined-grid .contact-option-body {
    align-content: start;
    height: 100%;
}

.contact-combined-grid .detail-actions {
    margin-top: auto;
}

.contact-option-highlight {
    background: rgba(255, 255, 255, 0.88);
}

.contact-green-button {
    background: #22c55e;
    border-color: #22c55e;
    box-shadow: 0 14px 30px rgba(34, 197, 94, 0.24);
}

.contact-green-button:hover {
    background: #16a34a;
    border-color: #16a34a;
}

.contact-issue-grid {
    margin-top: 18px;
}

.contact-issue-card {
    background:
        radial-gradient(circle at 90% 10%, rgba(51, 176, 255, 0.2), transparent 30%),
        linear-gradient(135deg, rgba(238, 248, 255, 0.98), rgba(255, 255, 255, 0.98));
    border-color: rgba(105, 190, 247, 0.46);
}

.contact-issue-card .contact-option-description {
    max-width: 720px;
}

.issue-report-page {
    padding-bottom: 26px;
}

body.admin-page {
    --color-primary: #e60012;
    --color-primary-dark: #9f0010;
    --color-accent: #ffecec;
    --color-background: #fff6f6;
    --color-border: #f0ccd0;
    --shadow-soft: 0 22px 50px rgba(156, 0, 13, 0.12);
    --shadow-card: 0 14px 28px rgba(156, 0, 13, 0.1);
}

body.admin-page .primary-button {
    background: linear-gradient(135deg, var(--color-primary) 0%, #ff4856 100%);
    box-shadow: 0 16px 30px rgba(156, 0, 13, 0.24);
}

body.admin-page .primary-button:hover {
    box-shadow: 0 18px 34px rgba(156, 0, 13, 0.28);
}

body.admin-page .field-control:focus {
    outline: 2px solid rgba(230, 0, 18, 0.18);
}

body.admin-page .field-control,
body.admin-page .tax-invoice-option,
body.admin-page .product-card,
body.admin-page .admin-auth-card,
body.admin-page .admin-form-card,
body.admin-page .admin-table-card,
body.admin-page .sale-confirmation-card,
body.admin-page .sale-confirmation-action-card,
body.admin-page .sale-confirmation-state-card,
body.admin-page .sale-confirmation-hero,
body.admin-page .issue-report-form,
body.admin-page .issue-report-section,
body.admin-page .product-qa-card,
body.admin-page .product-qa-hero,
body.admin-page .product-video-card {
    border-color: rgba(240, 204, 208, 0.95);
}

body.admin-page .admin-sidebar-toggle {
    border-color: rgba(230, 0, 18, 0.18);
    color: var(--color-primary-dark);
}

body.admin-page .admin-sidebar {
    border-color: rgba(240, 204, 208, 0.95);
    background:
        radial-gradient(circle at top left, rgba(255, 160, 168, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 246, 246, 0.95) 100%);
    box-shadow: 0 24px 56px rgba(156, 0, 13, 0.14);
}

body.admin-page .admin-sidebar-head {
    border-bottom-color: rgba(240, 204, 208, 0.82);
}

body.admin-page .admin-sidebar-kicker {
    color: var(--color-primary);
}

body.admin-page .admin-sidebar-close {
    background: rgba(255, 232, 233, 0.96);
    color: var(--color-primary-dark);
}

body.admin-page .admin-sidebar-scrollbar {
    background: rgba(255, 226, 228, 0.98);
    box-shadow: inset 0 0 0 1px rgba(230, 0, 18, 0.14);
}

body.admin-page .admin-sidebar-scrollbar-thumb {
    background: linear-gradient(180deg, #e60012 0%, #ff4f5a 100%);
    box-shadow: 0 5px 13px rgba(156, 0, 13, 0.24);
}

body.admin-page .admin-sidebar-link:hover {
    border-color: rgba(230, 0, 18, 0.2);
    background: rgba(255, 240, 241, 0.9);
    box-shadow: 0 10px 22px rgba(156, 0, 13, 0.08);
}

body.admin-page .admin-sidebar-link.is-active {
    border-color: rgba(230, 0, 18, 0.26);
    background: linear-gradient(135deg, rgba(255, 233, 235, 0.98), rgba(255, 255, 255, 0.92));
    box-shadow: inset 4px 0 0 var(--color-primary), 0 12px 28px rgba(156, 0, 13, 0.1);
}

body.admin-page .admin-sidebar-icon {
    background: rgba(255, 233, 235, 0.92);
}

body.admin-page .admin-sidebar-link.is-active .admin-sidebar-icon {
    background: linear-gradient(135deg, var(--color-primary), #ff4f5a);
}

body.admin-page .issue-report-section-head > span {
    background: linear-gradient(135deg, var(--color-primary), #ff4f5a);
    box-shadow: 0 12px 22px rgba(156, 0, 13, 0.2);
}

body.admin-page .issue-report-upload {
    border-color: rgba(230, 0, 18, 0.28);
    background: rgba(255, 243, 244, 0.78);
}

body.admin-page .issue-report-upload:hover {
    border-color: var(--color-primary);
    background: rgba(255, 235, 237, 0.94);
}

body.admin-page .issue-report-upload-icon {
    background: var(--color-primary);
}

body.admin-page .sale-confirmation-count {
    background: rgba(230, 0, 18, 0.1);
    color: var(--color-primary-dark);
}

body.admin-page .sale-confirmation-summary-card > div {
    background: rgba(255, 236, 238, 0.7);
}

body.admin-page .contact-issue-card {
    background:
        radial-gradient(circle at 90% 10%, rgba(255, 132, 141, 0.18), transparent 30%),
        linear-gradient(135deg, rgba(255, 242, 243, 0.98), rgba(255, 255, 255, 0.98));
    border-color: rgba(230, 0, 18, 0.26);
}

body.admin-page .contact-green-button {
    background: #e60012;
    border-color: #e60012;
    box-shadow: 0 14px 30px rgba(156, 0, 13, 0.24);
}

body.admin-page .contact-green-button:hover {
    background: #c90010;
    border-color: #c90010;
}

body.parts-page {
    --color-primary: #e60012;
    --color-primary-dark: #9f0010;
    --color-accent: #ffecec;
    --color-background: #fff8f8;
    --color-border: #f0ccd0;
    --shadow-soft: 0 22px 50px rgba(156, 0, 13, 0.12);
    --shadow-card: 0 14px 28px rgba(156, 0, 13, 0.1);
}

body.parts-page .field-control:focus {
    outline: 2px solid rgba(230, 0, 18, 0.18);
}

body.parts-page .primary-button {
    background: linear-gradient(135deg, var(--color-primary) 0%, #ff4f5a 100%);
    box-shadow: 0 16px 30px rgba(156, 0, 13, 0.24);
}

body.parts-page .primary-button:hover {
    box-shadow: 0 18px 34px rgba(156, 0, 13, 0.28);
}

body.parts-page .primary-button[disabled],
body.parts-page .disabled-button {
    background: linear-gradient(135deg, #c07b82 0%, #dd9ca1 100%);
}

body.parts-page .secondary-button {
    border-color: rgba(230, 0, 18, 0.18);
}

body.parts-page .line-connection-pill {
    border-color: rgba(230, 0, 18, 0.18);
    background: rgba(255, 243, 244, 0.9);
}

body.parts-page .liff-entry-loader span {
    background: linear-gradient(135deg, var(--color-primary) 0%, #ff4f5a 100%);
}

body.parts-page .product-card,
body.parts-page .hero-card,
body.parts-page .catalog-shortcut-card,
body.parts-page .admin-form-card,
body.parts-page .cart-summary-card,
body.parts-page .order-summary-card,
body.parts-page .payment-card,
body.parts-page .order-cancellation-card,
body.parts-page .empty-state,
body.parts-page .notice,
body.parts-page .spare-history-card,
body.parts-page .spare-cart-quantity-dialog,
body.parts-page .catalog-shortcut-card,
body.parts-page .modal-notification-card {
    border-color: rgba(240, 204, 208, 0.95);
}

body.parts-page .spare-cart-quantity-modal .spare-cart-quantity-backdrop {
    background: rgba(14, 34, 52, 0.4);
}

body.parts-page .admin-sidebar-toggle {
    border-color: rgba(230, 0, 18, 0.18);
}

body.parts-page .admin-sidebar {
    border-color: rgba(240, 204, 208, 0.95);
    background:
        radial-gradient(circle at top left, rgba(255, 160, 168, 0.18), transparent 34%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 248, 248, 0.95) 100%);
    box-shadow: 0 24px 56px rgba(156, 0, 13, 0.14);
}

body.parts-page .admin-sidebar-head {
    border-bottom-color: rgba(240, 204, 208, 0.82);
}

body.parts-page .admin-sidebar-kicker {
    color: var(--color-primary);
}

body.parts-page .admin-sidebar-close {
    background: rgba(255, 232, 233, 0.96);
    color: var(--color-primary-dark);
}

body.parts-page .admin-sidebar-scrollbar {
    background: rgba(255, 226, 228, 0.98);
    box-shadow: inset 0 0 0 1px rgba(230, 0, 18, 0.14);
}

body.parts-page .admin-sidebar-scrollbar-thumb {
    background: linear-gradient(180deg, #e60012 0%, #ff4f5a 100%);
    box-shadow: 0 5px 13px rgba(156, 0, 13, 0.24);
}

body.parts-page .admin-sidebar-link:hover {
    border-color: rgba(230, 0, 18, 0.2);
    background: rgba(255, 240, 241, 0.9);
    box-shadow: 0 10px 22px rgba(156, 0, 13, 0.08);
}

body.parts-page .admin-sidebar-link.is-active {
    border-color: rgba(230, 0, 18, 0.26);
    background: linear-gradient(135deg, rgba(255, 233, 235, 0.98), rgba(255, 255, 255, 0.92));
    box-shadow: inset 4px 0 0 var(--color-primary), 0 12px 28px rgba(156, 0, 13, 0.1);
}

body.parts-page .admin-sidebar-icon {
    background: rgba(255, 233, 235, 0.92);
}

body.parts-page .admin-sidebar-link.is-active .admin-sidebar-icon {
    background: linear-gradient(135deg, var(--color-primary), #ff4f5a);
}

body.parts-page .spare-cart-quantity-dialog,
body.parts-page .modal-notification-card {
    border: 1px solid rgba(240, 204, 208, 0.95);
}

body.parts-page .spare-cart-quantity-actions .secondary-button,
body.parts-page .spare-cart-quantity-actions .primary-button {
    min-width: 0;
}

body.parts-page .spare-history-card-header .status-pill,
body.parts-page .status-pill {
    border-color: rgba(230, 0, 18, 0.16);
}

body.parts-page .status-pill.is-active,
body.parts-page .status-active {
    background: rgba(230, 0, 18, 0.1);
    color: var(--color-primary-dark);
}

body.parts-page .status-pill.is-inactive,
body.parts-page .status-inactive {
    background: rgba(166, 107, 114, 0.1);
    color: #8d4d53;
}

body.parts-page .spare-cart-quantity-field .field-control,
body.parts-page .cart-quantity-group .field-control {
    border-color: rgba(230, 0, 18, 0.18);
}

body.parts-page .hero-badge,
body.parts-page .product-code,
body.parts-page .product-category {
    border-color: rgba(230, 0, 18, 0.16);
}

body.parts-page .promotion-badge {
    background: rgba(230, 0, 18, 0.1);
    color: var(--color-primary-dark);
}

body.parts-page .promotion-badge-inline {
    border-color: rgba(230, 0, 18, 0.16);
}

body.parts-page .promotion-final-price {
    color: var(--color-primary-dark);
}

body.parts-page .promotion-price-stack,
body.parts-page .product-price-note,
body.parts-page .product-delivery-note,
body.parts-page .spare-history-date {
    color: #7f4248;
}

body.parts-page .cart-summary-card .detail-highlight-item,
body.parts-page .order-line-summary-row,
body.parts-page .detail-highlight-item,
body.parts-page .order-summary-card,
body.parts-page .spare-history-item {
    border-color: rgba(240, 204, 208, 0.8);
}

body.parts-page .spare-cart-quantity-backdrop {
    background: rgba(14, 34, 52, 0.4);
}

body.parts-page .admin-danger-button {
    background: linear-gradient(135deg, #b52828 0%, #e60012 100%);
    color: #fff;
}

body.parts-page .admin-danger-button:hover {
    background: linear-gradient(135deg, #a51f26 0%, #d10011 100%);
}

body.parts-page .header-cart-button {
    border-color: rgba(255, 255, 255, 0.72);
}

.issue-report-hero,
.issue-report-shell,
.issue-report-errors {
    max-width: 980px;
    margin-left: auto;
    margin-right: auto;
}

.issue-report-errors {
    margin-top: 18px;
    padding: 18px 20px;
    border: 1px solid rgba(190, 96, 76, 0.28);
    border-radius: 20px;
    background: rgba(255, 244, 241, 0.96);
    color: #873b2e;
}

.issue-report-errors h2 {
    margin: 0 0 8px;
    font-size: 1.08rem;
}

.issue-report-errors ul {
    margin: 0;
    padding-left: 22px;
    line-height: 1.65;
}

.issue-report-shell {
    margin-top: 18px;
}

.issue-report-form {
    position: relative;
    display: grid;
    gap: 18px;
    padding: 20px;
    overflow: hidden;
    border: 1px solid rgba(191, 219, 239, 0.9);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-soft);
}

.issue-report-section {
    padding: 20px;
    border: 1px solid rgba(206, 226, 242, 0.9);
    border-radius: 22px;
    background:
        linear-gradient(145deg, rgba(244, 251, 255, 0.96), rgba(255, 255, 255, 0.98));
}

.issue-report-section-head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.issue-report-section-head > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--color-primary), #33b0ff);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    box-shadow: 0 12px 22px rgba(22, 114, 201, 0.2);
}

.issue-report-section-head .section-kicker,
.issue-report-device-card .section-kicker {
    margin: 0 0 3px;
}

.issue-report-section-head h2,
.issue-report-device-card h2 {
    margin: 0;
    font-size: 1.35rem;
}

.issue-report-grid {
    display: grid;
    gap: 16px;
}

.issue-report-form .field-label strong,
.issue-report-consent strong {
    color: #c44732;
}

.issue-report-form .field-label small {
    color: var(--color-muted);
    font-size: 0.82rem;
    font-weight: 500;
}

.issue-report-textarea {
    min-height: 160px;
    line-height: 1.6;
}

.issue-report-upload {
    position: relative;
    display: grid;
    justify-items: center;
    gap: 7px;
    padding: 24px 18px;
    border: 1px dashed rgba(22, 114, 201, 0.42);
    border-radius: 20px;
    background: rgba(237, 248, 255, 0.72);
    text-align: center;
    cursor: pointer;
}

.issue-report-upload:hover {
    border-color: var(--color-primary);
    background: rgba(229, 245, 255, 0.92);
}

.issue-report-upload input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.issue-report-upload-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-size: 1.65rem;
    line-height: 1;
}

.issue-report-upload-title {
    color: var(--color-primary-dark);
    font-weight: 800;
}

.issue-report-upload-help {
    color: var(--color-muted);
    font-size: 0.86rem;
    line-height: 1.55;
}

.issue-report-file-list {
    display: grid;
    gap: 8px;
    margin-top: 12px;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.issue-report-file-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(205, 225, 241, 0.9);
    border-radius: 13px;
    background: #fff;
}

.issue-report-file-item strong {
    min-width: 0;
    overflow: hidden;
    color: var(--color-text);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.issue-report-file-item span {
    flex: 0 0 auto;
}

.issue-report-device-card {
    display: grid;
    gap: 16px;
    padding: 18px 20px;
    border: 1px solid rgba(176, 217, 244, 0.82);
    border-radius: 20px;
    background: rgba(231, 247, 255, 0.8);
}

.issue-report-device-card p:last-child {
    margin: 8px 0 0;
    color: var(--color-muted);
    line-height: 1.6;
}

.issue-report-device-status {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 40px;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.9);
    color: var(--color-muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.issue-report-device-status.is-ready {
    background: #daf3e6;
    color: #147542;
}

.issue-report-consent {
    display: grid;
    background: rgba(246, 251, 255, 0.96);
}

.issue-report-actions {
    display: grid;
    gap: 12px;
}

.issue-report-submit:disabled {
    opacity: 0.65;
    cursor: wait;
    box-shadow: none;
}

.issue-report-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.site-footer {
    color: var(--color-muted);
    text-align: center;
    font-size: 0.9rem;
}

@media (min-width: 768px) {
    .site-header,
    .catalog-home,
    .site-footer {
        padding-left: 32px;
        padding-right: 32px;
    }

    .status-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .promotion-product-tools {
        grid-template-columns: minmax(260px, 1fr) auto;
        align-items: end;
    }

    .promotion-product-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .catalog-filter-form {
        grid-template-columns: 1fr auto;
        align-items: end;
    }

    .filter-actions {
        grid-template-columns: 1fr 1fr;
        min-width: 240px;
    }

    .contact-issue-card .contact-option-body {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 28px;
    }

    .contact-page-grid.contact-issue-grid {
        grid-template-columns: 1fr;
    }

    .contact-issue-card {
        display: block;
    }

    .contact-issue-card .product-meta,
    .contact-issue-card .order-summary-title,
    .contact-issue-card .contact-option-description {
        grid-column: 1;
    }

    .contact-issue-card .detail-actions {
        grid-column: 2;
        grid-row: 1 / span 3;
        min-width: 190px;
    }

    .issue-report-form {
        padding: 26px;
    }

    .issue-report-section {
        padding: 24px;
    }

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

    .issue-report-span-2 {
        grid-column: 1 / -1;
    }

    .issue-report-device-card {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .issue-report-actions {
        grid-template-columns: minmax(0, 1fr) minmax(220px, 0.45fr);
    }

    .issue-report-filter-form {
        grid-template-columns: repeat(4, minmax(150px, 1fr));
        align-items: end;
    }

    .issue-report-filter-search {
        grid-column: span 2;
    }

    .issue-report-filter-actions {
        min-width: 240px;
        grid-column: span 2;
    }

    .issue-report-admin-detail-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .issue-report-admin-attachments {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .product-image-wrap {
        padding: 12px;
    }

    .product-card-body {
        padding: 18px;
    }

    .product-card-footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .product-card-actions {
        grid-template-columns: 1fr 1fr;
    }

    .spare-product-card-actions > :first-child {
        grid-column: 1 / -1;
    }

    .product-cta-note {
        font-size: 0.88rem;
    }

    .product-price {
        font-size: 0.92rem;
        min-height: 34px;
        padding: 0 12px;
    }

    .product-code,
    .product-category {
        min-height: 30px;
        padding: 0 10px;
        font-size: 0.82rem;
    }

    .product-title {
        font-size: 1.25rem;
    }

    .product-description {
        margin: 12px 0 18px;
        line-height: 1.7;
        font-size: 1rem;
        -webkit-line-clamp: 4;
    }

    .product-link {
        min-height: 52px;
        padding: 0 18px;
        font-size: 1rem;
    }

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

    .detail-highlight-bar {
        grid-template-columns: 1fr 1fr;
    }

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

    .order-confirm-grid {
        grid-template-columns: repeat(3, 1fr);
    }

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

    .detail-card {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .order-summary-card {
        display: grid;
        grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
    }

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

    .cart-actions-row {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: end;
    }

    .cart-update-form {
        grid-template-columns: minmax(180px, 240px) auto;
        align-items: end;
    }

    .cart-summary-card {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .detail-image {
        aspect-ratio: auto;
        min-height: 100%;
    }

    .detail-content {
        padding: 28px;
    }

    .detail-section {
        padding: 24px 28px;
    }

    .detail-actions {
        grid-template-columns: 1fr 1fr;
    }

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

    .catalog-order-editor-fields {
        grid-template-columns: minmax(0, 2fr) minmax(150px, 0.7fr);
    }

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

    .catalog-order-editor-preview > div:nth-last-child(2),
    .catalog-order-editor-preview > div:last-child {
        border-bottom: 0;
    }

    .catalog-order-editor-preview > div:nth-child(odd) {
        border-right: 1px solid rgba(159, 217, 255, 0.42);
    }

    .catalog-order-editor-actions {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .spare-order-editor-item-fields {
        grid-template-columns: minmax(120px, 0.45fr) minmax(0, 1.55fr);
    }

    .spare-order-editor-item-actions {
        grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr);
    }

    .spare-order-add-fields {
        grid-template-columns: minmax(0, 2fr) minmax(130px, 0.55fr);
    }

    .spare-order-add-preview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .spare-order-add-preview > div:nth-child(odd) {
        border-right: 1px solid rgba(159, 217, 255, 0.42);
    }

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

    .tax-invoice-options {
        grid-template-columns: 1fr 1fr;
    }

    .catalog-shortcut-card {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
    }

    .liff-entry-card {
        padding: 36px 34px;
    }
}

@media (max-width: 767px) {
    .promotion-product-selector {
        padding: 16px 14px;
    }

    .promotion-product-selector-head,
    .promotion-product-title {
        display: grid;
    }

    .promotion-selected-count,
    .promotion-product-status {
        justify-self: start;
    }

    .promotion-product-tool-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .promotion-product-tool-actions .secondary-button {
        width: 100%;
        white-space: normal;
    }

    .order-editing-slip-warning {
        align-items: stretch;
        flex-direction: column;
    }

    .order-editing-slip-warning .secondary-button {
        width: 100%;
        white-space: normal;
    }

    .catalog-order-editor-head {
        flex-direction: column;
    }

    .catalog-order-editor-preview > div {
        gap: 12px;
        padding: 12px 14px;
    }

    .catalog-order-editor-preview strong {
        max-width: 58%;
    }

    .spare-order-editor-item-head,
    .spare-order-add-head {
        display: grid;
    }

    .spare-order-editor-item-head > strong {
        white-space: normal;
    }

    .spare-order-editor-item,
    .spare-order-add-form {
        padding: 16px 14px;
        border-radius: 19px;
    }

    .sale-confirmation-shell {
        width: min(100% - 20px, 920px);
        margin-top: 18px;
    }

    .sale-confirmation-hero,
    .sale-confirmation-card,
    .sale-confirmation-action-card,
    .sale-confirmation-state-card {
        padding: 20px 16px;
        border-radius: 22px;
    }

    .sale-confirmation-meta-row {
        display: grid;
    }

    .sale-confirmation-meta-row span {
        border-radius: 14px;
    }

    .sale-confirmation-section-heading,
    .sale-confirmation-item,
    .sale-confirmation-action-card {
        grid-template-columns: 1fr;
    }

    .sale-confirmation-section-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .sale-confirmation-count {
        width: fit-content;
    }

    .sale-confirmation-stock {
        width: 100%;
        text-align: left;
    }

    .sale-confirmation-summary-card {
        grid-template-columns: 1fr;
    }

    .sale-confirmation-submit {
        width: 100%;
        min-width: 0;
    }

    .product-qa-hero {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 22px 18px;
        border-radius: 24px;
    }

    .product-qa-hero-image-wrap {
        grid-row: 1;
        min-height: 180px;
        padding: 12px;
    }

    .product-qa-hero-image {
        height: 190px;
    }

    .product-qa-card {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 22px 18px;
        border-radius: 24px;
    }

    .product-qa-number {
        width: 54px;
        height: 54px;
        border-radius: 18px;
        font-size: 1rem;
    }

    .product-qa-video {
        margin-top: 18px;
        border-radius: 16px;
    }

    .site-header {
        flex-wrap: wrap;
    }

    .header-tools {
        width: 100%;
        justify-content: space-between;
    }

    .line-connection-indicator {
        justify-content: flex-start;
        flex: 1;
    }

    .line-connection-pill {
        white-space: normal;
        line-height: 1.4;
        padding-top: 7px;
        padding-bottom: 7px;
    }

    .liff-entry-shell {
        min-height: calc(100vh - 120px);
    }

    .liff-entry-card {
        padding: 24px 18px;
        border-radius: 24px;
    }

    .liff-entry-text {
        font-size: 0.98rem;
    }

    .liff-entry-actions .secondary-button {
        width: 100%;
    }

    .admin-video-panel-head {
        flex-direction: column;
        align-items: stretch;
    }

    .admin-video-item-actions {
        justify-content: stretch;
    }

    .admin-video-item-actions .secondary-button {
        width: 100%;
    }

    .admin-table,
    .admin-table thead,
    .admin-table tbody,
    .admin-table th,
    .admin-table td,
    .admin-table tr {
        display: block;
    }

    .admin-table thead {
        display: none;
    }

    .admin-table tr {
        padding: 12px 0;
        border-bottom: 1px solid var(--color-border);
    }

    .admin-table td {
        border: 0;
        padding: 8px 0;
    }

    .admin-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 6px;
        color: var(--color-muted);
        font-size: 0.85rem;
        font-weight: 700;
    }
}

.order-audit-card {
    grid-column: 1 / -1;
}

.order-audit-head,
.order-audit-entry-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.order-audit-head h2,
.order-audit-entry-head p {
    margin: 0;
}

.order-audit-head > span,
.order-audit-entry-head time {
    flex: 0 0 auto;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.order-audit-empty {
    margin-top: 20px;
    padding: 18px;
    border: 1px dashed var(--color-border);
    border-radius: 18px;
    color: var(--color-muted);
    background: #f8fcff;
}

.order-audit-timeline {
    position: relative;
    margin-top: 24px;
    padding-left: 28px;
}

.order-audit-timeline::before {
    content: "";
    position: absolute;
    top: 9px;
    bottom: 9px;
    left: 7px;
    width: 2px;
    background: #b9def6;
}

.order-audit-entry {
    position: relative;
    margin-bottom: 18px;
    padding: 20px;
    border: 1px solid #cfe5f5;
    border-radius: 22px;
    background: linear-gradient(135deg, #ffffff 0%, #f2faff 100%);
}

.order-audit-entry:last-child {
    margin-bottom: 0;
}

.order-audit-marker {
    position: absolute;
    top: 24px;
    left: -28px;
    width: 16px;
    height: 16px;
    border: 4px solid #e8f7ff;
    border-radius: 50%;
    background: #178bd1;
    box-sizing: border-box;
}

.order-audit-entry-head strong {
    display: block;
    color: var(--color-heading);
    font-size: 1.05rem;
}

.order-audit-entry-head p {
    margin-top: 5px;
    color: var(--color-muted);
}

.order-audit-meta {
    display: grid;
    gap: 8px;
    margin-top: 14px;
    padding: 13px 15px;
    border-radius: 15px;
    color: #36536d;
    background: #eaf6fd;
}

.order-audit-details {
    margin-top: 14px;
}

.order-audit-details summary {
    cursor: pointer;
    color: #0b67a6;
    font-weight: 700;
}

.order-audit-compare {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.order-audit-snapshot {
    overflow: hidden;
    border: 1px solid #d8e6f0;
    border-radius: 16px;
    background: #fff;
}

.order-audit-snapshot h3 {
    margin: 0;
    padding: 12px 14px;
    font-size: 0.95rem;
    background: #f2f5f8;
}

.order-audit-snapshot.is-after h3 {
    color: #086c4d;
    background: #eaf8f3;
}

.order-audit-snapshot > div {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 10px;
    padding: 10px 14px;
    border-top: 1px solid #edf2f6;
}

.order-audit-snapshot span {
    color: var(--color-muted);
}

.order-audit-snapshot strong {
    overflow-wrap: anywhere;
    text-align: right;
}

@media (max-width: 720px) {
    .order-audit-head,
    .order-audit-entry-head {
        flex-direction: column;
        gap: 7px;
    }

    .order-audit-compare {
        grid-template-columns: 1fr;
    }

    .order-audit-entry {
        padding: 17px 15px;
    }

    .order-audit-snapshot > div {
        grid-template-columns: 1fr;
        gap: 3px;
    }

    .order-audit-snapshot strong {
        text-align: left;
    }
}

@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (min-width: 1025px) {
    .admin-sidebar-backdrop {
        display: none !important;
    }
}

@media (max-width: 1024px) {
    .admin-layout {
        display: block;
        width: 100%;
        padding: 16px 20px 36px;
    }

    .admin-layout .catalog-home,
    .admin-layout .admin-form-wrap,
    .admin-layout .admin-table-wrap,
    .admin-layout .admin-dashboard-panel {
        margin-top: 0;
    }

    .admin-sidebar-toggle {
        display: inline-flex;
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 1060;
        width: min(86vw, 330px);
        max-height: none;
        border-radius: 0 30px 30px 0;
        transform: translateX(-105%);
        transition: transform 0.22s ease;
    }

    body.admin-sidebar-open {
        overflow: hidden;
    }

    body.admin-sidebar-open .admin-sidebar {
        transform: translateX(0);
    }

    .admin-sidebar-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .admin-layout {
        padding: 14px 14px 32px;
    }

    .admin-sidebar-toggle {
        width: calc(100% - 28px);
        margin: 12px 14px 0;
    }

    .admin-sidebar {
        width: min(92vw, 320px);
        padding: 16px 24px 16px 14px;
    }
}
