/* ===================================================================== */
/* Vend Machine dialogs. The markup is built in items.js                  */
/* (ensureVendConfigModal / ensureVendBuyModal); this sheet is loaded     */
/* after corecraftia-ui.css and restyles those dialogs to match the       */
/* Drop / Region Lock / Name Changer family. Presentation only.           */
/* ===================================================================== */

body .vend-picker-overlay,
body .vend-buy-overlay,
body .vend-confirm-overlay{
  background:
    radial-gradient(circle at 20% 0%, rgba(73, 168, 255, 0.18), transparent 28%),
    radial-gradient(circle at 80% 0%, rgba(34, 199, 255, 0.12), transparent 24%),
    rgba(2, 10, 18, 0.78);
  font-family: Georgia, "Times New Roman", serif;
  /* no blur behind the window; the game stays sharp, only dimmed */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

/* ---- frame ---- */
body .vend-picker-modal,
body .vend-buy-modal,
body .vend-confirm-modal{
  overflow: visible;
  border: 4px solid #2f93ff;
  border-radius: 22px;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(90, 170, 255, 0.22), transparent 60%),
    linear-gradient(180deg, #123c72 0%, #0b2750 52%, #081b38 100%);
  box-shadow:
    0 0 0 2px #082f66,
    0 18px 44px rgba(0, 0, 0, 0.6),
    inset 0 0 0 1px rgba(150, 210, 255, 0.35),
    inset 0 3px 0 rgba(255, 255, 255, 0.08);
}
body .vend-picker-modal::before,
body .vend-buy-modal::before,
body .vend-confirm-modal::before{ display: none; }
body .vend-picker-modal{
  width: min(980px, 96vw);
  margin-top: 26px;
  max-height: min(740px, calc(100dvh - 28px - 30px));
}
body .vend-buy-modal{ margin-top: 26px; }
body .vend-dlg, body .vend-dlg *{ box-sizing: border-box; }
body .vend-defs{ position: absolute; width: 0; height: 0; overflow: hidden; }
body .vend-leaves{
  position: absolute;
  z-index: 6;
  width: 62px;
  height: 48px;
  overflow: visible;
  pointer-events: none;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.35));
}
body .vend-leaves-tl{ left: -22px; top: -20px; }
body .vend-leaves-bl{ left: -22px; bottom: -22px; transform: scaleY(-1); }
body .vend-leaves-br{ right: -22px; bottom: -22px; transform: scale(-1, -1); }

