/* City picker popup — see inc/city-modal.php */
.fe-citymodal{display:none;position:fixed;inset:0;z-index:100000;align-items:center;justify-content:center;padding:1rem;box-sizing:border-box;
  background:rgba(38,28,0,.58);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);font-family:var(--wp--preset--font-family--lexend,Lexend,system-ui,sans-serif);color:#1b1b1b}
html.fe-city-open{overflow:hidden}
html.fe-city-open .fe-citymodal{display:flex}
.fe-citymodal *{box-sizing:border-box}
.fe-citymodal .screen-reader-text{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.fe-citymodal__dialog{position:relative;width:min(1100px,100%);max-height:calc(100vh - 2rem);max-height:calc(100dvh - 2rem);overflow:auto;overscroll-behavior:contain;
  padding:1rem;border-radius:32px;background:linear-gradient(180deg,#fff6cf,#fffbea);box-shadow:0 30px 80px rgba(0,0,0,.35);outline:none;
  animation:fe-city-in .28s cubic-bezier(.2,.8,.2,1)}
@keyframes fe-city-in{from{opacity:0;transform:translateY(14px) scale(.98)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.fe-citymodal__dialog{animation:none}}

/* close button only when the popup was opened on purpose (not the forced first-visit one) */
.fe-citymodal__close{display:none;position:absolute;top:1.6rem;right:1.6rem;z-index:3;width:40px;height:40px;border:0;border-radius:50%;background:rgba(255,255,255,.85);color:#1b1b1b;font-size:1.6rem;line-height:1;cursor:pointer;box-shadow:0 2px 8px rgba(0,0,0,.15)}
html:not(.fe-city-required) .fe-citymodal__close{display:block}

.fe-citymodal__banner{position:relative;overflow:hidden;border-radius:28px;background:#fee57a;min-height:150px;display:flex;align-items:center}
.fe-citymodal__bannertext{position:relative;z-index:2;padding:1.75rem 2.25rem;max-width:62%}
.fe-citymodal__banner h2{margin:0 0 .35rem;font-size:clamp(1.6rem,3.2vw,2.5rem);font-weight:800;line-height:1.12;letter-spacing:-.02em;color:#1b1b1b}
.fe-citymodal__banner p{margin:0;font-size:clamp(.95rem,1.6vw,1.2rem);line-height:1.4;color:#1b1b1b}
.fe-citymodal__skyline{position:absolute;top:0;right:0;bottom:0;width:58%;background:right bottom/auto 100% no-repeat;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 42%);mask-image:linear-gradient(90deg,transparent,#000 42%)}

.fe-citymodal__panel{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);margin-top:.9rem;border:1px solid #fbe7a0;border-radius:28px;background:#fffdf6}
.fe-citymodal__popular,.fe-citymodal__more{padding:1.5rem 1.6rem 1.7rem}
.fe-citymodal__more{border-left:1px solid #f6e6b0}
.fe-citymodal h3{margin:0 0 1rem;font-size:1.5rem;font-weight:800;letter-spacing:-.01em;line-height:1.2;color:#1b1b1b}

.fe-citymodal__cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.8rem}
.fe-citycard,.fe-citypill{appearance:none;-webkit-appearance:none;font:inherit;color:#1b1b1b;cursor:pointer;border:1px solid #fbe9a8;background:#fffbee;transition:background-color .15s,border-color .15s,transform .15s,box-shadow .15s}
.fe-citycard:hover,.fe-citypill:hover{background:#fff4c4;border-color:#f7d65a;transform:translateY(-1px);box-shadow:0 6px 14px rgba(180,140,0,.14)}
.fe-citycard:focus-visible,.fe-citypill:focus-visible,.fe-citymodal__search input:focus-visible,.fe-citymodal__close:focus-visible{outline:3px solid #1b1b1b;outline-offset:2px}
.fe-citycard{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:.45rem;min-height:178px;padding:.9rem .4rem .8rem;border-radius:16px}
.fe-citycard img{display:block;width:100%;max-width:170px;height:92px;object-fit:contain;object-position:center bottom}
.fe-citycard span{font-size:1rem;font-weight:700;line-height:1.2}
.fe-citycard.is-selected,.fe-citypill.is-selected{background:#fedd55;border-color:#f3c400}
.fe-citycard.is-selected:after{content:"";position:absolute;top:.55rem;right:.55rem;width:34px;height:34px;border-radius:50%;
  background:#262626 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/62% no-repeat}

.fe-citymodal__search{display:block;margin:0 0 1rem}
.fe-citymodal__search input{width:100%;height:56px;padding:0 1rem 0 3.1rem;border:1px solid #f7dc7a;border-radius:16px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.6-3.6'/%3E%3C/svg%3E") 1rem center/24px no-repeat;font:inherit;font-size:1.05rem;color:#1b1b1b}
.fe-citymodal__search input::placeholder{color:#707070}
.fe-citymodal__list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem}
.fe-citypill{min-height:66px;padding:.5rem .4rem;border-radius:16px;font-size:1rem;font-weight:700;line-height:1.2}
.fe-citymodal__empty{margin:.5rem 0 0;color:#6b6b6b}
.fe-citymodal [hidden]{display:none!important}

/* "Delivering to <city>" link added to the top strip */
.fe-citylink{appearance:none;background:none;border:0;padding:0;margin:0;font:inherit;font-weight:700;color:inherit;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.fe-citylink:focus-visible{outline:2px solid currentColor;outline-offset:2px}

@media (max-width:980px){
  .fe-citymodal__cards{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media (max-width:781px){
  .fe-citymodal{padding:.5rem;align-items:flex-end}
  .fe-citymodal__dialog{padding:.6rem;border-radius:24px;max-height:calc(100dvh - 1rem)}
  .fe-citymodal__banner{border-radius:20px;min-height:120px}
  .fe-citymodal__bannertext{padding:1.25rem 1.25rem;max-width:100%}
  .fe-citymodal__skyline{width:80%;opacity:.35}
  .fe-citymodal__panel{grid-template-columns:1fr;border-radius:20px}
  .fe-citymodal__more{border-left:0;border-top:1px solid #f6e6b0}
  .fe-citymodal__popular,.fe-citymodal__more{padding:1.1rem 1rem 1.25rem}
  .fe-citymodal__cards{grid-template-columns:repeat(2,minmax(0,1fr));gap:.6rem}
  .fe-citycard{min-height:150px}
  .fe-citycard img{height:78px}
  .fe-citymodal__list{gap:.6rem}
  .fe-citymodal__close{top:1rem;right:1rem}
}

/* Phones: "Delivering to <city>" sits on its own centred line under the free-delivery text */
@media (max-width:781px){
  .fe-citylink-wrap{display:block;text-align:center;margin-top:0}
  .fe-citylink-wrap > span[aria-hidden]{display:none}
}

/* Phones: compact popup so (almost) everything fits one screen; scrolls inside only if the screen is very short */
@media (max-width:781px){
  .fe-citymodal{padding:.4rem;align-items:center}
  .fe-citymodal__dialog{width:100%;max-height:calc(100vh - .8rem);max-height:calc(100dvh - .8rem);padding:.45rem;border-radius:18px}
  .fe-citymodal__banner{min-height:0;border-radius:14px}
  .fe-citymodal__bannertext{padding:.8rem 1rem}
  .fe-citymodal__banner h2{font-size:1.15rem;margin:0 0 .15rem}
  .fe-citymodal__banner p{font-size:.78rem;line-height:1.3}
  .fe-citymodal__panel{margin-top:.45rem;border-radius:14px}
  .fe-citymodal__popular,.fe-citymodal__more{padding:.7rem .65rem .8rem}
  .fe-citymodal h3{font-size:.95rem;margin:0 0 .5rem}
  .fe-citymodal__cards{grid-template-columns:repeat(4,minmax(0,1fr));gap:.4rem}
  .fe-citycard{min-height:0;gap:.2rem;padding:.45rem .15rem .4rem;border-radius:10px}
  .fe-citycard img{height:38px;max-width:100%}
  .fe-citycard span{font-size:.66rem;line-height:1.15;font-weight:600;overflow-wrap:anywhere}
  .fe-citycard.is-selected:after{top:.2rem;right:.2rem;width:16px;height:16px;background-size:10px}
  .fe-citymodal__search{margin:0 0 .5rem}
  .fe-citymodal__search input{height:38px;font-size:.85rem;border-radius:10px;padding-left:2.4rem;background-position:.7rem center;background-size:16px}
  .fe-citymodal__list{grid-template-columns:repeat(3,minmax(0,1fr));gap:.4rem}
  .fe-citypill{min-height:34px;padding:.25rem .2rem;border-radius:10px;font-size:.72rem;font-weight:600}
  .fe-citymodal__close{top:.7rem;right:.7rem;width:30px;height:30px;font-size:1.2rem}
}
