/* =====================================================
   Dawa Finder - Customer App Styles
   ===================================================== */

.brand-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.brand-logo {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-title {
  font-size: 17px;
  margin-bottom: var(--space-1);
}

.btn-lg {
  padding: 16px 24px;
  font-size: 16px;
}

/* ---------------------------------------------------
   Medicine items
   --------------------------------------------------- */
.medicine-item {
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
  margin-bottom: var(--space-3);
}

.item-row {
  display: flex;
  gap: var(--space-2);
  align-items: center;
}

.item-search {
  flex: 1;
  position: relative;
}

.medicine-name-input {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  outline: none;
}

.medicine-name-input:focus {
  border-color: var(--color-primary);
}

.quantity-input {
  width: 64px;
  padding: 10px 8px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  text-align: center;
  outline: none;
}

.quantity-input:focus {
  border-color: var(--color-primary);
}

.remove-item-btn {
  background: var(--color-red-bg);
  color: var(--color-red);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.remove-item-btn:hover {
  background: #F8D5D5;
}

.suggestions-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  z-index: 50;
  max-height: 220px;
  overflow-y: auto;
  display: none;
}

.suggestions-dropdown.visible {
  display: block;
}

.suggestion-item {
  padding: 10px 12px;
  cursor: pointer;
  font-size: 14px;
  border-bottom: 1px solid var(--color-border);
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover,
.suggestion-item.active {
  background: var(--color-sage);
}

.notify-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin-top: var(--space-2);
  font-size: 13px;
  color: var(--color-text-muted);
  cursor: pointer;
}

.notify-checkbox input {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}

/* ---------------------------------------------------
   Map
   --------------------------------------------------- */
.map-container {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border: 1.5px solid var(--color-border);
}

#map {
  height: 220px;
  width: 100%;
}

.map-hint {
  position: absolute;
  bottom: var(--space-2);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(34, 43, 42, 0.8);
  color: #fff;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  pointer-events: none;
  white-space: nowrap;
}

.map-hint.hidden {
  display: none;
}

/* Leaflet pin pulse marker */
.pin-marker {
  width: 24px;
  height: 24px;
  position: relative;
}

.pin-marker::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--color-accent);
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}

/* ---------------------------------------------------
   Searching / waiting screen
   --------------------------------------------------- */
.searching-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-7) var(--space-4);
  min-height: 60vh;
}

.radar-container {
  position: relative;
  width: 180px;
  height: 180px;
  margin-bottom: var(--space-5);
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-pulse {
  position: absolute;
  border-radius: 50%;
  border: 2px solid var(--color-primary);
  opacity: 0;
  animation: radar-expand 2.4s ease-out infinite;
}

.radar-pulse:nth-child(1) { animation-delay: 0s; }
.radar-pulse:nth-child(2) { animation-delay: 0.8s; }
.radar-pulse:nth-child(3) { animation-delay: 1.6s; }

@keyframes radar-expand {
  0% {
    width: 20px;
    height: 20px;
    opacity: 0.8;
  }
  100% {
    width: 180px;
    height: 180px;
    opacity: 0;
  }
}

.radar-center {
  position: relative;
  width: 56px;
  height: 56px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}

.searching-screen h2 {
  font-size: 20px;
  margin-bottom: var(--space-2);
}

.searching-screen p {
  color: var(--color-text-muted);
  font-size: 14px;
  max-width: 320px;
}

.expand-radius-box {
  margin-top: var(--space-5);
  padding: var(--space-4);
  background: var(--color-amber-bg);
  border-radius: var(--radius-md);
  text-align: center;
  max-width: 320px;
}

.expand-radius-box p {
  color: #8A5A0F;
  margin-bottom: var(--space-3);
}

@media (prefers-reduced-motion: reduce) {
  .radar-pulse {
    animation: none;
    opacity: 0.3;
    width: 180px;
    height: 180px;
  }
}

/* Customer experience polish */
.customer-hero-card { margin-top: -2px; }

.medicine-item {
  background: linear-gradient(180deg, #fff, #fbfdfc);
  border-color: rgba(8,99,93,0.12);
}

.item-row { align-items: stretch; }
.remove-item-btn { height: 46px; width: 42px; }

.suggestions-dropdown {
  border-color: rgba(8,99,93,0.12);
  border-radius: 14px;
  overflow: hidden;
}

.suggestion-item { font-weight: 600; }

.notify-checkbox {
  background: rgba(8,99,93,0.045);
  border-radius: 12px;
  padding: 10px;
}

.map-container,
#map,
.mini-map {
  border-radius: 16px;
}

.map-container {
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5), var(--shadow-sm);
}

.pin-marker::before { box-shadow: 0 0 0 7px rgba(255,107,74,0.16), 0 8px 22px rgba(0,0,0,0.20); }

.searching-screen {
  background: rgba(255,255,255,0.64);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(8,99,93,0.08);
}

.radar-center { background: linear-gradient(135deg, var(--color-primary), var(--color-primary-light)); }

.active-requests-card {
  margin-bottom: var(--space-4);
  border: 1px solid rgba(15, 92, 87, 0.12);
  background: linear-gradient(135deg, rgba(212,232,226,0.42), rgba(255,255,255,0.88));
}

.active-request-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: 10px 0;
  border-top: 1px solid rgba(15, 92, 87, 0.10);
}
.active-request-item:first-child { border-top: 0; padding-top: 0; }
.active-request-item:last-child { padding-bottom: 0; }

