/* TOR Delivery - region popup, region chip and cart map */

/* ---------- region popup ---------- */
.tor-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: rgba(20, 28, 20, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.tor-modal-box {
  background: #fff;
  border-radius: 10px;
  padding: 28px 30px;
  max-width: 440px;
  width: 100%;
  text-align: center;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

.tor-modal-box h2 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.2;
}

.tor-modal-box p {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.5;
}

.tor-modal-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.tor-modal .tor-btn {
  display: inline-block;
  min-width: 130px;
  padding: 14px 26px;
  border-radius: 6px;
  background: #6aa84f;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  transition: background 0.15s ease;
}

.tor-modal .tor-btn:hover,
.tor-modal .tor-btn:focus {
  background: #558b3d;
  color: #fff;
}

.tor-modal-note {
  margin: 16px 0 0;
  font-size: 13px;
  opacity: 0.65;
}

/* ---------- region chip ---------- */
.tor-region-chip {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 99999;
  background: #fff;
  border: 1px solid #d8d5cb;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 13px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
}

.tor-region-chip a {
  margin-left: 8px;
  text-decoration: underline;
}

@media (max-width: 600px) {
  .tor-region-chip {
    left: 10px;
    bottom: 10px;
    font-size: 12px;
  }
}

/* ---------- cart map ---------- */
.tor-map-block {
  margin-top: 24px;
}

.tor-map-block h3 {
  margin: 0 0 10px;
  font-size: 18px;
}

.tor-map {
  width: 100%;
  height: 230px;
  border-radius: 8px;
  border: 1px solid #e0ddd4;
  z-index: 0;
}

.tor-map-open {
  margin-top: 10px;
  padding: 8px 16px;
  border: 1px solid #6aa84f;
  background: #fff;
  color: #4a7c34;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
}

.tor-map-open:hover {
  background: #f2f7ee;
}

.tor-map-note {
  margin: 8px 0 0;
  font-size: 12px;
  opacity: 0.75;
}

/* ---------- map pop-out ---------- */
.tor-map-overlay {
  position: fixed;
  inset: 0;
  z-index: 100001;
  background: rgba(15, 20, 15, 0.9);
  padding: 40px 24px;
}

.tor-map-overlay[hidden] {
  display: none;
}

.tor-map-large {
  width: 100%;
  height: 100%;
  border-radius: 8px;
}

.tor-map-close {
  position: absolute;
  top: 10px;
  right: 18px;
  z-index: 2;
  background: none;
  border: 0;
  color: #fff;
  font-size: 38px;
  line-height: 1;
  cursor: pointer;
}

body.tor-map-locked {
  overflow: hidden;
}
