/* ============================================================
   EASY CHOICE ITEM PICKER (see item-picker.js)
   ============================================================ */
.ip { display: flex; flex-direction: column; gap: 14px; }
.ip-groups { display: flex; flex-direction: column; gap: 8px; }
.ip-group { border: 1px solid #dfe3ee; border-radius: 8px; background: #fff; }
.ip-group > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; font-weight: 600; font-size: 14px; color: var(--dark); }
.ip-group > summary::-webkit-details-marker { display: none; }
.ip-group > summary::after { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--dark); border-bottom: 2px solid var(--dark); transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform 0.15s; flex-shrink: 0; }
.ip-group[open] > summary::after { transform: rotate(225deg); margin-top: 4px; }
.ip-group > summary > span:first-child { flex: 1; }
.ip-group-count { font-size: 12px; font-weight: 600; color: #1d7a43; background: #e6f4ec; border-radius: 20px; padding: 2px 10px; }
.ip-group-count:empty { display: none; }
.ip-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; padding: 0 14px 8px; }
.ip-group .ip-rows { border-top: 1px solid #eef0f5; padding-top: 4px; }
.ip-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px solid #f1f2f6; min-height: 48px; transition: background 0.3s; }
.ip-row.has-qty .ip-name { color: var(--dark); font-weight: 600; }
.ip-row.ip-flash { background: #fff8dc; }
.ip-name { font-size: 14px; color: #444; line-height: 1.3; min-width: 0; }
.ip-step { display: flex; align-items: center; flex-shrink: 0; }
.ip-btn { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--dark); background: #fff; color: var(--dark); font-size: 18px; font-weight: 600; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; font-family: inherit; padding: 0; }
.ip-btn:hover:not(:disabled) { background: var(--dark); color: #fff; }
.ip-btn:disabled { border-color: #ccd2e3; color: #b9c0d4; cursor: default; }
.ip-btn:focus-visible, .ip-qty:focus-visible { outline: 3px solid var(--yellow); outline-offset: 1px; }
.ip-qty { width: 44px; height: 34px; border: none; background: transparent; text-align: center; font: 600 15px 'Poppins', sans-serif; color: var(--dark); -moz-appearance: textfield; appearance: textfield; }
.ip-qty::-webkit-outer-spin-button, .ip-qty::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ip-qty::placeholder { color: #b9c0d4; }

.ip-search label, .ip-other label { display: block; font-size: 13px; font-weight: 600; color: var(--dark); margin-bottom: 6px; }
.ip-search-box { position: relative; }
.ip-search-box input { width: 100%; padding: 12px 14px 12px 40px; border: 1px solid #ccd2e3; border-radius: 6px; font: 14px 'Poppins', sans-serif; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23304ca7' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5'/%3E%3C/svg%3E") no-repeat 13px center / 17px; }
.ip-search-box input:focus, .ip-other textarea:focus { outline: none; border-color: var(--dark); box-shadow: 0 0 0 3px rgba(48,76,167,0.12); }
.ip-results { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); list-style: none; margin: 0; padding: 4px; background: #fff; border: 1px solid #ccd2e3; border-radius: 6px; box-shadow: 0 8px 24px rgba(20,30,70,0.14); max-height: 320px; overflow-y: auto; }
.ip-results li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 12px; border-radius: 4px; cursor: pointer; font-size: 14px; }
.ip-results li small { color: #888; font-size: 12px; white-space: nowrap; }
.ip-results li:hover, .ip-results li.is-active { background: #eef1fa; }
.ip-results li.ip-none { cursor: default; color: #777; }
.ip-results li.ip-none:hover { background: none; }
.ip-extra-title { font-size: 13px; font-weight: 600; color: var(--dark); margin: 12px 0 0; }
.ip-extra .ip-rows { padding: 0; }
.ip-other textarea { width: 100%; padding: 10px 14px; border: 1px solid #ccd2e3; border-radius: 6px; font: 14px 'Poppins', sans-serif; resize: vertical; min-height: 60px; }

@media (max-width: 640px) {
  .ip-rows { grid-template-columns: 1fr; padding: 0 12px 6px; }
  .ip-group > summary { padding: 12px; }
}