.active-request-item {
  position: relative;
  padding-right: 34px;
}

.active-request-cancel {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  background: rgba(220, 53, 69, 0.10);
  color: #C62828;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.active-request-cancel:hover {
  background: rgba(220, 53, 69, 0.18);
}

@keyframes duplicateMedicineGlow {
  0% { box-shadow: 0 0 0 0 rgba(232, 85, 61, 0.35); border-color: var(--color-primary-light); }
  45% { box-shadow: 0 0 0 8px rgba(232, 85, 61, 0.18); border-color: var(--color-accent); }
  100% { box-shadow: 0 0 0 0 rgba(232, 85, 61, 0); border-color: var(--color-border); }
}

.medicine-item.duplicate-glow {
  animation: duplicateMedicineGlow 1s ease-out;
}

/* =====================================================
   Customer search simplification + sticky CTA
   ===================================================== */
.customer-search-shell { padding-bottom: 96px; }
.compact-customer-header { padding-bottom: var(--space-4); }
.compact-customer-header h1 { font-size: 22px; }
.compact-customer-header .subtitle { font-size: 13px; }
.customer-search-content { display: flex; flex-direction: column; gap: var(--space-4); }
.location-card, .medicine-card { margin-top: 0; }
.location-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.location-chip {
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(15, 92, 87, .10);
  color: var(--color-primary-dark);
  font-size: 12px;
  font-weight: 800;
}
.location-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}
.no-network-banner { margin-bottom: var(--space-3); }
.map-container.collapsed { display: none; }
.sticky-search-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100;
  padding: 12px max(14px, env(safe-area-inset-left)) calc(12px + env(safe-area-inset-bottom)) max(14px, env(safe-area-inset-right));
  background: rgba(250, 248, 244, .92);
  border-top: 1px solid rgba(8, 99, 93, .10);
  backdrop-filter: blur(16px);
  box-shadow: 0 -10px 28px rgba(23, 43, 38, .10);
}
.sticky-search-bar .btn { max-width: 640px; margin: 0 auto; }
.quantity-stepper {
  display: inline-flex;
  align-items: center;
  height: 46px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: #fff;
  flex-shrink: 0;
}
.quantity-stepper .quantity-input {
  width: 44px;
  height: 100%;
  border: 0;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  border-radius: 0;
  padding: 0 4px;
  font-weight: 800;
  background: #fff;
}
.quantity-stepper .quantity-input::-webkit-outer-spin-button,
.quantity-stepper .quantity-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.quantity-stepper .quantity-input { -moz-appearance: textfield; }
.quantity-stepper .quantity-input {
  direction: ltr;
  text-align: center !important;
  unicode-bidi: isolate;
}
.qty-btn {
  width: 34px;
  height: 100%;
  border: 0;
  background: rgba(15, 92, 87, .07);
  color: var(--color-primary-dark);
  font-size: 19px;
  font-weight: 900;
  cursor: pointer;
}
.qty-btn:active { transform: scale(.96); }
.item-row { gap: 8px; }
.active-requests-card .text-muted { display: none; }

