/* ===== RIN STORE CYBER GLASSMORPHISM - ITEM PICKER ===== */
:root {
  --ip-bg: rgba(12, 18, 36, 0.94);
  --ip-card: rgba(22, 32, 64, 0.55);
  --ip-card-hover: rgba(30, 44, 90, 0.75);
  --ip-border: rgba(255, 255, 255, 0.08);
  --ip-cyan: #00d4ff;
  --ip-purple: #a855f7;
  --ip-text: #f0f2f8;
  --ip-muted: #8892b0;
}

.select-wrap.picker-ready::after { display: none; }
.picker-ready > select { display: none; }

/* Item Picker Button */
.item-picker-button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 6px 14px;
  border: 1px solid var(--ip-border);
  border-radius: 12px;
  background: var(--ip-card);
  color: var(--ip-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.item-picker-button:hover {
  background: var(--ip-card-hover);
  border-color: rgba(0, 212, 255, 0.35);
  box-shadow: 0 4px 18px rgba(0, 212, 255, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.item-picker-button:active {
  transform: scale(0.99);
}

.item-picker-button img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 9px;
  background: rgba(6, 8, 15, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 2px;
}

.item-picker-button span {
  flex: 1;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.item-picker-button::after {
  content: '⌄';
  color: var(--ip-cyan);
  font-size: 16px;
  font-weight: 700;
  margin-left: 4px;
  text-shadow: 0 0 10px rgba(0, 212, 255, 0.5);
  transition: transform 0.2s ease;
}

/* Item Picker Dialog (Desktop) */
.item-picker-dialog {
  width: min(480px, calc(100% - 24px));
  max-height: 82vh;
  padding: 20px;
  background: var(--ip-bg);
  color: var(--ip-text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.85), 0 0 40px rgba(108, 92, 231, 0.25);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  outline: none;
}

.item-picker-dialog::backdrop {
  background: rgba(3, 5, 12, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 0.2s ease;
}

/* Mobile Bottom Sheet Drawer */
@media (max-width: 640px) {
  .item-picker-dialog {
    width: 100vw !important;
    max-width: 100vw !important;
    max-height: 85vh !important;
    margin: auto 0 0 0 !important;
    border-radius: 22px 22px 0 0 !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: none !important;
    padding: 14px 16px calc(16px + env(safe-area-inset-bottom, 12px)) !important;
    animation: sheetUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
}

@keyframes sheetUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.item-picker-handle {
  width: 44px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 auto 12px;
}

/* Dialog Header */
.item-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.item-picker-head strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.2px;
  background: linear-gradient(135deg, #fff 40%, var(--ip-cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.item-picker-head button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ip-muted);
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.item-picker-head button:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

/* Dialog Search Input */
.item-picker-search {
  width: 100%;
  padding: 12px 14px 12px 40px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(6, 8, 15, 0.7) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238892b0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3C/svg%3E") no-repeat 14px center;
  color: var(--ip-text);
  font: inherit;
  font-size: 13.5px;
  margin-bottom: 12px;
  box-sizing: border-box;
  transition: all 0.2s ease;
}

.item-picker-search:focus {
  outline: none;
  border-color: var(--ip-cyan);
  box-shadow: 0 0 16px rgba(0, 212, 255, 0.25);
  background-color: rgba(10, 14, 26, 0.9);
}

.item-picker-search::placeholder {
  color: var(--ip-muted);
  font-size: 13px;
}

/* Items List */
.item-picker-list {
  max-height: 52vh;
  overflow-y: auto;
  display: grid;
  gap: 6px;
  padding-right: 4px;
}

.item-picker-list::-webkit-scrollbar {
  width: 5px;
}
.item-picker-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
  border-radius: 10px;
}
.item-picker-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
}
.item-picker-list::-webkit-scrollbar-thumb:hover {
  background: var(--ip-cyan);
}

/* Item Option Button */
.item-picker-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  min-height: 54px;
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ip-text);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.item-picker-option img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(6, 8, 15, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2px;
}

.item-picker-option:hover {
  background: rgba(108, 92, 231, 0.15);
  border-color: rgba(108, 92, 231, 0.35);
  transform: translateX(2px);
}

.item-picker-option[aria-selected=true] {
  border-color: var(--ip-cyan);
  background: linear-gradient(90deg, rgba(108, 92, 231, 0.25) 0%, rgba(0, 212, 255, 0.12) 100%);
  color: #fff;
  font-weight: 700;
  box-shadow: inset 0 0 12px rgba(0, 212, 255, 0.15);
  position: relative;
}

.item-picker-option[aria-selected=true]::after {
  content: '✓';
  color: var(--ip-cyan);
  font-weight: 900;
  font-size: 15px;
  margin-left: auto;
  text-shadow: 0 0 8px rgba(0, 212, 255, 0.6);
}

.item-picker-option:focus-visible, .item-picker-button:focus-visible {
  outline: 2px solid var(--ip-cyan);
  outline-offset: 2px;
}

.item-picker-empty {
  padding: 24px;
  text-align: center;
  color: var(--ip-muted);
  font-size: 13.5px;
}
