.store-simple-main {
  min-width: 0;
}

.store-simple-intro {
  margin-bottom: 16px;
  align-items: center;
}

.store-form-status {
  min-width: 235px;
  padding: 12px 14px;
  border: 1px solid rgba(245, 158, 11, .22);
  border-radius: 16px;
  background: #fffbeb;
  display: flex;
  align-items: center;
  gap: 10px;
}

.store-form-status.is-saved {
  border-color: rgba(16, 185, 129, .22);
  background: #ecfdf5;
}

.store-form-status .status-dot {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 5px rgba(245, 158, 11, .12);
}

.store-form-status.is-saved .status-dot {
  background: #10b981;
  box-shadow: 0 0 0 5px rgba(16, 185, 129, .12);
}

.store-form-status strong,
.store-form-status small {
  display: block;
}

.store-form-status small {
  margin-top: 2px;
  color: #92400e;
}

.store-form-status.is-saved small {
  color: #047857;
}

.store-simple-form {
  padding: 0;
  overflow: hidden;
}

.store-form-section {
  padding: clamp(20px, 3vw, 32px);
}

.store-section-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.store-section-number {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--red-700), var(--red-950));
  color: #fff;
  font-size: 20px;
  font-weight: 950;
  box-shadow: var(--shadow-red);
}

.store-section-head h2 {
  margin: 4px 0 3px;
  font-size: clamp(25px, 4vw, 34px);
}

.store-section-head p {
  margin: 0;
  color: var(--muted);
}

.store-fields-grid {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 17px;
}

.store-field {
  min-width: 0;
  display: block;
}

.store-field-wide {
  grid-column: 1 / -1;
}

.store-field-label {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 7px;
  color: var(--text);
  font-weight: 900;
}

.store-field-label b {
  color: var(--red-700);
}

.store-field input,
.store-field select,
.store-field textarea {
  width: 100%;
  min-height: 49px;
  border: 1px solid var(--line);
  border-radius: 14px;
  outline: 0;
  background: var(--surface-2);
  color: var(--text);
  padding: 10px 12px;
  font: inherit;
  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    background .18s ease;
}

.store-field textarea {
  min-height: 125px;
  resize: vertical;
  line-height: 1.85;
}

.store-field input:hover,
.store-field select:hover,
.store-field textarea:hover {
  border-color: rgba(100, 116, 139, .45);
}

.store-field input:focus,
.store-field select:focus,
.store-field textarea:focus {
  border-color: rgba(189, 31, 37, .5);
  background: var(--surface);
  box-shadow: 0 0 0 4px rgba(189, 31, 37, .08);
}

.store-field.is-invalid input,
.store-field.is-invalid select,
.store-field.is-invalid textarea {
  border-color: #dc2626;
  background: #fef2f2;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, .07);
}

.store-field > small,
.store-character-row small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.store-character-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.store-field-error,
.store-map-error {
  min-height: 19px;
  display: block;
  margin-top: 4px;
  color: #b91c1c;
  font-size: 12px;
  font-style: normal;
}

.store-section-divider {
  height: 1px;
  margin-inline: clamp(20px, 3vw, 32px);
  background: var(--line);
}

.store-location-layout {
  margin-top: 22px;
  display: grid;
  grid-template-columns: minmax(260px, .72fr) minmax(420px, 1.28fr);
  gap: 20px;
  align-items: start;
}

.store-location-fields {
  display: grid;
  gap: 14px;
}