@media (max-width: 520px) {
  .item-row { flex-wrap: wrap; }
  .item-search { flex: 1 1 100%; }
  .quantity-stepper { flex: 1; }
  .quantity-stepper .quantity-input { flex: 1; }
  .location-actions { grid-template-columns: 1fr; }
}

body.is-rtl .active-request-item { padding-left: 34px; padding-right: 0; }
body.is-rtl .active-request-cancel { left: 0; right: auto; }

.status-banner {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
}
.status-banner.warning {
  background: var(--color-amber-bg);
  color: #8A5A0F;
  border: 1px solid rgba(245, 158, 11, .25);
}
.status-banner.danger {
  background: var(--color-red-bg);
  color: var(--color-red);
}
.status-banner.success {
  background: var(--color-green-bg);
  color: var(--color-green);
}

/* Location availability fix and clearer detected state */
.location-card.location-detected {
  border-color: rgba(21, 157, 124, 0.28);
  background: linear-gradient(135deg, rgba(21, 157, 124, 0.08), rgba(255, 255, 255, 0.96));
}

.location-card.location-detected #location-status::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-inline-end: 6px;
  border-radius: 999px;
  background: #159D7C;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  vertical-align: middle;
}

.location-chip.detected {
  background: rgba(21, 157, 124, 0.14);
  color: #0B6D59;
  border: 1px solid rgba(21, 157, 124, 0.28);
  box-shadow: 0 8px 18px rgba(21, 157, 124, 0.12);
}

.location-chip.manual {
  background: rgba(232, 169, 61, 0.16);
  color: #8A5A00;
  border: 1px solid rgba(232, 169, 61, 0.28);
}

.location-chip.detecting {
  background: rgba(15, 92, 87, 0.10);
  color: var(--color-primary-dark);
  border: 1px solid rgba(15, 92, 87, 0.18);
}

.no-network-banner {
  line-height: 1.45;
}

/* Clearer compact location status tag */
.location-chip.detected,
.location-chip.manual,
.location-chip.detecting {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}
.location-card.location-detected #location-status::before { content: none; }
.location-card.location-detected #location-status {
  color: #0B6D59;
  font-weight: 700;
}
.location-card.location-manual #location-status {
  color: #8A5A00;
  font-weight: 700;
}

/* =====================================================
   Compact location line + bottom-sheet map picker
   ===================================================== */