/* ---- header: wooden sign + red X ---- */
body .vend-picker-head,
body .vend-buy-head{
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
  margin: -24px 52px 8px 18px;
  padding: 0;
  border: 0;
  background: none;
}
body .vend-modal-heading{
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  gap: 0;
  min-height: 56px;
  padding: 6px 20px 8px 84px;
  border: 3px solid #4a2a10;
  border-radius: 10px;
  background:
    repeating-linear-gradient(92deg, rgba(60, 28, 6, 0) 0 22px, rgba(60, 28, 6, 0.16) 22px 24px),
    linear-gradient(180deg, #d79a58 0%, #b87438 52%, #8d5226 100%);
  box-shadow: 0 4px 0 #2a1507, inset 0 3px 0 rgba(255, 233, 190, 0.45), inset 0 -4px 0 rgba(60, 28, 6, 0.35);
}
body .vend-modal-mark{
  position: absolute;
  left: 10px;
  top: 50%;
  display: block;
  width: 64px;
  height: 64px;
  flex: none;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  transform: translateY(-52%) rotate(-4deg);
  filter: drop-shadow(0 3px 0 rgba(30, 14, 4, 0.55));
}
body .vend-modal-heading h3{
  margin: 0;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #ffd34a;
  -webkit-text-stroke: 5px #3b1c05;
  paint-order: stroke fill;
  text-shadow: 0 4px 0 rgba(30, 12, 2, 0.85);
}
body .vend-modal-heading p{
  margin: 3px 0 0;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  color: #fff;
  -webkit-text-stroke: 3px #1b1006;
  paint-order: stroke fill;
  text-shadow: 0 2px 0 rgba(20, 10, 2, 0.7);
}
body .vend-picker-close,
body .vend-buy-close{
  position: absolute;
  top: -8px;
  right: -44px;
  z-index: 7;
  width: 38px;
  height: 38px;
  flex: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #fff;
  border-radius: 10px;
  background: linear-gradient(180deg, #ff6a5c 0%, #d3201a 52%, #a31410 100%);
  box-shadow: 0 0 0 2px #4a1210, 0 4px 8px rgba(0, 0, 0, 0.5), inset 0 3px 0 rgba(255, 255, 255, 0.4);
  color: #fff;
  font: 900 20px/1 Georgia, serif;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.6);
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease;
}
body .vend-picker-close:hover,
body .vend-buy-close:hover{ transform: scale(1.08); filter: brightness(1.12); color: #fff; border-color: #fff; background: linear-gradient(180deg, #ff6a5c 0%, #d3201a 52%, #a31410 100%); }
body .vend-picker-close:active,
body .vend-buy-close:active{ transform: scale(0.94); }

/* ---- layout ---- */
body .vend-picker-layout{
  min-height: 0;
  margin: 0 14px;
  gap: 12px;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.8fr);
}
body .vend-picker-main,
body .vend-picker-side{
  border: 2px solid rgba(120, 190, 255, 0.3);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(4, 14, 32, 0.7), rgba(6, 20, 42, 0.55));
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.35);
}
body .vend-picker-main{ padding: 12px; }
body .vend-picker-side{ padding: 12px 12px 10px; scrollbar-color: #2f93ff rgba(0, 0, 0, 0.25); scrollbar-width: thin; }

/* ---- search ---- */
body .vend-picker-search-icon{ left: 14px; font-size: 20px; color: #8fd2ff; }
body .vend-picker-search{
  height: 42px;
  padding: 0 88px 0 42px;
  border: 3px solid #4aa8ff;
  border-radius: 14px;
  background: linear-gradient(180deg, #06193a, #0a2347);
  box-shadow: inset 0 3px 7px rgba(0, 0, 0, 0.6);
  color: #f4fbff;
  font: 700 14px/1 Georgia, serif;
}
body .vend-picker-search:focus{ border-color: #8fd2ff; box-shadow: 0 0 10px rgba(80, 170, 255, 0.6), inset 0 3px 7px rgba(0, 0, 0, 0.6); }
body .vend-picker-search::placeholder{ color: rgba(190, 226, 245, 0.55); }
body .vend-picker-count{ right: 14px; font-size: 12px; font-weight: 800; color: #9fd0ff; }

/* ---- inventory grid ---- */
body .vend-picker-grid{
  gap: 8px;
  padding: 2px 6px 6px 2px;
  scrollbar-color: #2f93ff rgba(0, 0, 0, 0.25);
  overscroll-behavior: contain;
}
body .vend-picker-item{
  min-height: 112px;
  gap: 6px;
  border: 2px solid rgba(110, 170, 235, 0.38);
  border-radius: 12px;
  background: linear-gradient(180deg, #123564, #0a2146);
  box-shadow: 0 3px 0 #061a38, inset 0 2px 0 rgba(255, 255, 255, 0.08);
  font-family: Georgia, serif;
}
body .vend-picker-item:hover{
  transform: translateY(-2px);
  border-color: #6fc4ff;
  background: linear-gradient(180deg, #1a4a86, #0e2d5c);
  box-shadow: 0 5px 0 #061a38, 0 0 12px rgba(80, 170, 255, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.12);
}
body .vend-picker-item.active{
  border-color: #ffd34a;
  background: linear-gradient(180deg, #2a4f86, #14305c);
  box-shadow: 0 3px 0 #061a38, 0 0 0 2px rgba(255, 211, 74, 0.35), 0 0 14px rgba(255, 211, 74, 0.45), inset 0 2px 0 rgba(255, 255, 255, 0.14);
}
body .vend-picker-item .item-label{ color: #fff; font-size: 12px; font-weight: 800; }
body .vend-picker-item .item-quantity{
  top: 5px;
  right: 5px;
  padding: 1px 6px 2px;
  border: 1px solid rgba(140, 200, 255, 0.45);
  border-radius: 8px;
  background: #061a38;
  color: #cfe9ff;
  font-size: 10px;
  font-weight: 900;
}
body .vend-picker-empty{ color: rgba(214, 235, 250, 0.7); font-weight: 700; }

/* ---- section banners ---- */
body .vend-section-title{
  display: inline-block;
  margin: 0 0 8px;
  padding: 3px 14px 4px;
  border: 2px solid #4a2a10;
  border-radius: 7px;
  background: linear-gradient(180deg, #d79a58 0%, #b87438 52%, #8d5226 100%);
  box-shadow: 0 2px 0 #2a1507, inset 0 2px 0 rgba(255, 233, 190, 0.4);
  color: #fff;
  -webkit-text-stroke: 3px #3b1c05;
  paint-order: stroke fill;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 2px 0 rgba(30, 12, 2, 0.7);
}

/* ---- selected item ---- */
body .vend-picker-selected-card{
  gap: 12px;
  min-height: 80px;
  padding: 10px 12px;
  border: 2px solid rgba(120, 190, 255, 0.42);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(8, 26, 54, 0.9), rgba(6, 20, 42, 0.8));
}
body .vend-picker-selected-icon{
  border: 2px solid #3aa0ff;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 40%, rgba(58, 160, 255, 0.3), transparent 72%),
    linear-gradient(180deg, #15264e, #0a1431);
  box-shadow: 0 0 10px rgba(58, 160, 255, 0.3), inset 0 0 0 2px rgba(0, 0, 0, 0.45);
}
body .vend-picker-selected strong{ color: #fff; font-size: 16px; font-weight: 900; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.55); }
body .vend-picker-selected > span:not(.vend-picker-placeholder){ color: #8fd2ff; font-size: 12px; font-weight: 800; }
body .vend-picker-placeholder{ color: rgba(190, 226, 245, 0.6); font-size: 13px; font-weight: 700; }

/* ---- deal settings ---- */
body .vend-picker-controls{ gap: 10px; margin: 0 0 12px; }
body .vend-picker-controls label,
body .vend-picker-wl-amount-label{ gap: 3px; color: #fff; font-size: 12px; font-weight: 900; }
body .vend-picker-controls label small{ color: rgba(190, 226, 245, 0.65); font-size: 10px; font-weight: 700; }
body .vend-num{ position: relative; display: block; width: 100%; }
body .vend-num > input{ padding-right: 34px !important; }
body .vend-num-btns{ position: absolute; right: 4px; top: 50%; display: flex; flex-direction: column; gap: 2px; transform: translateY(-46%); }
body .vend-num-btn{
  width: 24px;
  height: 14px;
  padding: 0;
  border: 1px solid #0b3a80;
  border-radius: 4px;
  background: linear-gradient(180deg, #4aa8ff, #1757bd);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  color: #fff;
  font-size: 8px;
  line-height: 12px;
  cursor: pointer;
}
body .vend-num-btn:hover{ filter: brightness(1.15); }
body .vend-num-btn:active{ transform: translateY(1px); }
body .vend-num:has(input:disabled) .vend-num-btns{ opacity: 0.4; pointer-events: none; }
body .vend-picker-controls input,
body .vend-picker-controls select,
body .vend-picker-withdraw-amount{
  height: 38px;
  margin-top: 1px;
  border: 3px solid #4aa8ff;
  border-radius: 11px;
  background: linear-gradient(180deg, #06193a, #0a2347);
  box-shadow: inset 0 3px 7px rgba(0, 0, 0, 0.6);
  color: #f4fbff;
  font: 800 14px/1 Georgia, serif;
  -moz-appearance: textfield;
  appearance: textfield;
}
body .vend-picker-controls input::-webkit-outer-spin-button,
body .vend-picker-controls input::-webkit-inner-spin-button,
body .vend-picker-withdraw-amount::-webkit-outer-spin-button,
body .vend-picker-withdraw-amount::-webkit-inner-spin-button{ -webkit-appearance: none; margin: 0; }
body .vend-picker-controls select{
  -webkit-appearance: none;
  appearance: none;
  padding-right: 34px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 12'%3E%3Cpath d='M2 2l8 8 8-8' fill='none' stroke='%23ffd34a' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 12px center / 14px 9px,
    linear-gradient(180deg, #06193a, #0a2347);
  cursor: pointer;
}
body .vend-picker-controls select option{ background: #0a2347; color: #fff; }
body .vend-picker-controls input:focus,
body .vend-picker-controls select:focus,
body .vend-picker-withdraw-amount:focus{ border-color: #8fd2ff; box-shadow: 0 0 10px rgba(80, 170, 255, 0.6), inset 0 3px 7px rgba(0, 0, 0, 0.6); }
body .vend-picker-stock-text{
  padding: 7px 10px;
  border: 2px solid rgba(120, 190, 255, 0.35);
  border-radius: 10px;
  background: rgba(4, 14, 32, 0.7);
  color: #cfe9ff;
  font-size: 13px;
  font-weight: 900;
}

/* ---- live deal preview ---- */
body .vend-picker-preview{
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 2px solid #ffd34a;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(120, 76, 8, 0.45), rgba(59, 42, 8, 0.4));
  box-shadow: inset 0 0 10px rgba(255, 211, 74, 0.12);
  color: #ffe9a0;
  font-size: 13px;
  font-weight: 900;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.5);
}
body .vend-picker-preview.is-empty{ border-color: rgba(120, 190, 255, 0.3); background: rgba(4, 14, 32, 0.6); color: rgba(190, 226, 245, 0.65); text-shadow: none; font-weight: 800; }

/* ---- world locks / earnings ---- */
body .vend-picker-wl{
  padding: 10px 12px;
  border: 2px solid rgba(120, 190, 255, 0.42);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(8, 26, 54, 0.9), rgba(6, 20, 42, 0.8));
}
body .vend-picker-wl-title{ display: flex !important; flex-direction: row !important; align-items: center; gap: 10px !important; min-width: 0; }
body .vend-wl-ico{ flex: 0 0 auto; display: block; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, 0.5)); transform: scale(0.8); transform-origin: left center; margin-right: -6px; }
body .vend-picker-wl-text{ display: flex; flex-direction: column; gap: 2px; min-width: 0; }
body .vend-picker-wl-head > span{ color: #fff; font-size: 13px; }
body .vend-picker-wl-head small{ color: rgba(190, 226, 245, 0.7); font-size: 10px; font-weight: 700; }
body .vend-picker-wl-balance{
  padding: 5px 12px 6px;
  border: 2px solid #ffd34a;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(120, 76, 8, 0.7), rgba(59, 42, 8, 0.7));
  color: #ffe9a0;
  font-size: 17px;
  font-weight: 900;
  text-shadow: 0 2px 0 rgba(0, 0, 0, 0.55);
}
body .vend-picker-wl-mode{ margin: 10px 0 6px; gap: 10px; color: #fff; font-size: 13px; font-weight: 800; }
body .vend-picker-wl-mode input{
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  margin: 0;
  border: 3px solid #4aa8ff;
  border-radius: 7px;
  background: linear-gradient(180deg, #06193a, #0a2347);
  box-shadow: inset 0 3px 6px rgba(0, 0, 0, 0.6);
  cursor: pointer;
}
body .vend-picker-wl-mode input:checked{
  border-color: #cfe9ff;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7' fill='none' stroke='white' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat,
    linear-gradient(180deg, #5ab4ff 0%, #2677e6 50%, #1757bd 100%);
}
body .vend-picker-wl-mode input:focus-visible{ outline: 2px solid #ffe27a; outline-offset: 2px; }
body .vend-picker-withdraw-amount:disabled{ opacity: 0.45; }

/* ---- action buttons ---- */
body .vend-picker-actions,
body .vend-buy-actions,
body .vend-confirm-actions{
  position: relative;
  z-index: 2;
  flex: 0 0 auto;
  gap: 12px;
  padding: 12px 16px 14px;
  border: 0;
  background: none;
}
body .vend-picker-actions button,
body .vend-buy-actions button,
body .vend-confirm-actions button{
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px 3px;
  border: 3px solid #0b2c5e;
  border-radius: 13px;
  font: 900 15px/1.05 Georgia, serif;
  letter-spacing: 0.02em;
  color: #fff !important;
  text-shadow: 0 2px 0 rgba(0, 20, 60, 0.85);
  white-space: nowrap;
  cursor: pointer;
  background: linear-gradient(180deg, #4aa6ff 0%, #2677e6 50%, #1757bd 100%);
  box-shadow: 0 0 0 2px #061a38, 0 5px 0 2px #061a38, inset 0 3px 0 rgba(255, 255, 255, 0.45);
  transition: transform 120ms ease, filter 120ms ease;
}
body .vend-picker-actions button::before,
body .vend-buy-actions button::before,
body .vend-confirm-actions button::before{
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 40%);
  pointer-events: none;
}
body .vend-picker-save,
body .vend-buy-confirm,
body .vend-confirm-ok{
  border-color: #0b4a1a !important;
  background: linear-gradient(180deg, #7dff6a 0%, #2fd13f 48%, #139a28 100%) !important;
  box-shadow: 0 0 0 2px #062a10, 0 5px 0 2px #062a10, inset 0 3px 0 rgba(255, 255, 255, 0.5) !important;
  text-shadow: 0 2px 0 rgba(0, 60, 10, 0.85) !important;
}
body .vend-picker-clear{
  border-color: #3a0716 !important;
  background: linear-gradient(180deg, #d9406e 0%, #a91c45 50%, #741230 100%) !important;
  box-shadow: 0 0 0 2px #230510, 0 5px 0 2px #230510, inset 0 3px 0 rgba(255, 255, 255, 0.35) !important;
  color: #fff !important;
  text-shadow: 0 2px 0 rgba(60, 4, 20, 0.85);
}
body .vend-btn-ico{ width: 20px; height: 20px; flex: 0 0 auto; filter: drop-shadow(0 2px 0 rgba(60, 4, 20, 0.8)); }
body .vend-save-ico{ flex: 0 0 auto; display: block; margin: -6px 0 -6px -6px; transform: scale(0.8); filter: drop-shadow(0 2px 0 rgba(0, 40, 10, 0.7)); }
body .vend-picker-actions button:hover:not(:disabled),
body .vend-buy-actions button:hover:not(:disabled),
body .vend-confirm-actions button:hover:not(:disabled){ filter: brightness(1.1); transform: translateY(-2px); }
body .vend-picker-actions button:active:not(:disabled),
body .vend-buy-actions button:active:not(:disabled),
body .vend-confirm-actions button:active:not(:disabled){ filter: brightness(0.94); transform: translateY(2px) scale(0.985); }
body .vend-picker-actions button:disabled,
body .vend-buy-actions button:disabled{ opacity: 0.5; filter: grayscale(0.55) brightness(0.85); cursor: not-allowed; }
body .vend-picker-actions button:focus-visible,
body .vend-buy-actions button:focus-visible,
body .vend-confirm-actions button:focus-visible,
body .vend-picker-close:focus-visible,
body .vend-buy-close:focus-visible,
body .vend-picker-item:focus-visible{ outline: 3px solid #ffe27a; outline-offset: 2px; }

/* ---- buy + confirm dialogs: same cards and fields ---- */
body .vend-buy-item{
  margin: 6px 16px 14px;
  border: 2px solid rgba(120, 190, 255, 0.42);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(8, 26, 54, 0.9), rgba(6, 20, 42, 0.8));
}
body .vend-buy-item-icon{ border: 2px solid #3aa0ff; border-radius: 12px; background: linear-gradient(180deg, #15264e, #0a1431); }
body .vend-buy-item-name{ font-size: 18px; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.55); }
body .vend-buy-item-meta{ color: #cfe6ff; font-size: 12px; font-weight: 700; }
body .vend-buy-stock{ border: 1px solid rgba(120, 190, 255, 0.3); color: #cfe6ff; font-size: 11px; font-weight: 800; }
body .vend-buy-qty-wrap{ margin: 0 16px; color: #fff; font-size: 13px; font-weight: 900; }
body .vend-buy-stepper button,
body .vend-buy-qty{
  height: 42px;
  border: 3px solid #4aa8ff;
  border-radius: 11px;
  background: linear-gradient(180deg, #06193a, #0a2347);
  box-shadow: inset 0 3px 7px rgba(0, 0, 0, 0.6);
  color: #f4fbff;
  font: 900 15px/1 Georgia, serif;
}
body .vend-buy-stepper button:not(.vend-buy-max){ border-color: #0b3a80; background: linear-gradient(180deg, #4aa8ff, #1757bd); box-shadow: inset 0 3px 0 rgba(255, 255, 255, 0.45); }
body .vend-buy-stepper button:hover{ border-color: #8fd2ff; filter: brightness(1.12); }
body .vend-buy-max{ color: #ffd34a !important; font-size: 12px !important; }
body .vend-buy-preview{
  margin: 14px 16px 6px;
  border: 2px solid #ffd34a;
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(120, 76, 8, 0.45), rgba(59, 42, 8, 0.4));
  color: #ffe9a0;
  font-size: 13px;
  font-weight: 900;
}
body .vend-buy-preview.is-error{ border-color: #d3301f; background: linear-gradient(180deg, rgba(110, 14, 14, 0.85), rgba(62, 8, 10, 0.9)); color: #ffd0c8; }
body .vend-confirm-modal{ width: min(420px, 92vw); padding: 26px 26px 0; margin-top: 0; }
body .vend-confirm-icon{ border: 3px solid #ffd34a; border-radius: 18px; color: #ffe9a0; font-family: Georgia, serif; }
body .vend-confirm-title{ font-size: 21px; text-shadow: 0 2px 0 rgba(0, 0, 0, 0.55); }
body .vend-confirm-text{ color: #cfe6ff; font-size: 13px; font-weight: 700; }
body .vend-confirm-actions{ margin: 0 -26px; }

/* ---- phones: full-height sheet, stacked columns ---- */
@media (max-width: 760px){
  body .vend-picker-overlay{ align-items: stretch; }
  body .vend-picker-modal{ width: 100%; height: 100%; max-height: none; margin-top: 0; border-radius: 16px; }
  body .vend-picker-head,
  body .vend-buy-head{ margin: 10px 46px 8px 10px; }
  body .vend-modal-heading{ min-height: 46px; padding: 4px 10px 6px 62px; }
  body .vend-modal-mark{ left: 6px; width: 48px; height: 48px; }
  body .vend-modal-mark > span{ transform: scale(0.75); transform-origin: top left; display: block; }
  body .vend-modal-heading h3{ font-size: 18px; -webkit-text-stroke-width: 4px; }
  body .vend-picker-close,
  body .vend-buy-close{ top: -2px; right: -38px; width: 34px; height: 34px; }
  body .vend-picker-layout{ margin: 0 8px; gap: 8px; grid-template-columns: 1fr; overflow: auto; }
  body .vend-picker-main{ min-height: 330px; padding: 10px; border-right: 2px solid rgba(120, 190, 255, 0.3); }
  body .vend-picker-grid{ grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); max-height: 42dvh; min-height: 230px; }
  body .vend-picker-item{ min-height: 104px; }
  body .vend-picker-side{ overflow: visible; padding: 10px; }
  body .vend-picker-actions{ padding: 10px 10px 12px; gap: 8px; }
  body .vend-picker-actions button{ min-width: 0; padding: 0 12px 3px; font-size: 13px; }
  body .vend-picker-save{ margin-left: auto; }
  body .vend-leaves-tl{ left: -10px; top: -10px; }
  body .vend-leaves-bl{ left: -10px; bottom: -12px; }
  body .vend-leaves-br{ right: -10px; bottom: -12px; }
}
@media (max-width: 420px){
  body .vend-picker-controls{ grid-template-columns: 1fr; }
  body .vend-picker-actions button span:not(.vend-save-ico){ font-size: 12px; }
  body .vend-picker-clear span{ display: none; }
  body .vend-buy-modal{ width: 100%; margin-top: 18px; }
}
@media (prefers-reduced-motion: reduce){
  body .vend-picker-item,
  body .vend-picker-actions button,
  body .vend-buy-actions button,
  body .vend-confirm-actions button{ transition: none; }
}

/* ---- Display Block picker (reuses the Vend frame, grid and buttons) ---- */
body :is(.is-display-block, .is-mannequin) .vend-picker-modal{ width: min(900px, 96vw); }
body :is(.is-display-block, .is-mannequin) .display-picker-layout{ display: flex; flex-direction: column; grid-template-columns: none; min-height: 0; }
body :is(.is-display-block, .is-mannequin) .vend-picker-main{ flex: 1 1 auto; min-height: 0; }
body :is(.is-display-block, .is-mannequin) .vend-picker-toprow{ flex: 0 0 auto; }
body :is(.is-display-block, .is-mannequin) .vend-picker-search{ padding-right: 14px; }
body :is(.is-display-block, .is-mannequin) .vend-picker-grid{ flex: 1 1 auto; min-height: 220px; }
body :is(.is-display-block, .is-mannequin) .display-picker-sub{
  flex: 0 0 auto;
  margin: 0 0 10px;
  padding: 8px 12px;
  border: 2px solid rgba(120, 190, 255, 0.42);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(8, 26, 54, 0.9), rgba(6, 20, 42, 0.8));
  color: #cfe9ff;
  font-size: 13px;
  font-weight: 800;
  overflow-wrap: anywhere;
}
body :is(.is-display-block, .is-mannequin) .vend-picker-clear:disabled{ opacity: 0.5; filter: grayscale(0.55) brightness(0.85); cursor: not-allowed; }
@media (max-width: 760px){
  body :is(.is-display-block, .is-mannequin) .vend-picker-modal{ width: 100%; }
  body :is(.is-display-block, .is-mannequin) .vend-picker-main{ min-height: 0; }
  body :is(.is-display-block, .is-mannequin) .vend-picker-grid{ max-height: none; min-height: 0; }
  body :is(.is-display-block, .is-mannequin) .display-picker-layout{ overflow: hidden; }
}
@media (max-width: 420px){
  body :is(.is-display-block, .is-mannequin) .vend-picker-clear span{ display: inline; }
  body :is(.is-display-block, .is-mannequin) .vend-picker-actions button{ padding: 0 12px 3px; font-size: 12px; }
}
