/* ================================
   Client order form
   ================================ */

.site-order {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  color: #2d2520;
}

.site-order h1 {
  max-width: 720px;
  margin: 0 auto 10px auto;
  color: #2d2520;
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  text-align: center;
}

.site-order h2 {
  max-width: 560px;
  margin: 0 auto 34px auto;
  color: #8a7b72;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.55;
  text-align: center;
}

/* ================================
   Drink image builder preview
   ================================ */

.site-order .order-drink-preview {
  position: relative;
  max-width: 520px;
  margin: 0 auto 34px auto;
  padding: 24px 22px 22px;
  border-radius: 34px;
  background:
    radial-gradient(circle at 50% 8%, rgba(255, 255, 255, 0.94), transparent 48%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.82), rgba(248, 241, 234, 0.72));
  border: 1px solid rgba(96, 61, 28, 0.075);
  box-shadow:
    0 18px 45px rgba(72, 48, 31, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.82);
  text-align: center;
  overflow: hidden;
}

.site-order .order-drink-preview::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 24px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(232, 211, 190, 0.22);
  transform: translateX(-50%);
  pointer-events: none;
}

.site-order .drink-builder-img {
  position: relative;
  z-index: 1;
  width: 230px;
  height: 230px;
  margin: 0 auto 12px auto;
}

.site-order .drink-builder-img::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 120px;
  height: 20px;
  border-radius: 50%;
  background: rgba(96, 61, 28, 0.12);
  filter: blur(8px);
  transform: translateX(-50%);
  z-index: 0;
}

.site-order .drink-layer {
  position: absolute;
  inset: 0;
  z-index: 1;

  width: 100%;
  height: 100%;
  object-fit: contain;

  opacity: 0;
  transform: translateY(6px) scale(0.97);
  transition:
    opacity 0.24s ease,
    transform 0.24s ease,
    filter 0.24s ease;

  pointer-events: none;
}

.site-order .drink-layer.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.site-order .layer-juice,
.site-order .layer-tea,
.site-order .layer-coffee {
  z-index: 2;
}

.site-order .drink-builder-img.is-changing .drink-layer.is-visible {
  filter: saturate(1.04);
}

.site-order .order-drink-preview-text {
  position: relative;
  z-index: 2;
}

.site-order .order-drink-preview-title {
  color: #2d2520;
  font-size: 20px;
  font-weight: 750;
  line-height: 1.25;
}

.site-order .order-drink-preview-subtitle {
  max-width: 420px;
  margin: 5px auto 0;
  color: #8a7b72;
  font-size: 13px;
  line-height: 1.45;
}

.site-order .drink-builder-extras {
  position: absolute;
  right: -8px;
  top: 34px;
  z-index: 8;

  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.site-order .drink-extra {
  min-width: 30px;
  min-height: 30px;
  padding: 10px;

  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.96), rgba(245,238,230,0.92));
  border: 1px solid rgba(96, 61, 28, 0.08);

  box-shadow:
    0 10px 24px rgba(72, 48, 31, 0.10),
    inset 0 1px 0 rgba(255,255,255,0.92);

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;

  text-align: center;
  transition:
    transform 0.18s ease,
    opacity 0.18s ease;
}

.site-order .drink-extra.is-hidden {
  display: none;
}

.site-order .drink-extra-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  color: #9a673e;
  background: rgba(191, 151, 115, 0.10);
  font-size: 12px;
  line-height: 1;
}

.site-order .extra-temperature.is-cold .drink-extra-icon {
  color: #5f88b0;
  background: rgba(95, 136, 176, 0.11);
}

.site-order .extra-temperature.is-hot .drink-extra-icon {
  color: #b16a47;
  background: rgba(177, 106, 71, 0.10);
}

.site-order .extra-syrop .drink-extra-icon {
  color: #b87942;
  background: rgba(184, 121, 66, 0.12);
}











.site-order .attributes {
  width: 100%;
}

.site-order form {
  width: 100%;
}

.site-order .steps {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 22px;
  align-items: start;
}

.site-order .steps > div {
  padding: 28px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(96, 61, 28, 0.08);
  box-shadow: 0 18px 45px rgba(72, 48, 31, 0.08);
}