.location-status-strip {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(15,92,87,.14);
  border-radius: 18px;
  padding: 11px 12px;
  background: rgba(255,255,255,.86);
  color: var(--color-primary-dark);
  box-shadow: var(--shadow-sm);
  text-align: start;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.location-status-strip:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 26px rgba(15,92,87,.12);
}
.location-status-strip:focus-visible {
  outline: 3px solid rgba(15,92,87,.20);
  outline-offset: 3px;
}
.location-status-strip #location-status {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.location-status-icon {
  width: 27px;
  height: 27px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15,92,87,.10);
  flex: 0 0 auto;
}
.location-details-icon {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  background: rgba(15,92,87,.08);
  color: currentColor;
  border: 1px solid rgba(15,92,87,.12);
  opacity: .92;
  transition: transform .18s ease, background .18s ease;
}
.location-status-strip:hover .location-details-icon,
.location-status-strip:focus-visible .location-details-icon {
  background: rgba(15,92,87,.14);
  transform: translateX(1px);
}
body.is-rtl .location-status-strip:hover .location-details-icon,
body.is-rtl .location-status-strip:focus-visible .location-details-icon {
  transform: translateX(-1px);
}
.location-status-strip.location-detected {
  background: linear-gradient(135deg, rgba(21,157,124,.12), rgba(255,255,255,.94));
  border-color: rgba(21,157,124,.28);
  color: #0B6D59;
}
.location-status-strip.location-manual {
  background: linear-gradient(135deg, rgba(232,169,61,.13), rgba(255,255,255,.94));
  border-color: rgba(232,169,61,.26);
  color: #8A5A00;
}
.location-status-strip.action-needed {
  border-color: rgba(255,107,74,.36);
  background: linear-gradient(135deg, rgba(255,107,74,.12), rgba(255,255,255,.94));
  color: #A93D2B;
  animation: location-action-pulse 1.7s ease-in-out infinite;
}
@keyframes location-action-pulse {
  0%,100% { box-shadow: 0 6px 18px rgba(255,107,74,.08); }
  50% { box-shadow: 0 8px 28px rgba(255,107,74,.20); }
}
.location-chip.warning {
  background: rgba(255,107,74,.14);
  color: #A93D2B;
  border: 1px solid rgba(255,107,74,.25);
}
.compact-no-network-banner { margin-top: -6px; }
.location-sheet[hidden] { display: none !important; }
.location-sheet {
  position: fixed;
  inset: 0;
  z-index: 900;
}
.location-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10,24,23,.42);
  backdrop-filter: blur(6px);
}
.location-sheet-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 680px;
  margin: 0 auto;
  background: var(--color-surface);
  border-radius: 28px 28px 0 0;
  padding: 10px 16px calc(16px + env(safe-area-inset-bottom));
  box-shadow: 0 -20px 50px rgba(12,35,32,.20);
  animation: sheet-up .22s ease-out;
}
@keyframes sheet-up {
  from { transform: translateY(30px); opacity: .7; }
  to { transform: translateY(0); opacity: 1; }
}
.sheet-grabber {
  width: 44px;
  height: 5px;
  border-radius: 999px;
  background: rgba(15,92,87,.18);
  margin: 0 auto 14px;
}
.sheet-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.sheet-header h2 { font-size: 18px; margin-bottom: 4px; }
.sheet-header p { font-size: 13px; margin: 0; }
.sheet-close {
  border: 0;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(15,92,87,.08);
  color: var(--color-primary-dark);
  font-size: 23px;
  line-height: 1;
}
.sheet-location-actions { margin-bottom: 12px; }
body.location-sheet-open { overflow: hidden; }
@media (max-width: 520px) {
  .location-status-strip { font-size: 12.5px; gap: 7px; }
  .location-chip { font-size: 11px; padding: 5px 8px; }
  .location-details-icon { width: 28px; height: 28px; }
  .location-sheet-panel { max-height: 88vh; overflow-y: auto; }
  #map { height: 260px; }
}

/* =====================================================
   Compact active requests redesign
   ===================================================== */
.active-requests-card {
  padding: 0;
  border-radius: 20px;
  border: 1px solid rgba(15, 92, 87, 0.12);
  background: linear-gradient(135deg, rgba(212,232,226,0.40), rgba(255,255,255,0.92));
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.active-requests-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 0;
  color: var(--color-primary-dark);
  font-size: 12px;
  font-weight: 900;
}
.active-requests-dot {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15,92,87,.11);
  color: var(--color-primary);
}
.active-requests-list {
  display: grid;
  gap: 8px;
  padding: 10px;
}
.active-request-compact {
  border: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 18px rgba(15,92,87,.07);
  overflow: hidden;
}
.active-request-main {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 6px;
  align-items: center;
  color: inherit;
  text-decoration: none;
  padding: 10px 4px 10px 10px;
  min-width: 0;
}
.active-request-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(15,92,87,.12), rgba(21,157,124,.10));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}
.active-request-copy {
  min-width: 0;
  display: block;
}
.active-request-copy strong {
  display: block;
  color: var(--color-primary-dark);
  font-size: 13px;
  line-height: 1.25;
}
.active-request-copy small {
  display: block;
  color: var(--color-text-muted);
  font-size: 11px;
  margin-top: 1px;
}
.active-request-chips {
  display: flex;
  gap: 5px;
  overflow: hidden;
  margin-top: 6px;
}
.active-request-chips span {
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(15,92,87,.08);
  color: var(--color-primary-dark);
  padding: 4px 7px;
  font-size: 10.5px;
  font-weight: 850;
  max-width: 96px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.active-request-compact .active-request-cancel {
  position: static;
  transform: none;
  width: 34px;
  height: 34px;
  margin-inline-end: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
body.is-rtl .active-request-main { padding: 10px 10px 10px 4px; }
body.is-rtl .active-request-compact .active-request-cancel { margin-inline-start: 8px; margin-inline-end: 0; }

/* =====================================================
   Collapsible active searches refinement
   ===================================================== */
.active-requests-head {
  width: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
  justify-content: flex-start;
  text-align: start;
  padding: 12px;
}
.active-requests-title {
  flex: 1;
  min-width: 0;
}
.active-requests-count {
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-primary);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}
.active-requests-chevron {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15,92,87,.08);
  color: var(--color-primary-dark);
  font-size: 18px;
  transition: transform .2s ease;
}
.active-requests-card.is-collapsed .active-requests-list {
  display: none;
}
.active-requests-card:not(.is-collapsed) .active-requests-chevron {
  transform: rotate(180deg);
}
.active-requests-card.is-collapsed {
  box-shadow: 0 10px 22px rgba(15,92,87,.07);
}
.active-requests-card.is-collapsed .active-requests-head {
  padding-bottom: 12px;
}
body.is-rtl .active-requests-head { text-align: right; }

