/* ============================================================
   EASY CHOICE STORAGE FACILITY PICKER (see storage-facilities.js)
   ============================================================ */
.sf { margin-top: 10px; }
.sf-toggle { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--dark); line-height: 1.3; padding: 4px 0; }
.sf .sf-toggle input { padding: 0; box-sizing: border-box; appearance: none; -webkit-appearance: none; width: 20px; height: 20px; margin: 0; border: 1.5px solid #9aa6c9; border-radius: 4px; background: #fff; flex-shrink: 0; cursor: pointer; display: grid; place-content: center; transition: background 0.15s, border-color 0.15s; }
.sf .sf-toggle input::after { content: ''; width: 5px; height: 10px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg) translate(-1px, -1px); opacity: 0; }
.sf .sf-toggle input:checked { background: var(--dark); border-color: var(--dark); }
.sf .sf-toggle input:checked::after { opacity: 1; }
.sf .sf-toggle input:focus-visible { outline: 3px solid var(--yellow); outline-offset: 1px; }

.sf-panel { margin-top: 8px; padding: 14px; border: 1px solid #dfe3ee; border-left: 3px solid var(--dark); border-radius: 6px; background: #f6f8fd; display: flex; flex-direction: column; gap: 10px; }
.sf-panel[hidden], .sf-field[hidden], .sf-hint[hidden], .sf-picked[hidden] { display: none; }
.sf-field { display: flex; flex-direction: column; gap: 6px; }
.sf-label { font-size: 13px; font-weight: 600; color: var(--dark); display: block; }
.sf-panel > .sf-label { margin-bottom: -4px; }
.sf-label .req { color: #c0392b; margin-left: 2px; }
.sf-opt { font-weight: 400; color: #777; }
.sf .sf-panel select, .sf .sf-panel input[type="text"] { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #ccc; border-radius: 6px; font-family: 'Poppins', sans-serif; font-size: 14px; color: var(--dark); background-color: #fff; }
.sf .sf-panel select { appearance: none; -webkit-appearance: none; padding-right: 34px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23304ca7' d='M4 6l4 4 4-4z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 14px; }
.sf .sf-panel select:focus, .sf .sf-panel input[type="text"]:focus { outline: none; border-color: var(--dark); }
.sf-picked { display: flex; flex-direction: column; gap: 2px; font-size: 13px; color: #1d7a43; background: #e6f4ec; border-radius: 6px; padding: 8px 12px; }
.sf-picked strong { color: #145c31; font-weight: 600; }
.sf-hint { margin: 0; font-size: 12px; color: #555; }
.sf-error { display: none; color: #c0392b; font-size: 12px; }
.sf-nudge { display: none; font-size: 12px; color: #8a5a00; background: #fff8dc; border: 1px solid #f0d98a; border-radius: 6px; padding: 8px 12px; margin-bottom: 6px; }
.sf-nudge.show { display: block; }

/* Address filled in from the list: show it, but stop it being edited */
input.sf-filled, .sf-filled input[readonly] { background: #f1f3f8 !important; color: #444; cursor: default; }
select.sf-locked { pointer-events: none; background-color: #f1f3f8 !important; color: #444; }
.address-block > [hidden] { display: none !important; }