/* Left drink settings as soft checklist */
.site-order .steps > div:first-child {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.site-order .steps > div:first-child .form-group,
.site-order .steps > div:first-child .field-syrop {
  position: relative;
  margin: 0;
  padding: 15px;
  border-radius: 22px;
  background: rgba(96, 61, 28, 0.035);
  border: 1px solid rgba(96, 61, 28, 0.055);
  transition: background 0.18s ease, border-color 0.18s ease;
  display: block;
}

.site-order .steps > div:first-child .form-group.field-syrop_code {
  display: none;
}

.site-order .steps > div:first-child .form-group:hover,
.site-order .steps > div:first-child .field-syrop:hover {
  background: rgba(96, 61, 28, 0.052);
  border-color: rgba(96, 61, 28, 0.09);
}

/* Titles above chips */
.site-order .steps > div:first-child .form-group > label,
.site-order .steps > div:first-child .field-syrop > label {
  display: block;
  width: 100%;
  margin: 0 0 11px 0;
  color: #2d2520;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

/* Chips container */
.site-order .steps > div:first-child div[role="radiogroup"] {
  display: flex;
  width: 100%;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

/* Compact chips inside checklist */
.site-order .steps > div:first-child .radio-button__label {
  min-height: 36px;
  padding: 8px 13px;
  font-size: 13px;
}

/* Syrop chip */
.site-order .steps > div:first-child .field-syrop .d-flex {
  display: flex;
  min-width: 0;
}

.site-order .steps > div:first-child #syrop-selected-label {
  min-height: 36px;
  padding: 8px 13px;
  font-size: 13px;
}

/* Remove duplicate syrup icon inside chip if needed */
.site-order .steps > div:first-child #syrop-selected-label::before {
  display: none;
}

.site-order .form-group {
  margin: 0 0 22px 0;
}

.site-order .form-group:last-child {
  margin-bottom: 0;
}

.site-order .form-group > label,
.site-order .field-syrop > label,
.site-order .field-orderform-max_distance > label {
  display: block;
  margin: 0 0 12px 0;
  color: #2d2520;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}

.site-order .form-control,
.site-order textarea.form-control {
  border-radius: 16px;
  border: 1px solid #e4dcd5;
  background-color: #fff;
  color: #2d2520;
  font-size: 15px;
  transition: all 0.2s ease;
}

.site-order textarea.form-control {
  min-height: 116px;
  padding: 13px 15px;
  resize: vertical;
}

.site-order .form-control:focus,
.site-order textarea.form-control:focus {
  border-color: rgba(96, 61, 28, 0.45);
  box-shadow: 0 0 0 4px rgba(96, 61, 28, 0.08) !important;
}

.site-order div[role="radiogroup"] {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
}

.site-order .radio-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin: 0;
  cursor: pointer;
  user-select: none;
}

.site-order .radio-button input[type="radio"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.site-order .radio-button input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.site-order .radio-button span {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(96, 61, 28, 0.06);
  border: 1px solid rgba(96, 61, 28, 0.08);
  color: #5f544d;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.15;
  transition: all 0.18s ease;
}

.site-order .radio-button:hover span {
  background: rgba(96, 61, 28, 0.09);
  color: #603d1c;
}

.site-order .radio-button__label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(96, 61, 28, 0.06);
  border: 1px solid rgba(96, 61, 28, 0.08);
  color: #5f544d;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.15;
  transition: all 0.18s ease;
}

.site-order .radio-button:hover .radio-button__label {
  background: rgba(96, 61, 28, 0.09);
  color: #603d1c;
}

.site-order .radio-button input[type="radio"]:checked + .radio-button__label {
  background: #603d1c;
  border-color: #603d1c;
  color: #fff;
  box-shadow: 0 10px 22px rgba(96, 61, 28, 0.18);
}

.site-order .radio-button input:checked + span {
  background: #603d1c;
  border-color: #603d1c;
  color: #fff;
  box-shadow: 0 10px 22px rgba(96, 61, 28, 0.18);
}

/* ================================
   Order distance range
   ================================ */

.site-order .field-orderform-max_distance > div {
  position: relative;
  height: 42px;
  padding: 18px 0 0 0;
}

/* Серая линия */
.site-order .field-orderform-max_distance > div::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 22px;
  height: 6px;
  border-radius: 999px;
  background: rgba(96, 61, 28, 0.12);
  z-index: 1;
}