/* =====================================================
   2026-06-23 final customer spacing + active search arrow
   ===================================================== */
.page-customer-search .compact-customer-header {
  padding-bottom: 10px;
}
.page-customer-search .customer-search-content {
  padding-top: 12px;
  gap: 10px;
}
.page-customer-search #active-requests-card {
  margin-bottom: 0;
}
.page-customer-search #location-status-strip {
  margin-top: 0;
}
.active-requests-chevron svg {
  display: block;
  transition: transform .2s ease;
}
.active-requests-card:not(.is-collapsed) .active-requests-chevron svg {
  transform: rotate(180deg);
}
.active-requests-card:not(.is-collapsed) .active-requests-chevron {
  transform: none;
}
.active-requests-head:hover .active-requests-chevron {
  background: rgba(15,92,87,.14);
}

/* Location card redesign based on the provided search screen mockup. */
.page-customer-search .location-status-strip {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 1px auto;
  align-items: center;
  column-gap: 12px;
  width: 100%;
  min-height: 78px;
  margin-top: 0;
  padding: 14px 16px;
  border: 1px solid rgba(15, 92, 87, .12);
  border-radius: 24px;
  background: rgba(255, 255, 255, .94);
  color: var(--color-primary-dark);
  box-shadow: 0 14px 36px rgba(15, 92, 87, .08), 0 2px 7px rgba(12, 35, 32, .04);
  text-align: start;
  cursor: pointer;
  animation: none;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.page-customer-search .location-status-strip:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 92, 87, .22);
  box-shadow: 0 18px 42px rgba(15, 92, 87, .12), 0 2px 8px rgba(12, 35, 32, .05);
}
.page-customer-search .location-status-strip:focus-visible {
  outline: 3px solid rgba(15, 92, 87, .18);
  outline-offset: 4px;
}
.page-customer-search .location-status-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #0F5C57;
  background: radial-gradient(circle at 30% 25%, #f7fbfa 0%, #eef5f3 48%, #e8efed 100%);
  border: 0;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75);
}
.page-customer-search .location-status-icon svg {
  display: block;
  width: 26px;
  height: 26px;
}
.page-customer-search .location-main-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.page-customer-search .location-chip {
  display: block;
  max-width: 100%;
  padding: 0;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: rgba(15, 92, 87, .95);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
.page-customer-search .location-chip.detected { color: rgba(11,109,89,.94); }
.page-customer-search .location-chip.manual { color: rgba(15,92,87,.94); }
.page-customer-search .location-chip.warning { color: rgba(169,61,43,.95); }
.page-customer-search .location-chip.detecting { color: rgba(15,92,87,.70); }
.page-customer-search .location-status-strip #location-status {
  display: block;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #121414;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.16;
  letter-spacing: -.02em;
}
.page-customer-search .location-divider {
  display: block;
  width: 1px;
  height: 46px;
  background: rgba(15,92,87,.13);
}
.page-customer-search .location-change-link {
  min-width: 78px;
  height: 38px;
  padding: 0 11px;
  border: 1.3px solid #0F5C57;
  border-radius: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #0F5C57;
  background: rgba(255,255,255,.76);
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  opacity: 1;
  transition: background .18s ease, transform .18s ease, border-color .18s ease;
}
.page-customer-search .location-change-link svg {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
}
.page-customer-search .location-status-strip:hover .location-change-link,
.page-customer-search .location-status-strip:focus-visible .location-change-link {
  background: rgba(15,92,87,.08);
  transform: translateY(-1px);
}
.page-customer-search .location-status-strip.location-detected,
.page-customer-search .location-status-strip.location-manual {
  color: var(--color-primary-dark);
  background: rgba(255,255,255,.94);
  border-color: rgba(15,92,87,.12);
}
.page-customer-search .location-status-strip.location-manual .location-status-icon,
.page-customer-search .location-status-strip.action-needed .location-status-icon {
  color: #0F5C57;
  background: radial-gradient(circle at 30% 25%, #f7fbfa 0%, #eef5f3 48%, #e8efed 100%);
}
.page-customer-search .location-status-strip.action-needed {
  color: var(--color-primary-dark);
  background: rgba(255,255,255,.94);
  border-color: rgba(232, 169, 61, .32);
  animation: none;
}
.page-customer-search .location-status-strip.action-needed .location-change-link {
  border-color: rgba(15,92,87,.82);
}

@media (max-width: 520px) {
  .page-customer-search .location-status-strip {
    grid-template-columns: 46px minmax(0, 1fr) 1px auto;
    min-height: 72px;
    padding: 12px 12px;
    column-gap: 9px;
    border-radius: 22px;
  }
  .page-customer-search .location-status-icon {
    width: 46px;
    height: 46px;
  }
  .page-customer-search .location-status-icon svg {
    width: 23px;
    height: 23px;
  }
  .page-customer-search .location-chip {
    font-size: 9.5px;
    letter-spacing: .065em;
  }
  .page-customer-search .location-status-strip #location-status {
    font-size: 15.5px;
  }
  .page-customer-search .location-divider {
    height: 42px;
  }
  .page-customer-search .location-change-link {
    min-width: 68px;
    height: 34px;
    padding: 0 8px;
    border-radius: 12px;
    gap: 5px;
    font-size: 11.5px;
  }
  .page-customer-search .location-change-link svg {
    width: 12px;
    height: 12px;
  }
}