.store-coordinate-card {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.store-coordinate-card span,
.store-coordinate-card strong {
  display: block;
}

.store-coordinate-card span {
  color: var(--muted);
  font-size: 12px;
}

.store-coordinate-card strong {
  margin-top: 2px;
  direction: ltr;
  text-align: right;
  font-size: 14px;
}

.store-coordinate-card button {
  flex: 0 0 auto;
}

.store-map-column {
  min-width: 0;
}

.store-map-head {
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.store-map-head strong,
.store-map-head span {
  display: block;
}

.store-map-head span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.store-map-locate {
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid rgba(189, 31, 37, .18);
  border-radius: 12px;
  background: var(--red-50);
  color: var(--red-800);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.store-map-locate span {
  margin: 0;
  color: inherit;
  font-size: 18px;
}

.store-map {
  position: relative;
  min-height: 410px;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(226, 232, 240, .42), transparent 38%),
    #eef1ed;
  cursor: crosshair;
  isolation: isolate;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45);
}

.store-map:focus-visible {
  outline: 4px solid rgba(189, 31, 37, .12);
  border-color: rgba(189, 31, 37, .45);
}

.store-map-grid {
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(25deg, transparent 48%, rgba(255,255,255,.78) 49%, rgba(255,255,255,.78) 52%, transparent 53%),
    linear-gradient(-38deg, transparent 46%, rgba(255,255,255,.7) 47%, rgba(255,255,255,.7) 50%, transparent 51%),
    linear-gradient(90deg, rgba(148,163,184,.16) 1px, transparent 1px),
    linear-gradient(rgba(148,163,184,.16) 1px, transparent 1px);
  background-size:
    170px 120px,
    220px 160px,
    34px 34px,
    34px 34px;
  opacity: .82;
}

.map-road {
  position: absolute;
  z-index: 2;
  height: 7px;
  border: 2px solid rgba(248, 113, 113, .45);
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 0 0 2px rgba(255,255,255,.35);
}

.map-road-one {
  width: 115%;
  top: 34%;
  right: -8%;
  transform: rotate(-8deg);
}

.map-road-two {
  width: 96%;
  top: 63%;
  right: 2%;
  transform: rotate(14deg);
}

.map-road-three {
  width: 82%;
  top: 48%;
  left: -11%;
  transform: rotate(42deg);
}

.map-road-four {
  width: 66%;
  top: 50%;
  right: -7%;
  transform: rotate(-49deg);
}

.map-area {
  position: absolute;
  z-index: 0;
  border-radius: 42% 58% 64% 36%;
  background: rgba(134, 239, 172, .38);
}

.map-area-one {
  width: 230px;
  height: 150px;
  top: -28px;
  left: -32px;
}

.map-area-two {
  width: 210px;
  height: 135px;
  right: 10%;
  bottom: -44px;
  transform: rotate(12deg);
}

.map-city {
  position: absolute;
  z-index: 3;
  color: rgba(71, 85, 105, .82);
  font-size: 11px;
  font-weight: 900;
  pointer-events: none;
}

.city-one { top: 20%; right: 24%; }
.city-two { top: 53%; right: 52%; }
.city-three { bottom: 18%; left: 16%; }
.city-four { top: 72%; right: 17%; }

.store-map-marker {
  position: absolute;
  z-index: 20;
  width: 38px;
  height: 50px;
  border: 0;
  background: transparent;
  transform: translate(-50%, -88%);
  cursor: grab;
}

.store-map-marker:active {
  cursor: grabbing;
}

.store-map-marker::before {
  content: "";
  position: absolute;
  inset: 1px 2px 10px;
  border-radius: 50% 50% 50% 0;
  background: linear-gradient(135deg, var(--red-600), var(--red-950));
  transform: rotate(-45deg);
  box-shadow: 0 9px 22px rgba(127, 17, 26, .28);
}

.store-map-marker span {
  position: relative;
  z-index: 2;
  top: 11px;
  display: block;
  color: #fff;
  font-size: 13px;
}

.store-map-marker::after {
  content: "";
  position: absolute;
  right: 50%;
  bottom: 0;
  width: 22px;
  height: 7px;
  border-radius: 50%;
  background: rgba(15, 23, 42, .18);
  transform: translateX(50%);
  filter: blur(2px);
}

.store-map-hint {
  position: absolute;
  z-index: 10;
  top: 50%;
  right: 50%;
  width: min(300px, calc(100% - 32px));
  padding: 16px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 17px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 16px 35px rgba(15, 23, 42, .12);
  transform: translate(50%, -50%);
  text-align: center;
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.store-map-hint span,
.store-map-hint strong,
.store-map-hint small {
  display: block;
}

.store-map-hint span {
  margin-bottom: 6px;
  font-size: 34px;
}

.store-map-hint small {
  margin-top: 3px;
  color: #64748b;
}

.store-map-controls {
  position: absolute;
  z-index: 12;
  top: 12px;
  left: 12px;
  display: grid;
  gap: 4px;
}

.store-map-controls button {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(148, 163, 184, .42);
  background: rgba(255,255,255,.92);
  color: #334155;
  font-size: 20px;
}

.store-map-controls button:first-child {
  border-radius: 10px 10px 4px 4px;
}

.store-map-controls button:last-child {
  border-radius: 4px 4px 10px 10px;
}

.store-form-footer {
  padding: 18px clamp(20px, 3vw, 32px);
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.store-form-footer strong,
.store-form-footer span {
  display: block;
}

.store-form-footer span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.store-form-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.store-submit-btn {
  min-width: 175px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.store-submit-btn b {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,.18);
}

.store-success-dialog {
  width: min(490px, calc(100% - 24px));
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 30px 90px rgba(15, 23, 42, .28);
}

.store-success-dialog::backdrop {
  background: rgba(15, 23, 42, .62);
  backdrop-filter: blur(5px);
}

.store-success-card {
  padding: 27px;
  text-align: center;
}

.store-success-icon {
  width: 76px;
  height: 76px;
  margin: 0 auto;
  border-radius: 24px;
  display: grid;
  place-items: center;
  background: #ecfdf5;
  color: #047857;
  font-size: 36px;
  font-weight: 950;
}

.store-success-card h2 {
  margin: 15px 0 5px;
}

.store-success-card > p {
  margin: 0;
  color: var(--muted);
}

.store-success-summary {
  margin: 17px 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface-2);
  text-align: right;
}

.store-success-summary div {
  padding: 7px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px dashed var(--line);
}

.store-success-summary div:last-child {
  border-bottom: 0;
}

.store-success-summary span {
  color: var(--muted);
  font-size: 12px;
}

.store-success-summary strong {
  max-width: 65%;
  overflow-wrap: anywhere;
}

.store-toast {
  position: fixed;
  z-index: 500;
  left: 50%;
  bottom: 28px;
  min-width: min(350px, calc(100% - 24px));
  padding: 12px 15px;
  border-radius: 14px;
  background: #111827;
  color: #fff;
  box-shadow: 0 18px 50px rgba(15,23,42,.24);
  transform: translateX(-50%);
  text-align: center;
  font-weight: 900;
}

.store-toast[hidden] {
  display: none !important;
}

body.dark-mode .store-form-status {
  background: rgba(245, 158, 11, .1);
}

body.dark-mode .store-form-status.is-saved {
  background: rgba(16, 185, 129, .1);
}

body.dark-mode .store-map {
  background:
    linear-gradient(135deg, rgba(30, 41, 59, .46), transparent 38%),
    #273129;
}

body.dark-mode .store-map-hint {
  border-color: rgba(148, 163, 184, .24);
  background: rgba(15, 23, 42, .84);
}

body.dark-mode .store-map-hint small {
  color: #94a3b8;
}

body.dark-mode .map-city {
  color: rgba(203, 213, 225, .72);
}

body.dark-mode .map-road {
  background: rgba(51, 65, 85, .94);
}

@media (max-width: 1050px) {
  .store-location-layout {
    grid-template-columns: 1fr;
  }

  .store-map {
    min-height: 380px;
  }
}

@media (max-width: 760px) {
  .store-simple-intro {
    align-items: flex-start;
  }

  .store-form-status {
    width: 100%;
    min-width: 0;
  }

  .store-fields-grid {
    grid-template-columns: 1fr;
  }

  .store-field-wide {
    grid-column: auto;
  }

  .store-section-head {
    gap: 10px;
  }

  .store-section-number {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    font-size: 17px;
  }

  .store-map-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .store-map-locate {
    width: 100%;
    justify-content: center;
  }

  .store-form-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .store-form-actions {
    width: 100%;
  }

  .store-form-actions button {
    flex: 1;
  }
}

@media (max-width: 520px) {
  .store-form-section {
    padding: 17px;
  }

  .store-section-divider {
    margin-inline: 17px;
  }

  .store-map {
    min-height: 315px;
    border-radius: 16px;
  }

  .store-coordinate-card {
    align-items: stretch;
    flex-direction: column;
  }

  .store-coordinate-card button {
    width: 100%;
  }

  .store-character-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 0;
  }

  .store-form-footer {
    padding: 16px 17px;
  }

  .store-form-actions {
    flex-direction: column-reverse;
  }

  .store-form-actions button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
