/* =========================================================
   Fix Pallini Clean Category Wizard
   Batch21: compact rewrite from scratch
   Scope only: fpcw-*
   ========================================================= */

/* ---------- Category page buttons / launch area ---------- */

.fpcw-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  align-items: center;
}

.fpcw-hero-btn,
.fpcw-hero-btn-primary,
.fpcw-launch-btn {
  appearance: none;
  border: 0;
  border-radius: 14px;
  min-height: 40px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  color: #fff !important;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  box-shadow: 0 12px 24px rgba(37, 99, 235, .24);
  cursor: pointer;
}

.fpcw-hero-btn:hover,
.fpcw-hero-btn-primary:hover,
.fpcw-launch-btn:hover {
  transform: translateY(-1px);
  color: #fff;
}

.fpcw-hero-btn:focus-visible,
.fpcw-hero-btn-primary:focus-visible,
.fpcw-launch-btn:focus-visible {
  outline: 3px solid rgba(125, 211, 252, .9);
  outline-offset: 3px;
  color: #fff;
}

.fpcw-launch-panel {
  margin: 14px 0 18px;
  border: 1px solid rgba(191, 219, 254, .75);
  border-radius: 20px;
  background: linear-gradient(135deg, #eff6ff, #fff);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .07);
}

.fpcw-launch-copy {
  display: grid;
  gap: 4px;
}

.fpcw-launch-copy strong {
  font-size: 16px;
  line-height: 1.2;
  color: #0f172a;
}

.fpcw-launch-copy span {
  color: #475569;
  font-size: 13px;
  font-weight: 700;
}

/* ---------- Modal shell ---------- */

.fpcw-modal-root {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
}

.fpcw-modal-root.is-open {
  display: block;
}

.fpcw-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, .70);
}

.fpcw-dialog {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(920px, calc(100vw - 28px));
  max-height: calc(100vh - 22px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 22px;
  background: #0f1b2d;
  color: #f8fafc;
  border: 1px solid rgba(148, 163, 184, .34);
  box-shadow: 0 26px 85px rgba(0, 0, 0, .48);
}

.fpcw-close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, .10);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

/* ---------- Header ---------- */

.fpcw-head {
  display: grid;
  grid-template-columns: 62px 1fr 62px;
  gap: 14px;
  align-items: center;
  padding: 18px 24px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, .22);
}

.fpcw-logo-slot,
.fpcw-icon-slot {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(148, 163, 184, .25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.fpcw-logo-slot img,
.fpcw-icon-slot img {
  max-width: 42px;
  max-height: 42px;
  object-fit: contain;
}

.fpcw-logo-slot span,
.fpcw-icon-slot span {
  font-weight: 1000;
  font-size: 16px;
  color: #fff;
}

.fpcw-kicker {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #7dd3fc;
}

.fpcw-title-wrap h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.08;
  font-weight: 1000;
}

.fpcw-title-wrap p {
  margin: 5px 0 0;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.35;
  font-weight: 600;
}

/* ---------- Steps ---------- */

.fpcw-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  padding: 7px 24px;
  border-bottom: 1px solid rgba(148, 163, 184, .18);
}

.fpcw-step {
  min-height: 34px;
  border-radius: 11px;
  border: 1px solid rgba(148, 163, 184, .24);
  background: rgba(15, 23, 42, .70);
  color: #94a3b8;
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 5px 7px;
  cursor: pointer;
  text-align: left;
}

