/* Cascading delivery location picker */
.aq-loc { margin: 0; }
.aq-loc-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #6b635a;
  margin-bottom: 10px;
}
.aq-loc-fields { display: grid; gap: 12px; }
.aq-loc-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #1c242d;
  margin-bottom: 6px;
}
.aq-loc-trigger {
  width: 100%;
  min-height: 48px;
  border: 1px solid #e0d8cc;
  background: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  font-size: 15px;
  color: #1c242d;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.aq-loc-trigger:hover,
.aq-loc-trigger:focus {
  border-color: #c4a35a;
  box-shadow: 0 0 0 3px rgba(196,163,90,.15);
  outline: 0;
}
.aq-loc-trigger.is-disabled {
  opacity: .55;
  cursor: not-allowed;
  background: #f7f3ec;
}
.aq-loc-trigger .aq-loc-placeholder { color: #8a8278; }
.aq-loc-trigger .aq-loc-chevron {
  color: #6b635a;
  font-size: 12px;
  flex: 0 0 auto;
}
.aq-loc-summary {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f7f3ec;
  border: 1px solid #ebe4d8;
  display: none;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
}
.aq-loc-summary.is-visible { display: flex; }
.aq-loc-summary strong { color: #0b1c2c; font-size: 15px; }
.aq-loc-summary span { color: #6b635a; font-size: 13px; }
.aq-loc-error {
  color: #b42318;
  font-size: 13px;
  margin-top: 8px;
  display: none;
}
.aq-loc-error.is-visible { display: block; }

/* Sheet / modal */
.aq-loc-sheet {
  position: fixed;
  inset: 0;
  z-index: 100050;
  display: none;
}
.aq-loc-sheet.is-open { display: block; }
.aq-loc-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11,28,44,.55);
}
.aq-loc-sheet__panel {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(560px, 100%);
  max-height: min(86vh, 720px);
  background: #fff;
  border-radius: 18px 18px 0 0;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -12px 40px rgba(0,0,0,.18);
  overflow: hidden;
}
.aq-loc-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #ebe4d8;
}
.aq-loc-sheet__head h3 {
  margin: 0;
  font-size: 16px;
  color: #0b1c2c;
}
.aq-loc-sheet__close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: #f7f3ec;
  color: #0b1c2c;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.aq-loc-sheet__search {
  padding: 10px 16px 8px;
}
.aq-loc-sheet__search input {
  width: 100%;
  min-height: 44px;
  border: 1px solid #e0d8cc;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 15px;
}
.aq-loc-sheet__list {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 4px 8px 20px;
  flex: 1;
}
.aq-loc-option {
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 14px 12px;
  border-radius: 10px;
  font-size: 15px;
  color: #1c242d;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.aq-loc-option:hover,
.aq-loc-option.is-active {
  background: #f7f3ec;
}
.aq-loc-option small { color: #8a8278; }
.aq-loc-empty {
  padding: 24px 12px;
  text-align: center;
  color: #8a8278;
  font-size: 14px;
}

@media (min-width: 768px) {
  .aq-loc-sheet__panel {
    top: 50%;
    bottom: auto;
    transform: translate(-50%, -50%);
    border-radius: 16px;
    max-height: min(80vh, 640px);
  }
}
