/**
 * 官網購物車右側抽屜
 */
.wx-cart-drawer {
    position: fixed;
    inset: 0;
    z-index: 6100;
    pointer-events: none;
}

.wx-cart-drawer:not(.is-open),
.wx-cart-drawer[hidden] {
    display: none !important;
    pointer-events: none !important;
}

.wx-cart-drawer.is-open:not([hidden]) {
    display: block;
    pointer-events: auto;
}

.wx-cart-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.wx-cart-drawer.is-open .wx-cart-drawer__backdrop {
    opacity: 1;
}

.wx-cart-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(400px, 92vw);
    height: 100%;
    max-height: 100dvh;
    background: #ffffff;
    box-shadow: -8px 0 24px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    transform: translate3d(104%, 0, 0);
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: transform;
    box-sizing: border-box;
}

.wx-cart-drawer.is-open .wx-cart-drawer__panel {
    transform: translate3d(0, 0, 0);
}

.wx-cart-drawer__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px 14px;
    border-bottom: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.wx-cart-drawer__title {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
}

.wx-cart-drawer__close {
    border: none;
    background: #f1f5f9;
    color: #475569;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.wx-cart-drawer__close:hover {
    background: #e2e8f0;
}

.wx-cart-drawer__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding: 12px 16px 16px;
}

.wx-cart-drawer__empty {
    text-align: center;
    padding: 48px 16px 32px;
}

.wx-cart-drawer__empty-msg {
    margin: 0 0 16px;
    font-size: 15px;
    font-weight: 600;
    color: #64748b;
}

.wx-cart-drawer__empty-link {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155 !important;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}

.wx-cart-drawer__group,
.wx-cart-drawer__split-hint {
  list-style: none;
  padding: 14px 2px 6px;
  margin: 4px 0 0;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #64748b;
  border-bottom: 0;
}

.wx-cart-drawer__group:first-child {
  padding-top: 2px;
  margin-top: 0;
}

.wx-cart-drawer__split-hint {
  padding-top: 4px;
  color: #9a3412;
  font-weight: 700;
}

.wx-cart-drawer__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wx-cart-drawer__item {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 10px 36px 10px 12px;
    border: 1px solid #e8edf3;
    border-radius: 14px;
    background: #fff;
}

.wx-cart-drawer__cluster {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex: 1 1 0%;
    min-width: 0;
}

.wx-cart-drawer__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 5px;
    flex: 1 1 0%;
    min-width: 0;
}

.wx-cart-drawer__aside {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    align-self: center;
    gap: 10px;
    flex: 0 0 auto;
}

.wx-cart-drawer__item-img-wrap {
    width: 56px;
    height: 56px;
    min-width: 56px;
    min-height: 56px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 10px;
    background: #f1f5f9;
    border: 1px solid #e8edf3;
}

.wx-cart-drawer__item-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border: 0;
    background: #fff;
}

.wx-cart-drawer__item-info {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 5px;
}