.fpcw-step span {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(148, 163, 184, .16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 1000;
  flex: 0 0 auto;
}

.fpcw-step strong {
  font-size: 11px;
  line-height: 1.05;
  font-weight: 900;
}

.fpcw-step.is-active {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  border-color: rgba(191, 219, 254, .75);
  color: #fff;
  box-shadow: 0 8px 18px rgba(37, 99, 235, .22);
}

.fpcw-step.is-active span {
  background: #fff;
  color: #2563eb;
}

/* ---------- Form / panels ---------- */

.fpcw-form {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.fpcw-body {
  padding: 16px 24px;
  overflow: auto;
}

.fpcw-panel {
  display: none;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 18px;
  background: rgba(15, 23, 42, .58);
  padding: 16px;
}

.fpcw-panel.is-active {
  display: block;
}

.fpcw-badge {
  display: inline-flex;
  margin-bottom: 8px;
  border-radius: 999px;
  padding: 5px 10px;
  background: rgba(96, 165, 250, .16);
  border: 1px solid rgba(96, 165, 250, .32);
  color: #bfdbfe;
  font-size: 12px;
  line-height: 1.2;
  font-weight: 900;
}

.fpcw-panel h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.12;
  font-weight: 1000;
}

.fpcw-panel p {
  margin: 6px 0 14px;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
}

/* ---------- Option cards ---------- */

.fpcw-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.fpcw-option {
  position: relative;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  min-height: 74px;
  border-radius: 16px;
  background: #101827;
  border: 1px solid rgba(148, 163, 184, .30);
  cursor: pointer;
}

.fpcw-option:hover {
  border-color: rgba(56, 189, 248, .75);
  background: #12213a;
}

.fpcw-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.fpcw-option-mark {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(148, 163, 184, .75);
  flex: 0 0 auto;
  margin-top: 2px;
}

.fpcw-option input:checked + .fpcw-option-mark {
  border-color: #38bdf8;
  background: radial-gradient(circle at center, #38bdf8 0 42%, transparent 45%);
}

.fpcw-option:has(input:checked) {
  border-color: #38bdf8;
  background: rgba(14, 165, 233, .16);
}

.fpcw-option-text strong {
  display: block;
  color: #fff;
  font-size: 14px;
  line-height: 1.2;
  margin-bottom: 4px;
  font-weight: 900;
}

.fpcw-option-text small {
  display: block;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
}

/* ---------- Fields ---------- */

.fpcw-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.fpcw-full {
  grid-column: 1 / -1;
}

.fpcw-field {
  display: grid;
  gap: 6px;
}

.fpcw-field span {
  font-size: 13px;
  line-height: 1.2;
  font-weight: 900;
  color: #f8fafc;
}

.fpcw-field input,
.fpcw-field select,
.fpcw-field textarea {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(148, 163, 184, .34);
  border-radius: 13px;
  background: #101827;
  color: #fff;
  padding: 10px 12px;
  font: inherit;
  font-size: 14px;
  outline: none;
}

.fpcw-field textarea {
  min-height: 86px;
  resize: vertical;
}

.fpcw-field small {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 600;
}

/* ---------- Location ---------- */

.fpcw-location-start {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 4px 0 14px;
}

.fpcw-location-mode {
  border: 1px solid rgba(148, 163, 184, .30);
  border-radius: 18px;
  background: #101827;
  color: #fff;
  text-align: left;
  padding: 13px;
  cursor: pointer;
  min-height: 92px;
  display: grid;
  grid-template-columns: 34px 1fr;
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: start;
}

.fpcw-location-mode > span {
  grid-row: 1 / 3;
  width: 34px;
  height: 34px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 1000;
  color: #fff;
}

.fpcw-location-mode strong,
.fpcw-location-mode small {
  display: block;
}

.fpcw-location-mode strong {
  font-size: 14px;
  line-height: 1.15;
  margin-top: 1px;
}

.fpcw-location-mode small {
  margin-top: 5px;
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}

.fpcw-location-mode-address > span { background: linear-gradient(135deg, #0ea5e9, #2563eb); }
.fpcw-location-mode-map > span { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.fpcw-location-mode-gps > span { background: linear-gradient(135deg, #22c55e, #15803d); }

.fpcw-location-mode:hover {
  transform: translateY(-1px);
  border-color: rgba(125, 211, 252, .70);
  background: #12213a;
}

.fpcw-location-mode.is-selected {
  border-color: #38bdf8;
  background: rgba(14, 165, 233, .14);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, .22);
}

.fpcw-location-panel {
  display: none;
  border: 1px solid rgba(148, 163, 184, .24);
  background: rgba(2, 6, 23, .22);
  border-radius: 16px;
  padding: 13px;
  margin-top: 10px;
}

.fpcw-location-panel.is-active {
  display: block;
}

.fpcw-location-panel-title {
  display: grid;
  gap: 3px;
  margin-bottom: 11px;
}

.fpcw-location-panel-title strong {
  color: #fff;
  font-size: 14px;
  line-height: 1.2;
  font-weight: 1000;
}

.fpcw-location-panel-title small,
.fpcw-map-picker-help {
  color: #94a3b8;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}

.fpcw-gps-box {
  border: 1px dashed rgba(34, 197, 94, .55);
  border-radius: 16px;
  background: rgba(22, 163, 74, .10);
  padding: 13px;
  color: #dcfce7;
  font-size: 13px;
  line-height: 1.4;
}

.fpcw-gps-box p {
  margin: 6px 0 11px;
  color: #bbf7d0;
}

.fpcw-mini-btn {
  border: 0;
  border-radius: 12px;
  background: #fff;
  color: #15803d;
  padding: 10px 13px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.fpcw-gps-status {
  display: block;
  margin-top: 8px;
  color: #bbf7d0;
  font-size: 12px;
  font-weight: 800;
}

.fpcw-map-picker {
  position: relative;
  height: 180px;
  min-height: 180px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(167, 139, 250, .55);
  background: #0b1220;
  margin-bottom: 9px;
}

.fpcw-map-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ddd6fe;
  font-size: 13px;
  font-weight: 900;
  background: linear-gradient(135deg, rgba(30, 41, 59, .96), rgba(15, 23, 42, .96));
}

.fpcw-map-picker .leaflet-container,
.fpcw-map-picker.leaflet-container {
  height: 180px;
  min-height: 180px;
  width: 100%;
  border-radius: 16px;
}

.fpcw-map-picker .leaflet-control-zoom {
  border: 1px solid rgba(37, 99, 235, .75);
  border-radius: 9px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, .22);
  overflow: hidden;
}

.fpcw-map-picker .leaflet-control-zoom a {
  width: 30px;
  height: 30px;
  line-height: 30px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(147, 197, 253, .32);
  background: #17375e;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  text-align: center;
}

.fpcw-map-picker .leaflet-control-zoom a:last-child {
  border-bottom: 0;
}

.fpcw-map-picker .leaflet-control-zoom a:hover,
.fpcw-map-picker .leaflet-control-zoom a:focus,
.fpcw-map-picker .leaflet-control-zoom a:focus-visible {
  background: #2563eb;
  color: #fff;
  outline: none;
}

.fpcw-location-result {
  margin-top: 12px;
  border: 1px solid rgba(125, 211, 252, .30);
  border-radius: 16px;
  background: rgba(14, 165, 233, .10);
  padding: 13px;
}

.fpcw-location-result-head {
  display: grid;
  gap: 3px;
  margin-bottom: 10px;
}

.fpcw-location-result-head strong {
  color: #fff;
  font-size: 14px;
  font-weight: 1000;
}

.fpcw-location-result-head small {
  color: #bfdbfe;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}

.fpcw-location-result dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.fpcw-location-result dl > div {
  border-radius: 13px;
  background: rgba(15, 23, 42, .62);
  border: 1px solid rgba(148, 163, 184, .18);
  padding: 9px;
}

.fpcw-location-result dt {
  color: #93c5fd;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: .03em;
  margin-bottom: 4px;
}

.fpcw-location-result dd {
  margin: 0;
  color: #fff;
  font-size: 12px;
  line-height: 1.3;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.fpcw-location-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.fpcw-location-action {
  border: 0;
  border-radius: 14px;
  min-height: 64px;
  padding: 9px;
  color: #fff;
  text-align: left;
  text-decoration: none;
  display: grid;
  grid-template-columns: 26px 1fr;
  grid-template-rows: auto auto;
  column-gap: 8px;
  align-items: center;
  cursor: pointer;
}

.fpcw-location-action > span {
  grid-row: 1 / 3;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255,255,255,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 1000;
}

.fpcw-location-action strong,
.fpcw-location-action small {
  display: block;
}

.fpcw-location-action strong {
  font-size: 12px;
  line-height: 1.1;
  font-weight: 1000;
}

.fpcw-location-action small {
  margin-top: 3px;
  color: rgba(255,255,255,.82);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 700;
}

.fpcw-location-action-confirm { background: linear-gradient(135deg, #16a34a, #15803d); }
.fpcw-location-action-change { background: linear-gradient(135deg, #f97316, #c2410c); }
.fpcw-location-action-map { background: linear-gradient(135deg, #0ea5e9, #2563eb); }

.fpcw-location-action.is-active {
  box-shadow: 0 0 0 2px #fff, 0 12px 24px rgba(0,0,0,.25);
}

.fpcw-location-help {
  margin-top: 9px;
  border-radius: 13px;
  background: rgba(15, 23, 42, .55);
  border: 1px solid rgba(148, 163, 184, .20);
  color: #dbeafe;
  padding: 9px 10px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
}

/* ---------- Notes / summary ---------- */

.fpcw-consent {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-top: 12px;
  border-radius: 14px;
  background: rgba(14, 165, 233, .12);
  border: 1px solid rgba(125, 211, 252, .30);
  padding: 10px 12px;
  color: #dbeafe;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
}

.fpcw-summary {
  display: grid;
  gap: 7px;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 16px;
  background: #101827;
  padding: 14px;
  color: #cbd5e1;
  font-size: 13px;
  line-height: 1.35;
}

.fpcw-summary strong {
  color: #fff;
}

.fpcw-submit-note {
  margin-top: 12px;
  border-radius: 14px;
  background: rgba(14, 165, 233, .12);
  border: 1px solid rgba(125, 211, 252, .30);
  padding: 10px 12px;
  color: #dbeafe;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 700;
}

.fpcw-alert {
  display: none;
  margin-top: 12px;
  border-radius: 14px;
  padding: 11px 12px;
  font-size: 13px;
  line-height: 1.4;
  font-weight: 800;
}

.fpcw-alert.is-error {
  display: block;
  background: #450a0a;
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, .45);
}

.fpcw-alert.is-success {
  display: block;
  background: #052e16;
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, .45);
}

/* ---------- Footer ---------- */

.fpcw-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 24px 14px;
  border-top: 1px solid rgba(148, 163, 184, .18);
}

.fpcw-btn {
  min-height: 36px;
  border: 0;
  border-radius: 11px;
  padding: 0 14px;
  font-size: 13px;
  line-height: 1;
  font-weight: 900;
  cursor: pointer;
}

.fpcw-btn-light {
  background: rgba(255, 255, 255, .10);
  color: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, .28);
}

.fpcw-btn-main {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  color: #fff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, .28);
}

.fpcw-btn-submit {
  background: linear-gradient(135deg, #16a34a, #15803d);
  color: #fff;
  box-shadow: 0 12px 24px rgba(22, 163, 74, .22);
}

.fpcw-btn[disabled] {
  opacity: .5;
  cursor: not-allowed;
}

.fpcw-honey {
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
}

/* ---------- Tablet map height ---------- */

@media (min-width: 761px) and (max-width: 899px) {
  .fpcw-map-picker,
  .fpcw-map-picker .leaflet-container,
  .fpcw-map-picker.leaflet-container {
    height: 170px;
    min-height: 170px;
  }
}

/* ---------- Desktop height tuning ---------- */

@media (min-width: 900px) {
  .fpcw-dialog {
    width: min(900px, calc(100vw - 32px));
  }

  .fpcw-body {
    max-height: calc(100vh - 230px);
  }

  .fpcw-panel {
    min-height: 0;
  }
}

/* ---------- Mobile ---------- */

@media (max-width: 760px) {
  .fpcw-launch-panel {
    display: grid;
  }

  .fpcw-launch-btn,
  .fpcw-hero-btn {
    width: 100%;
  }

  .fpcw-hero-actions {
    display: grid;
  }

  .fpcw-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    border-radius: 20px;
  }

  .fpcw-head {
    grid-template-columns: 48px 1fr 48px;
    padding: 18px 14px 12px;
    gap: 10px;
  }

  .fpcw-logo-slot,
  .fpcw-icon-slot {
    width: 46px;
    height: 46px;
    border-radius: 14px;
  }

  .fpcw-logo-slot img,
  .fpcw-icon-slot img {
    max-width: 34px;
    max-height: 34px;
  }

  .fpcw-title-wrap h2 {
    font-size: 21px;
  }

  .fpcw-title-wrap p {
    font-size: 12px;
  }

  .fpcw-steps {
    display: flex;
    overflow-x: auto;
    gap: 6px;
    padding: 7px 14px;
  }

  .fpcw-step {
    min-width: 104px;
    min-height: 36px;
  }

  .fpcw-body {
    padding: 14px;
  }

  .fpcw-panel {
    padding: 14px;
  }

  .fpcw-options,
  .fpcw-grid,
  .fpcw-location-modes {
    grid-template-columns: 1fr;
  }

  .fpcw-foot {
    padding: 10px 14px 13px;
  }

  .fpcw-btn {
    flex: 1;
    padding: 0 12px;
  }

  .fpcw-location-start,
  .fpcw-location-result dl,
  .fpcw-location-actions {
    grid-template-columns: 1fr;
  }

  .fpcw-location-mode {
    min-height: 76px;
  }

  .fpcw-map-picker,
  .fpcw-map-picker .leaflet-container,
  .fpcw-map-picker.leaflet-container {
    height: 155px;
    min-height: 155px;
  }

}

/* ---------- Very small screens ---------- */

@media (max-width: 420px) {
  .fpcw-head {
    grid-template-columns: 1fr 44px;
  }

  .fpcw-logo-slot {
    display: none;
  }

  .fpcw-icon-slot {
    grid-column: 2;
    grid-row: 1;
  }

  .fpcw-title-wrap {
    grid-column: 1;
    grid-row: 1;
  }

  .fpcw-close {
    top: 8px;
    right: 8px;
  }
}

/* ---------- Batch25 GPS result / map preview ---------- */
.fpcw-location-result {
  margin-top: 12px;
  border: 1px solid rgba(125, 211, 252, .34);
  border-radius: 16px;
  background: rgba(15, 23, 42, .46);
  padding: 12px;
}

.fpcw-location-result[hidden] {
  display: none !important;
}

.fpcw-location-result-head {
  display: grid;
  gap: 3px;
  margin-bottom: 10px;
}

.fpcw-location-result-head strong {
  color: #fff;
  font-size: 14px;
  line-height: 1.2;
}

.fpcw-location-result-head small {
  color: #bae6fd;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 700;
}

.fpcw-location-result dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 10px;
}

.fpcw-location-result dl > div {
  border-radius: 12px;
  background: rgba(2, 6, 23, .32);
  border: 1px solid rgba(148, 163, 184, .18);
  padding: 9px 10px;
  min-width: 0;
}

.fpcw-location-result dt {
  margin: 0 0 3px;
  color: #93c5fd;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.fpcw-location-result dd {
  margin: 0;
  color: #f8fafc;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.fpcw-map-preview {
  width: 100%;
  height: 170px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, .24);
  background: rgba(2, 6, 23, .35);
}

.fpcw-map-preview[hidden] {
  display: none !important;
}

.fpcw-map-preview iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.fpcw-map-link {
  display: inline-flex;
  margin-top: 9px;
  color: #bae6fd;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
}

.fpcw-map-link:hover {
  color: #fff;
  text-decoration: underline;
}

@media (max-width: 760px) {
  .fpcw-location-result dl {
    grid-template-columns: 1fr;
  }

  .fpcw-map-preview {
    height: 150px;
  }
}

/* ---------- Batch26 location action buttons ---------- */
.fpcw-location-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 10px;
}

.fpcw-location-actions[hidden],
.fpcw-location-help[hidden] {
  display: none !important;
}

.fpcw-location-action {
  min-height: 66px;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 15px;
  padding: 10px 11px;
  display: grid;
  grid-template-columns: 24px 1fr;
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 2px;
  align-items: start;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
  color: #fff;
}

.fpcw-location-action span {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  grid-row: 1 / span 2;
  font-size: 14px;
  font-weight: 1000;
  background: rgba(255, 255, 255, .18);
}

.fpcw-location-action strong {
  display: block;
  color: #fff;
  font-size: 13px;
  line-height: 1.15;
  font-weight: 1000;
}

.fpcw-location-action small {
  display: block;
  color: rgba(255, 255, 255, .82);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 700;
}

.fpcw-location-action-confirm {
  background: linear-gradient(135deg, #16a34a, #15803d);
  box-shadow: 0 10px 18px rgba(22, 163, 74, .18);
}

.fpcw-location-action-change {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  box-shadow: 0 10px 18px rgba(245, 158, 11, .16);
}

.fpcw-location-action-map {
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  box-shadow: 0 10px 18px rgba(37, 99, 235, .18);
}

.fpcw-location-action:hover {
  color: #fff;
  transform: translateY(-1px);
  text-decoration: none;
}

.fpcw-location-action.is-active {
  outline: 2px solid rgba(255, 255, 255, .75);
  outline-offset: 2px;
}

.fpcw-location-help {
  margin-top: 9px;
  border: 1px solid rgba(251, 191, 36, .34);
  border-radius: 14px;
  background: rgba(251, 191, 36, .10);
  color: #fde68a;
  padding: 9px 11px;
  font-size: 12px;
  line-height: 1.4;
  font-weight: 800;
}

@media (max-width: 760px) {
  .fpcw-location-actions {
    grid-template-columns: 1fr;
  }

  .fpcw-location-action {
    min-height: 58px;
  }
}

/* ---------- Batch28 map confirmation flow ---------- */
.fpcw-map-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 10px;
}

.fpcw-map-actions .fpcw-location-action {
  min-height: 62px;
}

.fpcw-location-action[disabled] {
  opacity: .42;
  filter: grayscale(.25);
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
}

.fpcw-location-action-confirm.is-pending {
  opacity: 1;
  filter: none;
  animation: fpcwConfirmPulse 1.1s ease-in-out infinite;
  outline: 2px solid rgba(250, 204, 21, .95);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(250, 204, 21, .18), 0 14px 28px rgba(22, 163, 74, .25);
}

.fpcw-location-action-confirm.is-loading {
  opacity: .78;
  cursor: progress;
}

.fpcw-location-action-confirm.is-active {
  animation: none;
  outline: 2px solid rgba(255, 255, 255, .85);
  outline-offset: 2px;
}

@keyframes fpcwConfirmPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

@media (max-width: 760px) {
  .fpcw-map-actions {
    grid-template-columns: 1fr;
  }
}
