/**
 * Location drawer — list / map / form screens.
 */

#header_location_panel.header-location-panel {
  background: #f3f4f6 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#header_location_panel .header-location-drawer-head {
  justify-content: flex-start;
  margin-bottom: 0;
  flex-shrink: 0;
}

.mirswa-loc-postcode-block .header-location-form {
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.mirswa-loc-postcode-block .header-location-input {
  width: 100%;
  font-size: 0.78rem;
  min-height: 34px;
}

.mirswa-loc-postcode-block .header-location-save-btn {
  width: 100%;
  font-size: 0.76rem;
  font-weight: 600;
  min-height: 34px;
  padding: 0 10px;
  white-space: nowrap;
  line-height: 1.2;
}

#header_location_panel .header-location-title {
  font-size: 0.88rem !important;
}

#header_location_panel .mirswa-loc-action-text strong {
  font-size: 0.84rem;
}

#header_location_panel .mirswa-loc-action-text small {
  font-size: 0.72rem;
}

#header_location_panel .header-location-saved-title {
  font-size: 0.84rem;
}

#header_location_panel .header-location-or {
  font-size: 0.75rem;
}

#header_location_panel .header-location-input,
#header_location_panel .header-location-save-btn {
  font-size: 0.8rem;
  min-height: 36px;
}

#header_location_panel .mirswa-loc-search-input {
  font-size: 0.84rem;
  min-height: 40px;
}

button.mirswa-loc-action-row,
a.mirswa-loc-action-row {
  text-decoration: none !important;
  outline: none !important;
  box-shadow: none !important;
  border: 0 !important;
}

button.mirswa-loc-action-row:hover,
button.mirswa-loc-action-row:focus,
a.mirswa-loc-action-row:hover,
a.mirswa-loc-action-row:focus {
  text-decoration: none !important;
  outline: none !important;
  box-shadow: none !important;
  border: 0 !important;
}

.header-inline-edit-error {
  margin-top: 8px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: #dc2626;
}

#header_location_screen_form .mirswa-drawer-form-label {
  font-size: 0.68rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 0.2rem !important;
}

#header_location_screen_form .mirswa-drawer-form-control {
  font-size: 0.8rem;
  min-height: 34px;
  padding: 0.3rem 0.55rem;
  border-radius: 8px;
  border-color: #e2e8f0;
}

#header_location_screen_form .header-inline-edit-wrap {
  padding: 10px;
}

#header_location_screen_form .header-inline-edit-type,
#header_location_screen_form .form-check-label {
  font-size: 0.78rem;
}

#header_location_screen_form .header-inline-edit-actions .btn {
  font-size: 0.78rem;
  min-height: 34px;
  padding: 0.3rem 0.75rem;
}

.mirswa-confirm-loc-title {
  font-size: 0.88rem;
}

.mirswa-confirm-loc-line {
  font-size: 0.76rem;
}

.mirswa-confirm-loc-lead {
  font-size: 0.8rem;
}

.header-location-panel {
  background: #f3f4f6;
  display: flex;
  flex-direction: column;
}

.header-location-drawer-head {
  background: #fff;
  padding: 12px 14px;
  margin-bottom: 0;
  border-bottom: 1px solid #eef2f7;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.header-location-drawer-head .header-location-title {
  flex: 1 1 auto;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.mirswa-loc-head-back {
  border: 0;
  background: transparent;
  color: #1648b8;
  font-size: 1.35rem;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
}

.mirswa-loc-screen {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 12px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mirswa-loc-screen--map {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.header-location-hint:empty {
  display: none;
}

.header-location-hint.text-danger {
  display: block;
}

.header-location-or {
  margin: 0;
  text-align: center;
  font-size: 0.82rem;
  color: #64748b;
}

.mirswa-loc-card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.mirswa-loc-search-standalone {
  flex-shrink: 0;
}

.mirswa-loc-search-standalone .mirswa-uk-address-root--drawer,
.mirswa-loc-search-standalone .mirswa-uk-address-root--compact {
  margin: 0;
  padding: 0;
}

.mirswa-loc-search-standalone .mirswa-loc-search-input {
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
  min-height: 46px;
  padding-left: 2.4rem;
}

.mirswa-loc-search-standalone .mirswa-loc-search-input:focus {
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

.mirswa-loc-hidden-map-btn {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.mirswa-loc-actions-card {
  padding: 0;
}

.mirswa-loc-action-icon--add {
  background: #eff6ff;
}

.mirswa-loc-postcode-block {
  background: #fff;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.mirswa-loc-postcode-block .header-location-or {
  margin-bottom: 8px;
}

.mirswa-loc-postcode-block .header-location-hint {
  margin-top: 8px;
  margin-bottom: 0;
}

.header-location-label-row {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.header-location-caret-inline {
  font-size: 14px;
  color: #475467;
  line-height: 1;
}

.header-location-uk-wrap .mirswa-uk-address-root--drawer {
  margin: 0;
  padding: 12px 12px 0;
}

.mirswa-loc-search-field {
  position: relative;
}

.mirswa-loc-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 1.1rem;
  z-index: 2;
  pointer-events: none;
}

.mirswa-loc-search-input {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding-left: 2.2rem;
  background: #f8fafc;
  min-height: 44px;
}

.mirswa-loc-search-input:focus {
  background: #fff;
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.12);
}

.mirswa-loc-action-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  background: #fff;
  text-align: left;
  padding: 12px;
  text-decoration: none;
  color: inherit;
}

button.mirswa-loc-action-row:hover,
a.mirswa-loc-action-row:hover {
  background: #f8fafc;
}

.mirswa-loc-action-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #eff6ff;
  color: #1648b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.mirswa-loc-action-text {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.mirswa-loc-action-text strong {
  font-size: 0.92rem;
  color: #0f172a;
}

.mirswa-loc-action-text small {
  font-size: 0.78rem;
  color: #64748b;
}

.mirswa-loc-action-chevron {
  color: #94a3b8;
  font-size: 1.1rem;
}

.mirswa-loc-divider {
  height: 1px;
  background: #eef2f7;
  margin: 0 12px;
}

.header-location-form {
  display: flex;
  gap: 8px;
  align-items: stretch;
}

.header-location-saved-wrap {
  margin-top: 4px;
}

.header-location-saved-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 10px;
}

.header-saved-address-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#header_location_panel .header-location-close {
  margin-left: auto;
  flex-shrink: 0;
}