@media (max-width: 370px) {
  .page-customer-search .location-status-strip {
    grid-template-columns: 40px minmax(0, 1fr) 1px auto;
    column-gap: 7px;
    padding: 11px 9px;
  }
  .page-customer-search .location-status-icon {
    width: 40px;
    height: 40px;
  }
  .page-customer-search .location-status-icon svg {
    width: 20px;
    height: 20px;
  }
  .page-customer-search .location-status-strip #location-status {
    font-size: 14px;
  }
  .page-customer-search .location-chip {
    font-size: 8.5px;
  }
  .page-customer-search .location-change-link {
    min-width: 58px;
    height: 32px;
    padding: 0 7px;
    font-size: 10.5px;
  }
  .page-customer-search .location-change-link svg {
    display: none;
  }
}

/* ---------------------------------------------------
   Customer promotion popup
   --------------------------------------------------- */
.customer-promotion-open {
  overflow: hidden;
}

.customer-promotion-overlay {
  position: fixed;
  inset: 0;
  z-index: 2200;
  background: rgba(10, 69, 65, 0.48);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.customer-promotion-card {
  width: min(100%, 390px);
  max-height: calc(100dvh - 32px);
  background: var(--color-surface);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(15, 92, 87, 0.24);
  position: relative;
  display: grid;
  grid-template-rows: minmax(140px, 34dvh) auto;
  border: 1px solid rgba(255,255,255,0.7);
}

.customer-promotion-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--color-primary-dark);
  font-size: 22px;
  line-height: 1;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

.customer-promotion-image-wrap {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--color-sage), var(--color-bg));
  overflow: hidden;
}

.customer-promotion-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.customer-promotion-body {
  padding: 16px 18px 18px;
  min-height: 0;
}

.customer-promotion-kicker {
  display: inline-flex;
  max-width: 100%;
  color: var(--color-primary);
  background: var(--color-sage);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 8px;
}

.customer-promotion-body h2 {
  font-size: clamp(18px, 5vw, 23px);
  line-height: 1.08;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.customer-promotion-body p {
  font-size: 13.5px;
  color: var(--color-text-muted);
  line-height: 1.45;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.customer-promotion-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--color-text-muted);
}

.customer-promotion-footer .btn {
  flex-shrink: 0;
}

@media (max-height: 620px) {
  .customer-promotion-card {
    grid-template-rows: minmax(110px, 28dvh) auto;
  }
  .customer-promotion-body {
    padding: 12px 14px 14px;
  }
  .customer-promotion-body p {
    -webkit-line-clamp: 3;
    margin-bottom: 10px;
  }
}
