/**
 * ERVENOW — تسجيل متجر (مطابقة لوحة زائر المنصة)
 */
body.guest-shell-page.reg-store-page {
  background:
    radial-gradient(1200px 600px at 100% -10%, rgba(185, 135, 47, 0.1), transparent 55%),
    radial-gradient(900px 500px at -5% 50%, rgba(61, 34, 19, 0.04), transparent 50%),
    var(--bg, #f8f4ee);
}

.reg-store-layout {
  max-width: min(720px, 100%);
  margin-inline: auto;
}

.reg-store-perks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.reg-store-perks__item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(185, 135, 47, 0.22);
  background: linear-gradient(145deg, #fffefb, #f8f0e6);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brown-mid, #5c4a3d);
  box-shadow: 0 2px 10px rgba(45, 26, 14, 0.05);
}

.reg-store-perks__ic {
  font-size: 1rem;
  line-height: 1;
}

.reg-store-intro {
  margin-bottom: 18px;
  padding: clamp(16px, 3.5vw, 22px);
  border-radius: 18px;
  border: 1px solid rgba(185, 135, 47, 0.2);
  background: linear-gradient(145deg, #fffefb 0%, #f5ede2 100%);
  box-shadow: 0 8px 28px rgba(45, 26, 14, 0.06);
}

.reg-store-intro__lead {
  margin: 0;
  font-size: clamp(0.9rem, 2.4vw, 0.96rem);
  font-weight: 600;
  line-height: 1.65;
  color: var(--muted, #5c4a3d);
}

.reg-store-intro__lead a {
  color: var(--gold, #b9872f);
  font-weight: 800;
  text-decoration: none;
}

.reg-store-intro__lead a:hover {
  text-decoration: underline;
}

.reg-store-admin {
  margin-top: 14px;
  padding: 0;
  border: none;
  background: transparent;
}

.reg-store-admin > summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 0.86rem;
  color: var(--brown, #3d2213);
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed rgba(61, 34, 19, 0.18);
  background: rgba(255, 254, 251, 0.7);
  list-style: none;
}

.reg-store-admin > summary::-webkit-details-marker {
  display: none;
}

.reg-store-admin__body {
  margin: 12px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 254, 251, 0.9);
  border: 1px solid rgba(61, 34, 19, 0.08);
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--muted, #5c4a3d);
}

.reg-store-admin__body ol {
  margin: 0;
  padding-inline-start: 1.25rem;
}

.reg-store-form-card {
  padding: 0;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid var(--border, rgba(61, 34, 19, 0.12));
  background: var(--card, #fffefb);
  box-shadow: 0 12px 40px rgba(45, 26, 14, 0.08);
}

.reg-store-section {
  margin: 0;
  padding: clamp(20px, 4vw, 26px) clamp(18px, 4vw, 24px);
  border-top: 1px solid rgba(61, 34, 19, 0.08);
}

.reg-store-section:first-child {
  border-top: none;
}

.reg-store-section__head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.reg-store-section__num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #3d2213, #2b170d);
  color: #f8f4ee;
  font-size: 0.95rem;
  font-weight: 900;
  box-shadow: 0 4px 14px rgba(45, 26, 14, 0.2);
}

.reg-store-section__title {
  margin: 0;
  font-size: clamp(1.02rem, 2.6vw, 1.12rem);
  font-weight: 900;
  color: var(--brown, #3d2213);
  line-height: 1.3;
}

.reg-store-section__hint {
  margin: 4px 0 0;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted, #5c4a3d);
  line-height: 1.55;
}

.reg-store-page label {
  display: block;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 6px;
  color: var(--brown, #3d2213);
}

.reg-store-page input[type="text"],
.reg-store-page input[type="tel"],
.reg-store-page input[type="email"],
.reg-store-page input[type="file"],
.reg-store-page select,
.reg-store-page textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(61, 34, 19, 0.14);
  background: #fffefb;
  font-family: inherit;
  font-size: 1rem;
  margin-bottom: 0;
  box-shadow: inset 0 1px 2px rgba(45, 26, 14, 0.04);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.reg-store-page input:focus,
.reg-store-page select:focus,
.reg-store-page textarea:focus {
  outline: none;
  border-color: rgba(185, 135, 47, 0.55);
  box-shadow: 0 0 0 3px rgba(185, 135, 47, 0.18);
}

.reg-store-page .field-gap {
  margin-top: 14px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.reg-store-map-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.reg-store-map-search {
  flex: 1 1 180px;
  min-width: 0;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(61, 34, 19, 0.14);
  background: #fffefb;
  font-family: inherit;
  font-size: 0.95rem;
}

.reg-store-map-toolbar .btn {
  flex-shrink: 0;
  min-height: 44px;
}

.reg-store-map-wrap {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(185, 135, 47, 0.25);
  box-shadow: 0 6px 24px rgba(45, 26, 14, 0.08);
}

.reg-store-map-legend {
  margin: 10px 0 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted, #5c4a3d);
  line-height: 1.5;
}

.reg-store-page #map {
  height: min(52vw, 320px);
  min-height: 240px;
  margin: 0;
  border: none;
  border-radius: 0;
}

.reg-store-map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.reg-store-map-actions .btn {
  min-height: 44px;
}

.reg-store-map-status {
  margin: 10px 0 0;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(185, 135, 47, 0.08);
  border: 1px solid rgba(185, 135, 47, 0.2);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--brown-mid, #5c4a3d);
}

.reg-store-map-status.is-ok {
  background: rgba(46, 125, 74, 0.1);
  border-color: rgba(46, 125, 74, 0.28);
  color: #1e5631;
}

.reg-store-map-status.is-pending {
  background: rgba(185, 135, 47, 0.08);
  border-color: rgba(185, 135, 47, 0.22);
}

/* دبابيس خريطة ERVENOW */
.erv-store-map__pin {
  background: transparent;
  border: none;
}

.erv-store-map__pin--new span {
  display: block;
  width: 28px;
  height: 36px;
  background: linear-gradient(180deg, #e8c078 0%, #b9872f 55%, #7a5a1f 100%);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 4px 12px rgba(45, 26, 14, 0.35);
  border: 2px solid #fffef8;
}

.erv-store-map__pin--existing span {
  display: block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #9a8475;
  border: 2px solid #fffef8;
  box-shadow: 0 1px 4px rgba(45, 26, 14, 0.25);
}

.erv-store-map .leaflet-container {
  font-family: inherit;
}

.reg-store-optional {
  margin-top: 8px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px dashed rgba(61, 34, 19, 0.16);
  background: rgba(248, 244, 238, 0.6);
}

.reg-store-optional > summary {
  cursor: pointer;
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--brown, #3d2213);
  list-style: none;
}

.reg-store-optional > summary::-webkit-details-marker {
  display: none;
}

.reg-store-payout {
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(245, 237, 226, 0.5), rgba(255, 254, 251, 0.9));
  border: 1px solid rgba(61, 34, 19, 0.1);
}

.reg-store-payout .sub {
  margin-top: 0;
}

.reg-store-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 700;
  font-size: 0.88rem;
  line-height: 1.55;
  cursor: pointer;
  color: var(--brown-mid, #5c4a3d);
}

.reg-store-check input {
  width: auto;
  margin-top: 4px;
  accent-color: var(--gold, #b9872f);
}

.reg-store-submit-wrap {
  padding: clamp(18px, 4vw, 24px);
  background: linear-gradient(180deg, rgba(245, 237, 226, 0.35), rgba(255, 254, 251, 0.95));
  border-top: 1px solid rgba(61, 34, 19, 0.08);
}

.reg-store-submit-wrap .btn-primary {
  width: 100%;
  min-height: 52px;
  font-size: 1.05rem;
  font-weight: 900;
  border-radius: 14px;
  box-shadow: 0 6px 22px rgba(185, 135, 47, 0.35);
}

.reg-store-page #msg {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.55;
}

.reg-store-page #msg.ok {
  background: rgba(46, 125, 74, 0.1);
  border: 1px solid rgba(46, 125, 74, 0.28);
  color: #1e5631;
  white-space: pre-line;
}

.reg-store-page #msg.err {
  background: rgba(185, 50, 50, 0.08);
  border: 1px solid rgba(185, 50, 50, 0.25);
  color: #7a2020;
}

@media (min-width: 900px) {
  .guest-shell-page.reg-store-page .guest-section-hero {
    border-radius: 0 0 24px 24px;
    margin-bottom: 6px;
  }
}

/* ——— تصنيفات المطعم (أزرار) ——— */
.reg-store-cuisine-block {
  margin-top: 4px;
  padding: 16px 14px;
  border-radius: 16px;
  border: 1px solid rgba(185, 135, 47, 0.28);
  background: linear-gradient(145deg, #fffefb 0%, #f8f0e6 100%);
  box-shadow: 0 6px 22px rgba(45, 26, 14, 0.06);
}

.reg-store-cuisine-block__head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.reg-store-cuisine-block__emoji {
  font-size: 1.6rem;
  line-height: 1;
  flex-shrink: 0;
}

.reg-store-cuisine-block__title {
  margin: 0 0 4px;
  font-size: 1rem;
  font-weight: 900;
  color: var(--brown, #3d2213);
}

.reg-store-cuisine-block__sub {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: var(--muted, #5c4a3d);
}

.reg-store-cuisine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
}

.reg-store-cuisine-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 88px;
  padding: 12px 10px;
  border-radius: 14px;
  border: 2px solid rgba(61, 34, 19, 0.1);
  background: #fff;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.12s;
}

.reg-store-cuisine-chip:hover {
  border-color: rgba(185, 135, 47, 0.45);
  box-shadow: 0 6px 18px rgba(45, 26, 14, 0.08);
  transform: translateY(-1px);
}

.reg-store-cuisine-chip.is-active {
  border-color: var(--gold, #b9872f);
  background: linear-gradient(145deg, #fff9ee, #f3e4cc);
  box-shadow: 0 8px 24px rgba(185, 135, 47, 0.22);
}

.reg-store-cuisine-chip__icon {
  font-size: 1.75rem;
  line-height: 1;
}

.reg-store-cuisine-chip__label {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--brown, #3d2213);
  line-height: 1.35;
}

.reg-store-cuisine-hint {
  margin: 12px 0 0;
  font-size: 0.8rem;
  font-weight: 700;
  color: #8b5a2b;
}

.reg-store-cuisine-hint.is-ok {
  color: #1e5631;
}

.reg-store-category-select-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 480px) {
  .reg-store-cuisine-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .reg-store-cuisine-chip {
    min-height: 80px;
  }
}
