.fulfillment-choice[hidden] { display: none; }

.fulfillment-choice {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: grid;
  place-items: center;
  padding: 20px;
}

.fulfillment-choice-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(12, 16, 24, .68);
  backdrop-filter: blur(5px);
}

.fulfillment-choice-panel {
  position: relative;
  width: min(100%, 520px);
  max-height: min(720px, calc(100dvh - 28px));
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, .62);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 28px 90px rgba(15, 23, 42, .3);
  padding: 30px;
}

.fulfillment-choice-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 1px solid #e5e7eb;
  border-radius: 50%;
  background: #fff;
  color: #111827;
  font-size: 28px;
  line-height: 1;
}

.fulfillment-choice-heading { padding-right: 42px; }
.fulfillment-choice-heading p {
  margin: 0 0 6px;
  color: var(--main-color, #9c2aa0);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.fulfillment-choice-heading h2 { margin: 0 0 9px; font-size: clamp(25px, 5vw, 34px); line-height: 1.08; }
.fulfillment-choice-heading span { color: #667085; font-size: 15px; line-height: 1.45; }

.fulfillment-mode-options { display: grid; gap: 12px; margin-top: 24px; }
.fulfillment-mode-option {
  display: grid;
  grid-template-columns: 48px 1fr 28px;
  align-items: center;
  gap: 13px;
  width: 100%;
  min-height: 88px;
  border: 2px solid #e6e8ee;
  border-radius: 18px;
  padding: 14px 16px;
  background: #fff;
  color: #111827;
  text-align: left;
  transition: border-color .16s ease, background .16s ease, transform .16s ease;
}
.fulfillment-mode-option:hover { transform: translateY(-1px); border-color: #c9cdd6; }
.fulfillment-mode-option.selected { border-color: var(--main-color, #9c2aa0); background: #fff8ff; }
.fulfillment-mode-option[hidden] { display: none; }
.fulfillment-mode-icon { font-size: 31px; text-align: center; }
.fulfillment-mode-option strong { display: block; margin-bottom: 4px; font-size: 19px; }
.fulfillment-mode-option small { display: block; color: #667085; font-size: 13px; line-height: 1.35; }
.fulfillment-mode-check {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #e7e9ee;
  color: transparent;
  font-weight: 900;
}
.fulfillment-mode-option.selected .fulfillment-mode-check { background: var(--main-color, #9c2aa0); color: #fff; }

.fulfillment-delivery-zone {
  margin-top: 16px;
  border-radius: 18px;
  background: #f5f6f8;
  padding: 16px;
}
.fulfillment-delivery-zone label { display: block; margin-bottom: 8px; color: #20242c; font-weight: 800; }
.fulfillment-postal-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.fulfillment-postal-row input {
  min-width: 0;
  height: 50px;
  border: 1px solid #d5d9e2;
  border-radius: 13px;
  padding: 0 14px;
  background: #fff;
  font: inherit;
  font-size: 17px;
}
.fulfillment-postal-row button {
  border: 0;
  border-radius: 13px;
  padding: 0 17px;
  background: #111827;
  color: #fff;
  font-weight: 800;
}
.fulfillment-delivery-zone p { margin: 9px 2px 0; color: #667085; font-size: 13px; }
.fulfillment-delivery-zone p.valid { color: #087443; font-weight: 700; }
.fulfillment-delivery-zone p.invalid { color: #b42318; font-weight: 700; }
.fulfillment-choice-error { margin: 12px 0 0; color: #b42318; font-size: 14px; font-weight: 750; }
.fulfillment-confirm {
  width: 100%;
  min-height: 55px;
  margin-top: 18px;
  border: 0;
  border-radius: 16px;
  background: #111827;
  color: #fff;
  font: inherit;
  font-size: 17px;
  font-weight: 850;
}

.fulfillment-summary {
  display: inline-grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  border: 1px solid rgba(17, 24, 39, .1);
  border-radius: 16px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, .94);
  color: #111827;
  text-align: left;
}
.fulfillment-summary[hidden] { display: none; }
.fulfillment-summary-icon { font-size: 21px; }
.fulfillment-summary small { display: block; color: #777f8c; font-size: 10px; font-weight: 700; text-transform: uppercase; }
.fulfillment-summary strong { display: block; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.fulfillment-summary-change { color: var(--main-color, #9c2aa0); font-size: 12px; font-weight: 800; }

body.fulfillment-choice-open { overflow: hidden; }

@media (max-width: 720px) {
  .fulfillment-choice { align-items: end; padding: 0; }
  .fulfillment-choice-panel { width: 100%; max-height: 92dvh; border-radius: 27px 27px 0 0; padding: 25px 18px calc(20px + env(safe-area-inset-bottom)); }
  .fulfillment-mode-option { min-height: 82px; }
  .menu-tools.fulfillment-choice-available {
    grid-template-columns: minmax(92px, .3fr) minmax(112px, .34fr) minmax(0, .36fr);
  }
  .fulfillment-summary { width: 100%; min-height: 46px; padding: 5px 8px; }
  .fulfillment-summary small,
  .fulfillment-summary-change { display: none; }
  .fulfillment-summary strong { max-width: 72px; font-size: 12px; }
  .fulfillment-summary-icon { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .fulfillment-mode-option { transition: none; }
}
