.checkout {
  max-width: 760px;
}

.checkout form {
  max-width: none;
  gap: 20px;
  margin-top: 0;
}

.checkout label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
}

.checkout input,
.checkout select,
.checkout textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid #dedbd7;
  border-radius: 10px;
  background: #fff;
  color: #202220;
  font: inherit;
}

.checkout textarea {
  resize: vertical;
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.delivery-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 0;
  padding: 0;
  border: 0;
}

.delivery-types legend {
  grid-column: 1 / -1;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 700;
}

.delivery-types label {
  position: relative;
  cursor: pointer;
}

.delivery-types input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.delivery-types span {
  display: flex;
  min-height: 84px;
  flex-direction: column;
  justify-content: center;
  padding: 14px;
  border: 1px solid #dedbd7;
  border-radius: 12px;
  background: #fff;
  transition: .2s ease;
}

.delivery-types span small {
  margin-top: 4px;
  color: #777;
  font-weight: 400;
}

.delivery-types input:checked + span {
  border-color: #202220;
  background: #202220;
  color: #fff;
}

.delivery-types input:checked + span small {
  color: #ffffffa8;
}

.delivery-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid #dedbd7;
  border-radius: 14px;
  background: #fff;
}

.delivery-panel[hidden] {
  display: none;
}

.geo-button {
  justify-self: start;
  padding: 11px 14px;
  border: 1px solid #dedbd7;
  border-radius: 10px;
  background: #eef1ed;
  color: #202220;
  font-weight: 700;
}

.geo-status {
  color: #666;
  font-weight: 400;
}

.nearest-store-result {
  min-height: 20px;
  color: #52635b;
  font-size: 14px;
  line-height: 1.5;
}

.nearest-store-result strong {
  color: #202220;
}

.nearest-store-result a {
  display: inline-block;
  margin-top: 5px;
  color: #202220;
  font-weight: 700;
}

.map-picker {
  display: grid;
  gap: 10px;
}

.map-picker-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.map-picker-heading div {
  display: grid;
  gap: 4px;
}

.map-picker-heading strong {
  font-size: 13px;
}

.map-picker-heading small,
.map-picker-status {
  color: #666;
  font-weight: 400;
}

.recipient-map {
  width: 100%;
  height: 320px;
  overflow: hidden;
  border: 1px solid #dedbd7;
  border-radius: 12px;
  background: #eef1ed;
  z-index: 0;
}

.map-clear {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid #dedbd7;
  border-radius: 8px;
  background: #fff;
  color: #202220;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.checkout-total,
.kaspi-payment {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid #dedbd7;
}

.checkout-total strong {
  font-size: 22px;
}

.kaspi-payment strong {
  color: #f14635;
}

.kaspi-submit {
  justify-content: center;
  width: 100%;
  cursor: pointer;
}

.form-result {
  min-height: 20px;
  margin: 0;
  color: #52635b;
}

@media (max-width: 700px) {
  .checkout-grid,
  .delivery-types {
    grid-template-columns: 1fr;
  }

  .delivery-types span {
    min-height: 68px;
  }

  .checkout form {
    padding: 20px;
  }

  .recipient-map {
    height: 260px;
  }

  .map-picker-heading {
    display: grid;
  }

  .map-clear {
    justify-self: start;
  }
}
