/* =========================================================
   Premium Winery POS – Wine Club tab
   Figma: Wine Club POS Integration (src_wine_club/index.css)
   Scoped to .main-pos-view-block.pos-new-design – js/pos_wine_club.js
   ========================================================= */

.pos-new-design .pos-wc-panel,
.pos-new-design .pos-wc-order { color: #11142d; }
/* Reset the site-wide `button` look (css/style.css: teal background, white text, fixed
   34px height/line-height, nowrap). :where() keeps it at class weight so every
   .pos-wc-* rule below still wins. */
.pos-new-design :where(.pos-wc-panel, .pos-wc-order) button {
    height: auto; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit;
    font-family: inherit; font-size: 13px; line-height: normal; white-space: normal; cursor: pointer; outline: none;
}
.pos-new-design :where(.pos-wc-panel, .pos-wc-order) button:focus-visible { outline: 3px solid #7f58d9; outline-offset: 2px; }
.pos-new-design :where(.pos-wc-panel, .pos-wc-order) button:disabled { cursor: not-allowed; }
.pos-new-design :where(.pos-wc-panel, .pos-wc-order) :where(h2, h3, p) { margin: 0; }
.pos-new-design .pos-wc-panel { display: flex; flex-direction: column; gap: 16px; }

/* tabs: locked state */
.pos-new-design .pos-mode-switcher .pos-mode-tab.pos-mode-locked { color: #9CA3AF !important; cursor: not-allowed !important; }
.pos-new-design .pos-mode-switcher .pos-wc-lock { font-size: 12px; }

/* loading / empty */
.pos-new-design .pos-wc-loading { padding: 60px 0; text-align: center; color: #8e92a8; font-size: 22px; }
.pos-new-design .pos-wc-empty { padding: 60px 20px; border-radius: 14px; background: #fff; text-align: center; color: #5c5f7a; }
.pos-new-design .pos-wc-empty i { font-size: 30px; color: #b7a3ed; }
.pos-new-design .pos-wc-empty p { margin-top: 10px; color: #11142d; font-weight: 700; }

/* list header */
.pos-new-design .pos-wc-list-header { min-height: 50px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.pos-new-design .pos-wc-list-header > div:first-child { display: flex; align-items: center; gap: 10px; }
.pos-new-design .pos-wc-list-header h2,
.pos-new-design .pos-wc-picker-title h2 { color: #00094e; font-size: 20px; line-height: 26px; font-weight: 900; }
.pos-new-design .pos-wc-count { padding: 3px 10px; border: 1px solid #e8e8e8; border-radius: 99px; background: #fff; color: #5c5f7a; font-size: 12px; }
.pos-new-design .pos-wc-filters { display: flex; gap: 4px; padding: 4px; border: 1px solid #e8e8e8; border-radius: 10px; background: #fff; }
.pos-new-design .pos-wc-filter { height: 36px; padding: 0 14px; border: 0; border-radius: 7px; background: transparent; color: #3f4260; font-size: 13px; font-weight: 700; }
.pos-new-design .pos-wc-filter.active { background: #00094e; color: #fff; }

/* club cards */
.pos-new-design .pos-wc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; align-items: start; }
.pos-new-design .pos-wc-card { padding: 16px; border: 1px solid #e8e8e8; border-radius: 14px; background: #fff; display: flex; flex-direction: column; gap: 14px; }
.pos-new-design .pos-wc-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.pos-new-design .pos-wc-badge { padding: 3px 9px; border-radius: 99px; font-size: 11px; line-height: 14px; font-weight: 700; }
.pos-new-design .pos-wc-badge.curated { background: #e8e9f3; color: #1a1f6b; }
.pos-new-design .pos-wc-badge.custom { background: #efeafb; color: #5a36b8; }
.pos-new-design .pos-wc-card h3 { color: #00094e; font-size: 17px; line-height: 21px; font-weight: 900; }
.pos-new-design .pos-wc-copy p { color: #5c5f7a; font-size: 13px; line-height: 19px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.pos-new-design .pos-wc-visual { height: 96px; border-radius: 10px; background: #f4f4f7; position: relative; overflow: hidden; }
.pos-new-design .pos-wc-visual-note { position: absolute; z-index: 3; top: 8px; left: 10px; padding: 3px 7px; border-radius: 99px; background: rgba(255,255,255,.92); color: #3f4260; font-size: 10px; }
.pos-new-design .pos-wc-bottles { height: 100%; display: flex; justify-content: center; align-items: flex-end; gap: 2px; padding-top: 22px; }
.pos-new-design .pos-wc-bottle { width: 34px; height: 70px; object-fit: contain; mix-blend-mode: multiply; }
.pos-new-design .pos-wc-cover { width: 100%; height: 100%; object-fit: cover; }
.pos-new-design .pos-wc-revealed { height: 100%; display: flex; align-items: center; justify-content: center; gap: 8px; color: #3c3f8a; font-size: 22px; }
.pos-new-design .pos-wc-revealed small { max-width: 90px; color: #5c5f7a; font-size: 11px; line-height: 14px; }
.pos-new-design .pos-wc-no-img { display: flex; align-items: center; justify-content: center; color: #b7a3ed; }

.pos-new-design .pos-wc-label-row { min-height: 24px; margin-bottom: 6px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #5c5f7a; font-size: 12px; }
.pos-new-design .pos-wc-label-row b { font-weight: 700; }
.pos-new-design .pos-wc-sizes { display: grid; grid-template-columns: repeat(auto-fit, minmax(48px, 1fr)); gap: 8px; }
.pos-new-design .pos-wc-size { height: 52px; border: 1px solid #d9dbe5; border-radius: 10px; background: #f7f8fa; color: #00094e; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.pos-new-design .pos-wc-size b { font-size: 15px; line-height: 18px; font-weight: 900; }
.pos-new-design .pos-wc-size span { color: #5c5f7a; font-size: 11px; }
.pos-new-design .pos-wc-size.selected { border-color: #00094e; background: #00094e; color: #fff; }
.pos-new-design .pos-wc-size.selected span { color: #fff; }
.pos-new-design .pos-wc-freqs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pos-new-design .pos-wc-freq { min-height: 66px; padding: 9px 10px; border: 1px solid #d9dbe5; border-radius: 10px; background: #fff; text-align: left; display: flex; flex-direction: column; gap: 1px; }
.pos-new-design .pos-wc-freq:hover { border-color: #7f58d9; }
.pos-new-design .pos-wc-freq > span { color: #3f4260; font-size: 11px; line-height: 16px; font-weight: 700; }
.pos-new-design .pos-wc-freq > span i { color: #2ebd85; }
.pos-new-design .pos-wc-freq > b { color: #00094e; font-size: 15px; line-height: 20px; font-weight: 900; white-space: nowrap; }
.pos-new-design .pos-wc-freq > b.discount { color: #6a44c9; }
.pos-new-design .pos-wc-freq small { color: #5c5f7a; font-size: 10px; line-height: 14px; }
.pos-new-design .pos-wc-freq.in-order { border-color: #7f58d9; box-shadow: 0 0 0 1px #7f58d9; background: #efeafb; }

/* custom club picker */
.pos-new-design .pos-wc-picker-header { padding: 16px 18px; border: 1px solid #e8e8e8; border-radius: 14px; background: #fff; display: flex; flex-direction: column; gap: 13px; }
.pos-new-design .pos-wc-picker-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pos-new-design .pos-wc-back { height: 44px; padding: 0 13px; border: 1px solid #d9dbe5; border-radius: 10px; background: #fff; color: #00094e; font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.pos-new-design .pos-wc-back i { font-size: 18px; }
.pos-new-design .pos-wc-picker-title { flex: 1; min-width: 160px; }
.pos-new-design .pos-wc-picker-title p { color: #5c5f7a; font-size: 13px; }
.pos-new-design .pos-wc-picker-chips { display: flex; gap: 7px; flex-wrap: wrap; }
.pos-new-design .pos-wc-picker-chips span { height: 32px; padding: 0 12px; border-radius: 99px; background: #eff0f4; color: #00094e; font-size: 12px; font-weight: 700; display: flex; align-items: center; }
.pos-new-design .pos-wc-picker-chips span:last-child { background: #efeafb; color: #5a36b8; }
.pos-new-design .pos-wc-progress-copy { display: flex; justify-content: space-between; color: #11142d; font-size: 13px; }
.pos-new-design .pos-wc-progress-copy span { color: #5c5f7a; }
.pos-new-design .pos-wc-progress-copy span.complete { color: #1c8a5f; font-weight: 700; }
.pos-new-design .pos-wc-progress { display: flex; gap: 4px; }
.pos-new-design .pos-wc-progress i { height: 8px; flex: 1; border-radius: 99px; background: #e3e4ec; transition: background .18s ease; }
.pos-new-design .pos-wc-progress i.filled { background: #7f58d9; }

.pos-new-design .pos-wc-wine-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.pos-new-design .pos-wc-wine { min-height: 280px; padding: 12px; border: 1px solid #e8e8e8; border-radius: 14px; background: #fff; display: flex; flex-direction: column; gap: 12px; }
.pos-new-design .pos-wc-wine.selected { border-color: #7f58d9; box-shadow: 0 0 0 1px #7f58d9; }
.pos-new-design .pos-wc-wine-image { height: 140px; border-radius: 10px; background: #f4f4f7; position: relative; overflow: hidden; display: flex; justify-content: center; align-items: center; }
.pos-new-design .pos-wc-wine-img { width: 100%; height: 128px; object-fit: contain; mix-blend-mode: multiply; font-size: 34px; }
.pos-new-design .pos-wc-qty-badge { position: absolute; z-index: 2; top: 8px; right: 8px; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 99px; background: #7f58d9; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 900; }
.pos-new-design .pos-wc-wine-copy { min-height: 52px; }
.pos-new-design .pos-wc-wine-copy h3 { color: #11142d; font-size: 14px; line-height: 19px; font-weight: 700; }
.pos-new-design .pos-wc-wine-copy p { color: #5c5f7a; font-size: 12px; line-height: 16px; margin-top: 2px; }
.pos-new-design .pos-wc-wine-copy p.pos-wc-wine-max { color: #8e92a8; font-size: 11px; }
.pos-new-design .pos-wc-wine-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pos-new-design .pos-wc-wine-bottom > b { color: #00094e; font-size: 15px; font-weight: 900; }
.pos-new-design .pos-wc-add { height: 44px; padding: 0 13px; border: 0; border-radius: 10px; background: #00094e; color: #fff; display: flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; }
.pos-new-design .pos-wc-add:disabled { background: #e8e8e8; color: #8e92a8; }
.pos-new-design .pos-wc-stepper { height: 44px; border: 1px solid #d9dbe5; border-radius: 10px; display: grid; grid-template-columns: 36px 25px 36px; align-items: center; overflow: hidden; }
.pos-new-design .pos-wc-stepper button { height: 100%; border: 0; background: #fff; color: #00094e; }
.pos-new-design .pos-wc-stepper button:disabled { color: #8e92a8; background: #f7f8fa; }
.pos-new-design .pos-wc-stepper > b { text-align: center; font-size: 13px; }

/* right panel */
.pos-new-design .pos-wc-order { height: 93%; border-radius: 14px; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.pos-new-design .pos-wc-order.hide { display: none; }
.pos-new-design .pos-wc-order-head { min-height: 70px; padding: 18px 22px; border-bottom: 1px solid #e8e8e8; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pos-new-design .pos-wc-order-head h2 { color: #11142d; font-size: 20px; line-height: 26px; font-weight: 900; }
.pos-new-design .pos-wc-order-head p { color: #5c5f7a; font-size: 13px; }
.pos-new-design .pos-wc-eyebrow { display: block; color: #5c5f7a; font-size: 12px; line-height: 16px; font-weight: 700; }
.pos-new-design .pos-wc-eyebrow + h2 { color: #00094e; }
.pos-new-design .pos-wc-order-pill { padding: 4px 10px; border-radius: 99px; background: #efeafb; color: #5a36b8; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pos-new-design .pos-wc-empty-order { flex: 1; padding: 80px 20px 40px; color: #b7a3ed; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.pos-new-design .pos-wc-empty-order i { font-size: 34px; }
.pos-new-design .pos-wc-empty-order b { color: #11142d; font-size: 14px; }
.pos-new-design .pos-wc-empty-order p { max-width: 200px; color: #5c5f7a; font-size: 13px; line-height: 19px; }

.pos-new-design .pos-wc-order-body { flex: 1; padding: 16px 22px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.pos-new-design .pos-wc-order-club { border: 1px solid #e3e4ec; border-radius: 12px; overflow: hidden; }
.pos-new-design .pos-wc-order-club-head { padding: 14px 12px 14px 16px; background: #f7f8fa; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pos-new-design .pos-wc-order-club-head h3 { color: #00094e; font-size: 16px; font-weight: 900; margin-bottom: 7px; }
.pos-new-design .pos-wc-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.pos-new-design .pos-wc-chips span { padding: 3px 7px; border: 1px solid #d9dbe5; border-radius: 99px; background: #fff; color: #3f4260; font-size: 10px; font-weight: 700; }
.pos-new-design .pos-wc-trash { width: 40px; height: 40px; flex: none; border: 0; border-radius: 8px; background: transparent; color: #c42f35; font-size: 17px; }
.pos-new-design .pos-wc-order-lines { padding: 6px 16px 10px; }
.pos-new-design .pos-wc-order-lines > p { padding: 14px 0; color: #5c5f7a; font-size: 13px; line-height: 19px; }
.pos-new-design .pos-wc-order-lines > div { min-height: 50px; border-bottom: 1px solid #eff0f4; display: flex; align-items: center; gap: 9px; font-size: 12px; }
.pos-new-design .pos-wc-order-lines > div:last-child { border-bottom: 0; }
.pos-new-design .pos-wc-order-lines > div span { flex: 1; }
.pos-new-design .pos-wc-tiny { width: 24px; height: 38px; display: flex; justify-content: center; }
.pos-new-design .pos-wc-tiny-img { width: 24px; height: 38px; object-fit: contain; mix-blend-mode: multiply; }
.pos-new-design .pos-wc-info { padding: 10px 12px; border-radius: 10px; background: #f3f4fe; color: #3f4260; display: flex; align-items: flex-start; gap: 8px; font-size: 12px; line-height: 17px; }
.pos-new-design .pos-wc-info i { color: #3b82f6; font-size: 15px; margin-top: 1px; }

.pos-new-design .pos-wc-selection { flex: 1; padding: 4px 22px 8px; overflow-y: auto; }
.pos-new-design .pos-wc-empty-selection { padding: 28px 0 !important; color: #5c5f7a; font-size: 13px; line-height: 19px; }
.pos-new-design .pos-wc-sel-line { min-height: 84px; padding: 12px 0; border-bottom: 1px solid #eff0f4; display: flex; align-items: flex-start; gap: 10px; }
.pos-new-design .pos-wc-thumb { width: 40px; height: 56px; border-radius: 8px; background: #f4f4f7; flex: none; display: flex; justify-content: center; overflow: hidden; }
.pos-new-design .pos-wc-thumb-img { width: 32px; height: 52px; margin-top: 2px; object-fit: contain; mix-blend-mode: multiply; }
.pos-new-design .pos-wc-sel-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pos-new-design .pos-wc-sel-name > b { overflow: hidden; text-overflow: ellipsis; color: #11142d; font-size: 12px; white-space: nowrap; }
.pos-new-design .pos-wc-sel-name > span { color: #5c5f7a; font-size: 11px; }
.pos-new-design .pos-wc-line-total { width: 70px; text-align: right; color: #3f4260; font-size: 12px; }
.pos-new-design .pos-wc-mini-stepper { width: 88px; height: 28px; margin-top: 6px; border: 1px solid #d9dbe5; border-radius: 7px; display: grid; grid-template-columns: 28px 30px 28px; overflow: hidden; }
.pos-new-design .pos-wc-mini-stepper button { border: 0; background: #fff; font-size: 10px; }
.pos-new-design .pos-wc-mini-stepper button:disabled { color: #8e92a8; background: #f7f8fa; }
.pos-new-design .pos-wc-mini-stepper b { display: flex; align-items: center; justify-content: center; font-size: 11px; }

.pos-new-design .pos-wc-summary { padding: 16px 22px; border-top: 1px solid #e8e8e8; background: #f7f8fa; display: flex; flex-direction: column; gap: 8px; }
.pos-new-design .pos-wc-summary > div { display: flex; justify-content: space-between; gap: 12px; color: #3f4260; font-size: 13px; }
.pos-new-design .pos-wc-summary .green { color: #1c8a5f; }
.pos-new-design .pos-wc-summary .pos-wc-total,
.pos-new-design .pos-wc-summary .pos-wc-shipment { margin-top: 6px; padding-top: 12px; border-top: 1px solid #e3e4ec; color: #11142d; align-items: baseline; font-size: 17px; font-weight: 900; }
.pos-new-design .pos-wc-summary .pos-wc-total b { color: #00094e; font-size: 24px; }
.pos-new-design .pos-wc-summary .pos-wc-shipment b { color: #00094e; font-size: 22px; }
.pos-new-design .pos-wc-summary small { color: #5c5f7a; font-size: 11px; }

.pos-new-design .pos-wc-draft-actions { padding: 14px 22px 18px; display: flex; flex-direction: column; gap: 5px; }
.pos-new-design .pos-wc-primary { height: 52px; border: 0; border-radius: 10px; background: #00094e; color: #fff; font-size: 14px; font-weight: 900; }
.pos-new-design .pos-wc-primary:disabled { background: #e8e8e8; color: #5c5f7a; }
.pos-new-design .pos-wc-text-button { height: 40px; border: 0; background: transparent; color: #3f4260; font-size: 13px; font-weight: 700; }

.pos-new-design .pos-wc-actions { margin-top: auto; padding: 14px 22px 18px; border-top: 1px solid #e8e8e8; display: grid; grid-template-columns: 1fr 1fr 1.35fr; gap: 8px; }
.pos-new-design .pos-wc-actions button { height: 48px; border: 1px solid #d9dbe5; border-radius: 10px; background: #fff; color: #3f4260; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 6px; }
.pos-new-design .pos-wc-actions .pos-wc-checkout { border-color: #00094e; background: #00094e; color: #fff; }
.pos-new-design .pos-wc-actions button:disabled { border-color: #e8e8e8; background: #e8e8e8; color: #8e92a8; }

@media (max-width: 768px) {
    .pos-new-design .pos-wc-order { height: auto; min-height: 420px; }
    .pos-new-design .pos-wc-grid,
    .pos-new-design .pos-wc-wine-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .pos-new-design .pos-wc-freqs { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .pos-new-design .pos-wc-progress i { transition: none; }
}

/* --- Products / Wine Club switcher (same look as the branch's pos_bookings.css) --- */
.pos-new-design .pos-mode-switcher {
    display: flex !important;
    gap: 4px !important;
    padding: 4px !important;
    background: #FFFFFF !important;
    border-radius: 12px !important;
    border: 1.5px solid rgba(0,0,0,0.06) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05) !important;
    flex-shrink: 0 !important;
}
.pos-new-design .pos-mode-switcher .pos-mode-tab {
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    height: 40px !important;
    border: none !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #6B7280 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.15s, color 0.15s !important;
}
.pos-new-design .pos-mode-switcher .pos-mode-tab.active {
    background: #0F1B3D !important;
    color: #FFFFFF !important;
}
.pos-new-design .pos-mode-switcher .pos-mode-badge {
    font-size: 10px !important;
    font-weight: 700 !important;
    border-radius: 999px !important;
    padding: 1px 6px !important;
    min-width: 18px !important;
    background: #0F1B3D !important;
    color: #FFFFFF !important;
}
.pos-new-design .pos-mode-switcher .pos-mode-tab.active .pos-mode-badge {
    background: rgba(255,255,255,0.25) !important;
}
.pos-new-design .pos-mode-switcher .pos-mode-badge.hide {
    display: none !important;
}
.pos-new-design .pos-mode-panel {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
    min-height: 0 !important;
}
.pos-new-design .pos-mode-panel.hide {
    display: none !important;
}

/* --- POS checkout: wine club card (pos_checkout.php .pos-checkout-clubs) --- */
.pw-pos-figma .pos-checkout-clubs {
    margin-top: 16px;
}
.pw-pos-figma .cart-product-image.pos-addon-cart-icon {
    width: 40px !important;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #4A7B9D18;
    color: #4A7B9D;
    font-size: 17px;
}
.pw-pos-figma .pos-addon-cart-qty {
    font-size: 13px;
    font-weight: 600;
    color: var(--pw-text);
    white-space: nowrap;
}
.pw-pos-figma .pos-booking-cart-note {
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: var(--pw-muted);
}

/* --- Stripe payment page (stripe_payment.php): wine club in the Order Summary --- */
.order-details-view.pos-booking-summary-row {
    display: flex;
    align-items: center;
}
.order-details-view .pos-booking-summary-icon {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #EEF0F5;
    color: #0F1B3D;
    font-size: 17px;
    flex-shrink: 0;
}
.pos-search-disabled {
    opacity: 0.4;
    pointer-events: none;
}