/* Коричневая заполненная линия */
.site-order .range-fill {
  position: absolute;
  left: 0;
  top: 22px;
  height: 6px;
  width: 0;
  border-radius: 999px;
  background: #603d1c;
  z-index: 2;
  pointer-events: none;
  transition: width 0.12s ease;
}

/* Точки */
.site-order .range-background-steps {
  position: absolute;
  left: 0;
  right: 0;
  top: 20px;
  height: 10px;
  display: flex;
  justify-content: space-between;
  z-index: 3;
  pointer-events: none;
}

.site-order .range-background-steps span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #e4dcd5;
  border: 2px solid #f7f3ef;
  box-sizing: border-box;
  transition: background 0.18s ease, transform 0.18s ease;
  position: relative;
  top: -1px;
}

.site-order .range-background-steps span.active {
  background: #603d1c;
  border-color: #603d1c;
  transform: scale(1.08);
}

/* Сам input — только для клика/ползунка */
.site-order .form-control-range {
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  z-index: 4;
  width: 100%;
  height: 34px;
  margin: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

/* Убираем нативную линию Chrome/Safari */
.site-order .form-control-range::-webkit-slider-runnable-track {
  height: 6px;
  background: transparent;
  border: 0;
}

/* Ползунок Chrome/Safari */
.site-order .form-control-range::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -9px;
  border-radius: 50%;
  border: 4px solid #fff;
  background: #603d1c;
  box-shadow:
    0 8px 18px rgba(96, 61, 28, 0.28),
    0 0 0 1px rgba(96, 61, 28, 0.08);
}

/* Firefox */
.site-order .form-control-range::-moz-range-track {
  height: 6px;
  background: transparent;
  border: 0;
}

.site-order .form-control-range::-moz-range-progress {
  background: transparent;
}

.site-order .form-control-range::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 4px solid #fff;
  background: #603d1c;
  box-shadow:
    0 8px 18px rgba(96, 61, 28, 0.28),
    0 0 0 1px rgba(96, 61, 28, 0.08);
}

.site-order .field-syrop {
  margin-bottom: 0;
}

.site-order #syrop-selected-label {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 10px 15px;
  border-radius: 999px;
  background: rgba(96, 61, 28, 0.06);
  border: 1px solid rgba(96, 61, 28, 0.08);
  color: #5f544d;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.18s ease;
}

.site-order #syrop-selected-label::before {
  content: "\f564";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  margin-right: 7px;
  color: #8a674b;
  font-size: 12px;
}

.site-order #syrop-selected-label:hover,
.site-order #syrop-selected-label.has-syrop {
  background: #603d1c;
  border-color: #603d1c;
  color: #fff;
}

.site-order .drink-temperature-toggle {
  max-width: 360px;
  margin: 22px auto 0 auto;
  padding: 6px;
  border-radius: 999px;
  background: rgba(96, 61, 28, 0.06);
  border: 1px solid rgba(96, 61, 28, 0.08);
}

.site-order .toggle-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.site-order .toggle-btn {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #6f5a4d;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.18s ease;
}

.site-order .toggle-btn.active {
  background: #fff;
  color: #603d1c;
  box-shadow: 0 8px 18px rgba(72, 48, 31, 0.08);
}

.site-order .submit-wrapper {
  margin: 28px auto 0 auto;
  text-align: center;
}

.site-order #submitOrderBtn {
  min-width: 220px;
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #7a4a24 0%, #4f3018 100%);
  color: #fff;
  box-shadow: 0 12px 26px rgba(96, 61, 28, 0.22);
  font-size: 15px;
  font-weight: 600;
  transition: all 0.2s ease;
}

.site-order #submitOrderBtn:hover {
  transform: translateY(-1px);
  box-shadow: 0 15px 30px rgba(96, 61, 28, 0.26);
}

.site-order #geoStatus {
  display: none;
  margin: 60px 0 0 0;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.7);
  justify-content: center;
  align-items: center;
}

