/* order.css */

.order-wrap {
  padding: 0;
}

.order-header {
  position: relative;
}

.order-header-img {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
}

.order-header-text {
  position: absolute;
  top: 24px;
  left: 20px;
  right: 45%;
  z-index: 2;
}
.order-header-text h1 {
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: var(--ink);
  margin: 0 0 8px;
  line-height: 1.15;
}
.order-header-text p {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.4;
  margin: 0;
}

.order-card {
  position: relative;
  z-index: 2;
  margin-top: -90px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px 24px 0 0;
  padding: 24px 18px 0;
  box-shadow: 0 -8px 24px -12px rgba(43, 27, 16, 0.2);
}

.order-title {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 19px;
  color: var(--ink);
  margin: 0 0 16px;
}

.order-field {
  display: block;
  margin-bottom: 16px;
}
.order-field span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.order-field input,
.order-field textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  background: var(--paper);
  border-radius: 10px;
  padding: 12px 13px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 15px;
  color: var(--ink);
  outline: none;
}
.order-field textarea {
  min-height: 70px;
  resize: vertical;
}
.order-field input:focus,
.order-field textarea:focus {
  border-color: var(--orange);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.chip {
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  font-size: 13px;
  padding: 9px 14px;
  border-radius: 999px;
  cursor: pointer;
}
.chip.active {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

.location-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  font-size: 14px;
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
}
.location-btn.success {
  border-color: var(--orange);
  color: var(--orange-deep);
}
.location-btn:disabled { opacity: 0.7; cursor: not-allowed; }

.location-map-wrap {
  margin-top: 10px;
  border-radius: 10px;
  overflow: hidden;
  border: 1.5px solid var(--line);
  height: 180px;
  position: relative;
}
.location-map {
  width: 100%;
  height: 230px;
  border: none;
  display: block;
  position: absolute;
  top: 0;
  left: 0;
}

.order-blok-input {
  margin-top: 10px;
}

.order-budget-manual {
  margin-top: 10px;
}

.order-error {
  background: #f8e2e2;
  color: var(--red);
  font-size: 13px;
  padding: 10px 12px;
  border-radius: 10px;
  margin: 0;
}

.location-permission-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 27, 16, 0.45);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.location-permission-overlay[hidden] { display: none; }

.location-permission-card {
  width: 100%;
  max-width: 320px;
  background: #fff;
  border-radius: 20px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 24px 48px -20px rgba(0, 0, 0, 0.4);
}

.location-permission-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--orange-soft);
  color: var(--orange-deep);
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.location-permission-icon-error {
  background: #f8e2e2;
  color: var(--red);
}

.location-permission-card h3 {
  font-family: "Fredoka", sans-serif;
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  margin: 0 0 8px;
}

.location-permission-card p {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0 0 18px;
}

.location-permission-cancel {
  width: 100%;
  background: none;
  border: none;
  color: var(--ink-soft);
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 600;
  font-size: 13.5px;
  padding: 12px;
  margin-top: 4px;
  cursor: pointer;
}

.order-sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 560px;
  margin: 0 auto;
  background: #fff;
  border-top: 1px solid var(--line);
  padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  gap: 14px;
  z-index: 15;
}

.order-fee-info {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.order-fee-info span {
  font-size: 11px;
  color: var(--ink-soft);
}
.order-fee-info strong {
  font-family: "IBM Plex Mono", monospace;
  font-size: 16px;
  color: var(--ink);
}

.order-sticky-bar .btn-primary {
  flex: 1;
}