.header-location-guest-note {
  font-size: 0.88rem;
  color: #64748b;
}

.header-location-guest-note a {
  color: #e11d48;
  font-weight: 600;
  text-decoration: none;
}

.header-location-guest-note a:hover {
  text-decoration: underline;
}

.mirswa-saved-addr-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
}

.mirswa-saved-addr-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #eff6ff;
  color: #1648b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mirswa-saved-addr-body {
  flex: 1 1 auto;
  min-width: 0;
}

.mirswa-saved-addr-card .header-saved-address-name {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.92rem;
  font-weight: 700;
}

.mirswa-saved-addr-card .header-saved-address-text {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  line-height: 1.35;
  color: #64748b;
}

.header-saved-default-badge {
  font-size: 0.68rem;
  font-weight: 700;
  color: #059669;
  background: #ecfdf5;
  border-radius: 999px;
  padding: 2px 8px;
}

.mirswa-saved-addr-menu {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.mirswa-saved-addr-menu .header-saved-address-edit,
.mirswa-saved-addr-menu .header-saved-address-delete {
  border: 0;
  background: transparent;
  color: #64748b;
  padding: 2px;
  font-size: 1rem;
  line-height: 1;
}

.mirswa-loc-screen--map .mirswa-uk-inline-map-wrap {
  position: relative;
  flex: 1 1 auto;
  min-height: 220px;
  background: #e2e8f0;
}

.mirswa-uk-inline-map-canvas {
  width: 100%;
  height: 100%;
  min-height: 220px;
}

.mirswa-loc-screen--map .mirswa-uk-map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -100%);
  z-index: 2;
  color: #1648b8;
  font-size: 2.2rem;
  pointer-events: none;
}

.mirswa-drawer-map-sheet {
  background: #fff;
  border-radius: 16px 16px 0 0;
  box-shadow: 0 -4px 20px rgba(15, 23, 42, 0.08);
  padding: 12px 14px 16px;
  flex-shrink: 0;
}

.mirswa-drawer-map-hint {
  background: #ecfdf5;
  color: #047857;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.mirswa-drawer-map-address {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.mirswa-drawer-map-address > i {
  color: #1648b8;
  font-size: 1.2rem;
  margin-top: 2px;
}

.mirswa-drawer-map-label {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
}

.mirswa-drawer-map-address .small.text-muted {
  font-size: 0.82rem;
  line-height: 1.4;
  color: #64748b !important;
}

.mirswa-drawer-map-confirm {
  border-radius: 10px;
  min-height: 44px;
  font-weight: 700;
}

.mirswa-map-search-overlay {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  z-index: 6;
}

.mirswa-map-search-overlay .mirswa-loc-search-field {
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
}

.mirswa-map-search-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  max-height: 220px;
  overflow: auto;
  background: #fff;
}

.mirswa-confirm-loc-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mirswa-confirm-loc-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px;
}

.mirswa-confirm-loc-card > i {
  color: #1648b8;
  font-size: 1.2rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.mirswa-confirm-loc-title {
  font-weight: 700;
  font-size: 0.95rem;
  color: #0f172a;
  line-height: 1.3;
}

.mirswa-confirm-loc-line {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.4;
  margin-top: 4px;
}

.mirswa-confirm-loc-edit-map {
  border: 0;
  background: transparent;
  color: #1648b8;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0;
  margin-top: 8px;
}

.mirswa-confirm-loc-lead {
  margin: 0;
  font-size: 0.88rem;
  color: #334155;
  font-weight: 500;
}

.mirswa-confirm-loc-map {
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.mirswa-confirm-loc-map-canvas {
  width: 100%;
  height: 140px;
}

.mirswa-form-search-block .mirswa-uk-address-root--drawer {
  margin: 0;
  padding: 0;
}

.mirswa-form-search-block .mirswa-loc-search-input {
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.08);
  min-height: 42px;
}

#header_location_screen_form {
  gap: 10px;
}

#header_location_screen_form .header-inline-edit-wrap {
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

#header_location_screen_form .mirswa-drawer-form-grid {
  --bs-gutter-y: 0.45rem;
}

.mirswa-uk-address-dropdown {
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
  border: 1px solid #e2e8f0;
  margin-top: 4px;
  z-index: 20;
}

@media (max-width: 767px) {
  .header-location-panel.is-open {
    width: 100vw;
    max-width: 100vw;
  }
}

.header-location-signin-link {
  font-size: inherit;
  font-weight: 600;
  color: #1648b8 !important;
  text-decoration: underline;
  vertical-align: baseline;
  border: 0;
  background: transparent;
}