.site-order .submits #geoStatus span {
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  min-height: 150px;

  background-image: url("data:image/svg+xml,%3Csvg width='116' height='116' viewBox='0 0 116 116' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cstyle%3E.steam1%7Banimation:steam 1.7s ease-in-out infinite;transform-origin:center;%7D.steam2%7Banimation:steam 1.7s ease-in-out .28s infinite;transform-origin:center;%7D.steam3%7Banimation:steam 1.7s ease-in-out .56s infinite;transform-origin:center;%7D.cup%7Banimation:cup 2.4s ease-in-out infinite;transform-origin:58px 70px;%7D.ring%7Banimation:ring 2.1s ease-in-out infinite;transform-origin:center;%7D.bean%7Banimation:bean 2.3s ease-in-out infinite;transform-origin:center;%7D@keyframes steam%7B0%25%7Bopacity:0;transform:translateY(8px) scale(.94);%7D35%25%7Bopacity:1;%7D100%25%7Bopacity:0;transform:translateY(-12px) scale(1.04);%7D%7D@keyframes cup%7B0%25,100%25%7Btransform:translateY(0) rotate(0deg);%7D45%25%7Btransform:translateY(-2px) rotate(-1.5deg);%7D72%25%7Btransform:translateY(1px) rotate(1deg);%7D%7D@keyframes ring%7B0%25,100%25%7Bopacity:.75;transform:scale(1);%7D50%25%7Bopacity:1;transform:scale(1.035);%7D%7D@keyframes bean%7B0%25,100%25%7Btransform:translateY(0) rotate(0deg);%7D50%25%7Btransform:translateY(-3px) rotate(8deg);%7D%7D%3C/style%3E%3Ccircle class='ring' cx='58' cy='58' r='49' fill='%23FFF9F2' stroke='%23E8D6C4' stroke-width='2'/%3E%3Ccircle cx='58' cy='58' r='39' fill='%23F2E3D4'/%3E%3Cg class='steam' stroke='%238A6548' stroke-width='4' stroke-linecap='round'%3E%3Cpath class='steam1' d='M46 41C40 34 51 30 46 23'/%3E%3Cpath class='steam2' d='M58 39C52 31 64 28 58 19'/%3E%3Cpath class='steam3' d='M70 41C64 34 75 30 70 23'/%3E%3C/g%3E%3Cg class='cup'%3E%3Cpath d='M36 54H70V68C70 78 62 86 52 86C43 86 36 79 36 70V54Z' fill='%23A1744F'/%3E%3Cpath d='M40 58H66V68C66 75 60 81 53 81H51C45 81 40 76 40 70V58Z' fill='%23BE8B61'/%3E%3Cpath d='M70 59H76C82 59 86 63 86 69C86 75 82 79 76 79H68' stroke='%23A1744F' stroke-width='6' stroke-linecap='round'/%3E%3Cpath d='M31 88H78' stroke='%238A6548' stroke-width='5' stroke-linecap='round'/%3E%3C/g%3E%3Cg class='bean'%3E%3Cellipse cx='82' cy='38' rx='7' ry='10' transform='rotate(28 82 38)' fill='%23603D1C' opacity='.9'/%3E%3Cpath d='M80 31C85 35 85 41 80 45' stroke='%23D7B18B' stroke-width='2' stroke-linecap='round'/%3E%3C/g%3E%3C/svg%3E");

  /* background: url(../images/loading-order-coords.svg) no-repeat center top; */
  background-size: auto 150px;
  padding: 150px 0 0 0;
  font-size: 14px;
  color: #666;
}

@media (max-width: 768px) {
  .site-order {
    max-width: none;
  }

  .site-order h1 {
    font-size: clamp(28px, 9vw, 38px);
  }

  .site-order h2 {
    margin-bottom: 24px;
    font-size: 14px;
  }

  .site-order .steps {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .site-order .steps > div {
    padding: 22px 16px;
    border-radius: 24px;
  }

  .site-order div[role="radiogroup"] {
    gap: 8px;
  }

  .site-order .radio-button span {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 13px;
  }

  .site-order .drink-temperature-toggle {
    max-width: none;
    margin-top: 16px;
  }

  .site-order #submitOrderBtn {
    width: 100%;
  }

  .site-order .order-drink-preview {
    margin-bottom: 24px;
    padding: 20px 16px 18px;
    border-radius: 28px;
  }

  .site-order .order-drink-preview::before {
    top: 20px;
    width: 170px;
    height: 170px;
  }

  .site-order .drink-builder-img {
    width: 205px;
    height: 205px;
  }

  .site-order .order-drink-preview-title {
    font-size: 18px;
  }

  .site-order .order-drink-preview-subtitle {
    font-size: 12px;
  }

}