.wx-cart-drawer__item-name {
    width: 100%;
    min-width: 0;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
    margin: 0;
    white-space: normal;
    overflow: visible;
    display: block;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.wx-cart-drawer__item-meta {
    flex-shrink: 0;
    min-width: 4.2em;
    text-align: right;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
}

.wx-cart-drawer__item-variant {
    display: flex;
    align-items: center;
    min-width: 0;
    max-width: 100%;
}

.wx-cart-drawer__variant-inline {
    display: inline-block;
    width: max-content;
    max-width: 100%;
    margin: 0;
    vertical-align: middle;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #fff;
    padding: 2px 18px 2px 6px;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
}

.wx-cart-drawer__variant-inline option:disabled {
    color: #94a3b8;
}

.wx-cart-drawer__variant-inline-text {
    margin: 0;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}

.wx-cart-drawer__variant,
.wx-cart-item__variant {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 6px 0 0;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}

.wx-cart-drawer__variant select,
.wx-cart-item__variant select {
    flex: 1;
    min-width: 0;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    padding: 4px 8px;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
}

.wx-cart-drawer__variant-text,
.wx-cart-item__variant-text {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 700;
    color: #64748b;
}

.wx-cart-qty {
    display: inline-flex;
    align-items: stretch;
    height: 30px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    flex-shrink: 0;
}

.wx-cart-qty button {
    width: 30px;
    height: 30px;
    border: none;
    background: #f8fafc;
    color: #475569;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    padding: 0;
    margin: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.wx-cart-qty input {
    width: 34px;
    height: 30px;
    border: none;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    border-radius: 0;
    text-align: center;
    font-weight: 700;
    font-size: 13px;
    line-height: 30px;
    color: #0f172a;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    background: #fff;
    appearance: textfield;
    -webkit-appearance: none;
    -moz-appearance: textfield;
}

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

.wx-cart-qty [data-wx-cart-qty-value] {
    width: 28px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    line-height: 1;
    color: #0f172a;
    border-left: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
    box-sizing: border-box;
}

html.wx-variant-picker-open,
body.wx-variant-picker-open {
    overflow: hidden;
}

.wx-variant-picker {
    position: fixed;
    inset: 0;
    z-index: 7200;
    display: flex;
    pointer-events: auto;
    align-items: center;
    justify-content: center;
    padding: 16px;
    font-family: 'Noto Sans TC', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.wx-variant-picker * {
    font-family: inherit !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.wx-variant-picker__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.22);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.wx-variant-picker__panel {
    position: relative;
    width: min(520px, 100%);
    background: #ffffff;
    border: 1px solid #e8edf3;
    border-radius: 16px;
    padding: 14px 14px 12px;
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
    box-sizing: border-box;
}

.wx-variant-picker__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 999px;
    background: #f8fafc;
    color: #64748b;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
}

.wx-variant-picker__close:hover {
    background: #eef2f7;
    color: #334155;
}

.wx-variant-picker__layout {
    --wx-vp-thumb: 108px;
    --wx-vp-optical: 2px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0 28px 10px 0;
}

.wx-variant-picker__media {
    flex: 0 0 var(--wx-vp-thumb);
    width: var(--wx-vp-thumb);
    height: var(--wx-vp-thumb);
    margin-top: var(--wx-vp-optical);
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid #e8edf3;
    box-sizing: border-box;
}

.wx-variant-picker__media.is-empty {
    background: #ffffff;
}

.wx-variant-picker__thumb {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
}

.wx-variant-picker__main {
    flex: 1 1 auto;
    min-width: 0;
    min-height: calc(var(--wx-vp-thumb) + var(--wx-vp-optical));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    gap: 6px;
    padding-right: 22px;
    box-sizing: border-box;
}

.wx-variant-picker__info {
    flex: 0 0 auto;
    min-width: 0;
}

.wx-variant-picker__title {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #475569;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.wx-variant-picker__price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    min-height: 22px;
    margin: 0;
    color: var(--wx-card-price-color, #d1434f);
}

.wx-variant-picker__currency {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--wx-card-price-color, #d1434f);
}

.wx-variant-picker__amount {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--wx-card-price-color, #d1434f);
    line-height: 1.15;
}

.wx-variant-picker__unset {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 22px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid #cbd5e1;
    background: #f1f5f9;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1;
    box-sizing: border-box;
}

.wx-variant-picker__controls {
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
    margin: 0;
}

.wx-variant-picker__field {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    margin: 0;
    min-width: 0;
}

.wx-variant-picker__field--spec {
    flex: 1 1 64%;
    min-width: 0;
}

.wx-variant-picker__field--qty {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    max-width: none;
}

.wx-variant-picker__controls:not(:has(.wx-variant-picker__field--spec)) .wx-variant-picker__field--qty {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
}

.wx-variant-picker__field-label {
    font-family: inherit;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    letter-spacing: 0.04em;
}

.wx-variant-picker__select-wrap {
    display: block;
    width: 100%;
}

.wx-variant-picker__select {
    display: block;
    width: 100%;
    height: 38px;
    margin: 0;
    padding: 0 36px 0 12px;
    box-sizing: border-box;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23778ca3' d='M1.2 1.2L6 6l4.8-4.8' stroke='%23778ca3' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    background-size: 12px 8px;
    color: #3f4a52;
    font-size: 13px;
    font-weight: 600;
    line-height: 38px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
}

.wx-variant-picker__select:hover {
    border-color: color-mix(in srgb, var(--pos-highlight, var(--primary-color, var(--pos-btn-bg, #778ca3))) 45%, #e2e8f0);
}

.wx-variant-picker__select:focus {
    border-color: var(--pos-highlight, var(--primary-color, var(--pos-btn-bg, #778ca3)));
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--pos-highlight, var(--primary-color, var(--pos-btn-bg, #778ca3))) 16%, transparent);
    outline: none;
}

@media (max-width: 560px) {
    .wx-variant-picker__layout {
        margin-right: 0;
    }

    .wx-variant-picker__main {
        padding-right: 20px;
    }
}

.wx-variant-picker__select:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    background-color: #f8fafc;
}

.wx-variant-picker__select option:disabled {
    color: #94a3b8;
}

.wx-variant-picker__qty {
    display: flex;
    align-items: stretch;
    margin: 0;
}

.wx-variant-picker__stepper {
    display: flex;
    align-items: stretch;
    flex: none;
    width: 114px;
    height: 38px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
    box-sizing: border-box;
}

.wx-variant-picker__step,
.wx-variant-picker__qty-input {
    height: 36px;
    border: none;
    box-sizing: border-box;
}

.wx-variant-picker__step {
    flex: 0 0 38px;
    width: 38px;
    height: 36px;
    background: #f8fafc;
    color: #334155;
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}

.wx-variant-picker__step:hover {
    background: #eef2f7;
}

.wx-variant-picker__qty-input {
    flex: 0 0 38px;
    width: 38px !important;
    min-width: 38px;
    max-width: 38px;
    margin: 0 !important;
    padding: 0;
    border-left: 1px solid #e8edf3;
    border-right: 1px solid #e8edf3;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #2d3748;
    background: #ffffff;
    -moz-appearance: textfield;
    appearance: textfield;
}

.wx-variant-picker__qty-input::-webkit-outer-spin-button,
.wx-variant-picker__qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.wx-variant-picker__actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.wx-variant-picker__cancel,
.wx-variant-picker__ok {
    flex: 1;
    height: 40px;
    border-radius: 8px;
    padding: 0 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 0.04em;
    cursor: pointer;
    box-sizing: border-box;
    transition: filter 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
}

.wx-variant-picker__cancel {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
}

.wx-variant-picker__cancel:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.wx-variant-picker__ok {
    border: 1px solid var(--pos-highlight, var(--primary-color, var(--pos-btn-bg, #778ca3))) !important;
    background: var(--pos-highlight, var(--primary-color, var(--pos-btn-bg, #778ca3))) !important;
    color: var(--btn-text-color, #fff) !important;
}

.wx-variant-picker__ok:hover:not(:disabled) {
    filter: brightness(0.92);
    transform: translateY(-1px);
}

.wx-variant-picker__ok:disabled {
    cursor: not-allowed;
    background: #d0dae3;
    border-color: #d0dae3;
    color: #6b7280;
}

.wx-cart-drawer__item-remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border: none;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    cursor: pointer;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease;
}

.wx-cart-drawer__item-remove svg {
    display: block;
}

.wx-cart-drawer__item-remove:hover {
    background: color-mix(in srgb, var(--primary-color, var(--pos-btn-bg, #778ca3)) 16%, #fff);
    color: var(--primary-color, var(--pos-btn-bg, #778ca3));
}

.wx-cart-drawer__item-remove:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--primary-color, var(--pos-btn-bg, #778ca3)) 45%, #fff);
    outline-offset: 1px;
}

.wx-cart-drawer__foot {
    flex-shrink: 0;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wx-cart-drawer__foot[hidden],
.wx-cart-drawer__empty[hidden] {
    display: none !important;
}

.wx-cart-drawer__total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #334155;
}

.wx-cart-drawer__total-value {
    font-size: 18px;
    font-weight: 900;
    color: #0f172a;
}

.wx-cart-drawer__checkout {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: 13px 16px;
    border-radius: 12px;
    background: var(--primary-color, var(--pos-btn-bg, #778ca3));
    color: var(--btn-text-color, #ffffff) !important;
    font-weight: 800;
    font-size: 15px;
    text-decoration: none;
    box-shadow: none;
    transform: none;
    transition: background-color 0.15s ease;
}

.wx-cart-drawer__checkout:hover,
.wx-cart-drawer__checkout:focus-visible {
    background: color-mix(in srgb, var(--primary-color, var(--pos-btn-bg, #778ca3)) 82%, #1e293b);
    transform: none;
    filter: none;
}

.wx-cart-drawer__continue {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 16px;
    border: 1px solid color-mix(in srgb, var(--primary-color, var(--pos-btn-bg, #778ca3)) 48%, #fff);
    border-radius: 10px;
    background: color-mix(in srgb, var(--primary-color, var(--pos-btn-bg, #778ca3)) 12%, #fff);
    color: var(--primary-color, var(--pos-btn-bg, #778ca3));
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transform: none;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.wx-cart-drawer__continue:hover {
    background: color-mix(in srgb, var(--primary-color, var(--pos-btn-bg, #778ca3)) 22%, #fff);
    border-color: var(--primary-color, var(--pos-btn-bg, #778ca3));
    transform: none;
}

body.wx-cart-drawer-open {
    overflow: hidden;
}

@media (min-width: 768px) {
    .wx-cart-drawer__panel {
        width: min(420px, 92vw, max(36vw, 380px));
    }
}

/* 窄螢幕（手機、平板、小筆電，寬度 1199px 以下）：結帳與繼續購物併成一橫行（商品列維持原樣） */
@media (max-width: 1199px), (max-height: 500px) {
    .wx-cart-drawer__foot {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: stretch;
    }
    .wx-cart-drawer__total-row {
        flex: 1 1 100%;
    }
    .wx-cart-drawer__checkout,
    .wx-cart-drawer__continue {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        padding-left: 8px;
        padding-right: 8px;
        white-space: nowrap;
    }
}

/* 直式（手機／平板）與手機橫式（高度 500px 以下）：縮圖在左；右側上方名稱佔滿寬度，下方一行為「數量＋價格」靠右，刪除鈕維持在明細右上角 */
@media (max-width: 900px) and (orientation: portrait), (max-height: 500px) {
    .wx-cart-drawer__item {
        display: grid;
        grid-template-columns: 56px minmax(0, 1fr);
        column-gap: 10px;
        row-gap: 8px;
        align-items: start;
        padding: 10px 12px;
    }
    .wx-cart-drawer__cluster {
        display: contents;
    }
    .wx-cart-drawer__item-img-wrap {
        grid-column: 1;
        grid-row: 1 / span 2;
    }
    .wx-cart-drawer__copy {
        grid-column: 2;
        grid-row: 1;
    }
    /* 數量在款式選單正下方靠左；價格靠右，最後一個字與上方名稱文字的右邊界對齊 */
    .wx-cart-drawer__aside {
        grid-column: 2;
        grid-row: 2;
        justify-content: space-between;
        gap: 12px;
        padding-right: 22px;
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
    }
    .wx-cart-drawer__aside .wx-cart-drawer__item-meta {
        min-width: 0;
        margin-left: auto;
        text-align: right;
        white-space: nowrap;
    }
    .wx-cart-drawer__copy {
        padding-right: 22px;
    }
}

/* 選規格視窗版面（2026-09-26）：× 自己一行 → 商品名稱整行 → 左縮圖（高度對齊右側）／右側「規格」與「數量＋價格」→ 底部按鈕 */
.wx-variant-picker__panel {
    padding: 10px 16px 14px;
}

.wx-variant-picker__head {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    min-height: 30px;
    margin: 0 0 2px;
}

.wx-variant-picker__head .wx-variant-picker__close {
    position: static;
    top: auto;
    right: auto;
    flex: none;
}

.wx-variant-picker__title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.35;
    color: #334155;
}

.wx-variant-picker__layout {
    --wx-vp-thumb: 96px;
    align-items: stretch;
    margin: 0 0 12px;
}

.wx-variant-picker__media {
    flex: 0 0 var(--wx-vp-thumb);
    width: var(--wx-vp-thumb);
    height: auto;
    min-height: var(--wx-vp-thumb);
    margin-top: 0;
}

.wx-variant-picker__main {
    min-height: 0;
    padding-right: 0;
    gap: 0;
}

.wx-variant-picker__controls {
    flex: 1 1 auto;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: space-between;
    gap: 8px;
}

.wx-variant-picker__field--spec,
.wx-variant-picker__field--qty {
    flex: 0 0 auto;
    width: 100%;
}

.wx-variant-picker__qtyrow {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.wx-variant-picker__qtyrow .wx-variant-picker__price {
    margin: 0;
    min-height: 0;
    white-space: nowrap;
}

.wx-variant-picker__amount {
    font-size: 18px;
}

.wx-variant-picker__buy {
    border: 1.5px solid var(--pos-highlight, var(--primary-color, var(--pos-btn-bg, #778ca3)));
    color: var(--pos-highlight, var(--primary-color, var(--pos-btn-bg, #778ca3)));
}

.wx-variant-picker__buy:hover:not(:disabled) {
    background: color-mix(in srgb, var(--pos-highlight, var(--primary-color, var(--pos-btn-bg, #778ca3))) 10%, #ffffff);
    border-color: var(--pos-highlight, var(--primary-color, var(--pos-btn-bg, #778ca3)));
}

.wx-variant-picker__buy:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}
