/* Map address picker and breathing map logo, shared by the Customer and Shopkeeper websites (ui/address.js). */
body.ap-open { overflow: hidden; }

/* ---------- Breathing map logo ---------- */
.breathe { position: relative; width: 120px; height: 120px; display: grid; place-items: center; flex-shrink: 0; }
.breathe .br-core { position: relative; z-index: 2; width: 64%; height: 64%; border-radius: 50%; background: var(--navy); display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(11,20,112,.55); animation: breathe 2.6s ease-in-out infinite; }
.breathe .br-disc { width: 66%; height: 66%; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.breathe .gmaps-logo { width: 46%; height: auto; }
.breathe .br-ring { position: absolute; inset: 18%; border-radius: 50%; background: var(--navy); opacity: .18; animation: breathe-ring 2.6s ease-out infinite; }
.breathe .br-ring.r2 { animation-delay: 1.3s; }
.breathe.sm { width: 64px; height: 64px; }
.breathe.lg { width: 150px; height: 150px; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@keyframes breathe-ring { 0% { transform: scale(.85); opacity: .28; } 100% { transform: scale(1.65); opacity: 0; } }

/* ---------- Map address picker ---------- */
.ap { position: fixed; inset: 0; z-index: 60; background: var(--surface); display: flex; flex-direction: column; animation: ap-in .22s var(--ease); }
@keyframes ap-in { from { opacity: 0; transform: translateY(8px); } }
.ap-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 58px; padding: 0 16px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.ap-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 420px; }
.ap-map-wrap { position: relative; min-height: 0; background: #E9EEF3; }
.ap-map { position: absolute; inset: 0; }
.ap-pin { position: absolute; left: 50%; top: 50%; z-index: 1000; width: 40px; height: 52px; transform: translate(-50%, -100%); pointer-events: none; transition: transform .18s var(--ease); filter: drop-shadow(0 6px 8px rgba(5,9,64,.35)); }
.ap-pin svg { width: 100%; height: 100%; }
.ap-pin-shadow { position: absolute; left: 50%; bottom: -6px; width: 14px; height: 5px; margin-left: -7px; border-radius: 50%; background: rgba(5,9,64,.35); transition: transform .18s var(--ease), opacity .18s; }
.ap.dragging .ap-pin { transform: translate(-50%, calc(-100% - 12px)); }
.ap.dragging .ap-pin-shadow { transform: translateY(12px) scale(.7); opacity: .5; }
.ap-hint { position: absolute; left: 50%; top: calc(50% - 92px); transform: translateX(-50%); z-index: 1000; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 600; padding: 7px 12px; border-radius: 10px; white-space: nowrap; pointer-events: none; transition: opacity .2s; }
.ap.dragging .ap-hint { opacity: 0; }
.ap-search { position: absolute; left: 14px; right: 14px; top: 14px; z-index: 1001; max-width: 460px; }
.ap-search .input { height: 46px; border-radius: 14px; box-shadow: var(--sh-2); border-color: transparent; }
.ap-results { margin-top: 6px; background: var(--surface); border-radius: 14px; box-shadow: var(--sh-3); overflow: hidden; }
.ap-res { display: flex; gap: 10px; align-items: flex-start; width: 100%; padding: 11px 14px; border: 0; background: transparent; text-align: left; font-size: 14px; border-bottom: 1px solid var(--line-2); }
.ap-res:last-child { border-bottom: 0; }
.ap-res:hover { background: var(--canvas); }
.ap-res svg { width: 16px; height: 16px; color: var(--navy); flex-shrink: 0; margin-top: 2px; }
.ap-locate { position: absolute; left: 14px; bottom: 18px; z-index: 1001; display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--surface); color: var(--navy); font-weight: 600; font-size: 14px; box-shadow: var(--sh-2); }
.ap-locate svg { width: 18px; height: 18px; }
.ap-loader { position: absolute; inset: 0; z-index: 1100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; background: rgba(246,247,251,.94); opacity: 0; pointer-events: none; transition: opacity .3s; }
.ap-loader.show { opacity: 1; pointer-events: auto; }
.ap-loader p { font-weight: 600; color: var(--navy); }
.ap-panel { border-left: 1px solid var(--line); padding: 24px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; }
.ap-head { display: flex; gap: 14px; align-items: center; }
.ap-head h2 { font-size: 24px; letter-spacing: -0.035em; margin-top: 4px; }
.ap-place-row { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 14px; background: var(--navy-50); }
.ap-place-row svg { width: 20px; height: 20px; color: var(--navy); flex-shrink: 0; margin-top: 2px; }
.ap-place-row b { display: block; font-size: 15px; }
.ap-place-row span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.ap-foot { margin-top: auto; }
@media (max-width: 1000px) {
  .ap-body { grid-template-columns: minmax(0, 1fr) 360px; }
}
@media (max-width: 760px) {
  .ap-top { height: 52px; padding: 0 10px; }
  .ap-body { grid-template-columns: 1fr; grid-template-rows: 46vh auto; overflow-y: auto; }
  .ap-map-wrap { min-height: 46vh; }
  .ap-panel { border-left: 0; border-top: 1px solid var(--line); padding: 16px 14px 24px; border-radius: 20px 20px 0 0; margin-top: -16px; background: var(--surface); position: relative; z-index: 1200; box-shadow: 0 -10px 30px -18px rgba(5,9,64,.4); }
  .ap-head h2 { font-size: 20px; }
  .ap-head .breathe.sm { width: 52px; height: 52px; }
  .ap-search { left: 10px; right: 10px; top: 10px; }
  .ap-search .input { height: 42px; }
  .ap-locate { bottom: 28px; height: 38px; font-size: 13px; }
  .ap-hint { font-size: 11.5px; top: calc(50% - 86px); }
  .breathe.lg { width: 120px; height: 120px; }
}
@media (prefers-reduced-motion: reduce) {
  .breathe .br-core, .breathe .br-ring { animation: none; }
}

/* Customer address: contact details and "Save address as" */
.ap-contact { display: flex; flex-direction: column; gap: 12px; padding-top: 4px; }
.ap-sec { font-size: 16px; letter-spacing: -0.01em; }
.ap-who { display: flex; gap: 22px; flex-wrap: wrap; }
.ap-radio { display: inline-flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; cursor: pointer; }
.ap-radio input { position: absolute; opacity: 0; pointer-events: none; }
.ap-radio span { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; transition: border-color .15s; }
.ap-radio input:checked + span { border-color: var(--navy); }
.ap-radio input:checked + span::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--navy); }
.ap-radio input:focus-visible + span { box-shadow: 0 0 0 3px var(--navy-100); }
.ap-labels { display: flex; gap: 8px; flex-wrap: wrap; }
.ap-label { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; font-weight: 600; font-size: 14px; cursor: pointer; background: var(--surface); }
.ap-label input { position: absolute; opacity: 0; pointer-events: none; }
.ap-label svg { width: 17px; height: 17px; color: var(--muted); }
.ap-label:has(input:checked) { border-color: var(--navy); background: var(--navy-50); color: var(--navy); }
.ap-label:has(input:checked) svg { color: var(--navy); }
.ap-label:has(input:focus-visible) { box-shadow: 0 0 0 3px var(--navy-100); }
.ap-book { border: 0; background: none; padding: 0 12px; color: var(--navy); display: grid; place-items: center; cursor: pointer; }
.ap-book svg { width: 20px; height: 20px; }
.phone-input { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); overflow: hidden; }
.phone-input:focus-within { border-color: var(--navy-400); box-shadow: 0 0 0 4px rgba(90,100,200,.14); }
.phone-input .cc { display: grid; place-items: center; padding: 0 12px; background: var(--canvas); color: var(--ink-2); font-weight: 600; border-right: 1px solid var(--line); font-size: 15px; }
.phone-input .input { border: 0; box-shadow: none !important; border-radius: 0; letter-spacing: .04em; font-size: 16px; flex: 1; min-width: 0; }
