/* Checkout panels and form. */
.page-checkout {
  color: #333;
}
.checkout-header {
  padding-block: 65px;
  text-align: center;
}
.checkout-header .site-header__inner { position: relative; justify-content: center; }
.checkout-header .language-switch { position: absolute; right: 0; }
.checkout-section {
  padding-bottom: 80px;
}
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 600px) minmax(0, 320px);
  gap: 20px;
  max-width: 940px;
  margin-inline: auto;
  align-items: start;
}
.checkout-fields {
  min-width: 0;
}
.checkout-summary {
  position: sticky;
  top: 24px;
}
.checkout-panel {
  margin-bottom: 20px;
  background: var(--palette-ivory);
  border: 1px solid var(--palette-stone);
}
.checkout-panel__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--palette-stone);
}
.checkout-panel__heading h2 {
  font-size: 18px;
  line-height: 20px;
  font-weight: 600;
}
.checkout-panel__heading > span {
  white-space: nowrap;
}
.checkout-panel__body {
  padding: 20px;
}
fieldset.checkout-panel__body {
  margin: 0;
  border: 0;
}
.checkout-panel__body input:not([type="checkbox"]),
.checkout-panel__body select {
  width: 100%;
  min-width: 0;
  height: 38px;
  padding: 8px 12px;
  background: var(--palette-ivory);
  border: 1px solid #ddd;
  border-radius: 2px;
}
.checkout-panel__body input::placeholder {
  color: #999;
}
.checkout-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.checkout-field label {
  font-size: 13px;
  color: #000;
}
.checkout-telephone {
  padding-bottom: 36px;
  border-top: 1px solid #e6e6e6;
}
.checkout-address {
  display: grid;
  gap: 16px;
}
.checkout-address-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.checkout-card-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.checkout-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  cursor: pointer;
}
.checkout-checkbox input {
  width: 13px;
  height: 13px;
  accent-color: #1675df;
}
.checkout-checkbox--delivery {
  margin-top: 0;
}
.checkout-summary .checkout-panel__body {
  padding-bottom: 28px;
}
.checkout-promo {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--palette-stone);
}
.checkout-promo label {
  display: block;
  font-size: 13px;
  color: #000;
  margin-bottom: 5px;
}
.checkout-promo__row {
  display: flex;
  gap: 8px;
}
.checkout-promo__row input {
  flex: 1;
  min-width: 0;
}
.checkout-promo__apply {
  flex: none;
  height: 38px;
  padding: 0 18px;
  font-size: 12px;
  text-transform: uppercase;
}
.checkout-promo .form-status {
  margin-top: 8px;
}
.checkout-summary p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.checkout-summary p + p {
  margin-top: 8px;
}
.checkout-summary strong {
  font-weight: 900;
}
.checkout-submit {
  width: 100%;
  text-transform: uppercase;
  font-size: 14px;
  padding-block: 20px;
}
.checkout-line {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  gap: 16px;
  margin-bottom: 16px;
}
.checkout-line:last-child {
  margin-bottom: 16px;
}
.checkout-line img {
  width: 60px;
  height: 60px;
  object-fit: cover;
}
.checkout-line h3 {
  font-size: 14px;
  color: #000;
  font-weight: 500;
  margin-bottom: 5px;
}
.checkout-line__variant:last-child {
  margin-top: 16px;
}
.checkout-line__price {
  white-space: nowrap;
}
.checkout-summary .form-status {
  display: block;
}
@media (min-width: 700px) and (max-width: 1079px) {
  .checkout-layout {
    grid-template-columns: minmax(0, 1.8fr) minmax(220px, 1fr);
  }
}
@media (max-width: 699px) {
  .checkout-header {
    padding-block: 45px;
  }
  .checkout-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .checkout-fields,
  .checkout-summary {
    width: 100%;
  }
  .checkout-summary {
    position: static;
  }
  .checkout-fields {
    padding-top: 16px;
  }
  .checkout-panel__heading,
  .checkout-panel__body {
    padding-inline: 20px;
  }
  .checkout-panel__heading h2 {
    font-size: 18px;
  }
  .checkout-panel__heading > span {
    font-size: 12px;
  }
  .checkout-panel__body input:not([type="checkbox"]),
  .checkout-panel__body select {
    font-size: 16px;
  }
  .checkout-address-row {
    gap: 12px;
  }
  .checkout-address-row label {
    min-height: 34px;
  }
  .checkout-line {
    grid-template-columns: 60px minmax(0, 1fr);
  }
  .checkout-line__price {
    grid-column: 2;
  }
}
.checkout-panel__body input[type="radio"] {
  width: 18px;
  height: 18px;
  padding: 0;
  accent-color: #1c1c1c;
  flex-shrink: 0;
}
.checkout-choice {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.checkout-choice strong {
  margin-left: auto;
}
.checkout-help {
  font-size: 13px;
  line-height: 1.6;
}
.checkout-help a {
  text-decoration: underline;
}
.checkout-address fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.checkout-address [hidden] {
  display: none;
}
.checkout-card-row {
  margin-top: 0;
}
.checkout-submit:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.standalone-cart,
.order-confirmation {
  max-width: 700px;
  margin: auto;
}
.standalone-cart h1,
.order-confirmation h1 {
  font-size: clamp(30px, 6vw, 54px);
  margin-bottom: 32px;
}
.standalone-cart > a {
  display: block;
  margin-top: 24px;
}
.order-confirmation .checkout-panel__body > p {
  margin-bottom: 16px;
}

.page-checkout { background: var(--palette-sand); }
.checkout-panel__heading { background: var(--palette-sage); }
