.sp-checkout-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;

  display: grid;
  place-items: center;

  padding: 22px;

  background:
    rgba(20,15,13,.72);

  backdrop-filter: blur(12px);

  animation:
    sp-checkout-bg
    .25s ease both;
}

.sp-checkout-card {
  width:
    min(680px,100%);

  max-height:
    calc(100vh - 44px);

  overflow: auto;

  border:
    1px solid
    rgba(194,141,69,.38);

  border-radius: 22px;

  background:
    #fffaf3;

  box-shadow:
    0 30px 90px
    rgba(0,0,0,.32);

  animation:
    sp-checkout-card
    .32s ease both;
}

.sp-checkout-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;

  gap: 20px;

  padding: 23px 25px 18px;

  border-bottom:
    1px solid #e4d8ca;
}

.sp-checkout-header h2 {
  margin: 3px 0 0;

  color: #211b18;

  font-size: 25px;
}

.sp-checkout-eyebrow {
  margin: 0;

  color: #956a35;

  font-size: 9px;
  font-weight: 850;

  letter-spacing: .17em;
  text-transform: uppercase;
}

.sp-checkout-close {
  width: 36px;
  height: 36px;

  border:
    1px solid #dacbbb;

  border-radius: 50%;

  background: #fff;

  color: #211b18;

  cursor: pointer;

  font-size: 19px;
}

.sp-checkout-body {
  padding: 22px 25px 26px;
}

.sp-checkout-grid {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 13px;
}

.sp-checkout-field {
  display: grid;
  gap: 6px;
}

.sp-checkout-field.wide {
  grid-column: 1 / -1;
}

.sp-checkout-field label,
.sp-shipping-title {
  color: #75685f;

  font-size: 9px;
  font-weight: 800;

  letter-spacing: .04em;
  text-transform: uppercase;
}

.sp-checkout-field input {
  width: 100%;
  height: 44px;

  border:
    1px solid #dacbbb;

  border-radius: 10px;

  outline: none;

  padding:
    0 12px;

  background: #fff;

  color: #211b18;

  font: inherit;
  font-size: 12px;
}

.sp-checkout-field input:focus {
  border-color: #c28d45;

  box-shadow:
    0 0 0 3px
    rgba(194,141,69,.11);
}

.sp-shipping-block {
  margin-top: 22px;

  padding-top: 18px;

  border-top:
    1px solid #e5dacd;
}

.sp-shipping-intro {
  margin:
    5px 0 12px;

  color: #766b63;

  font-size: 10px;

  line-height: 1.5;
}

.sp-shipping-list {
  display: grid;
  gap: 8px;
}

.sp-shipping-option {
  display: grid;

  grid-template-columns:
    auto 1fr auto;

  gap: 11px;

  align-items: center;

  min-height: 53px;

  padding:
    10px 12px;

  border:
    1px solid #ded1c1;

  border-radius: 11px;

  background: #fff;

  cursor: pointer;

  transition:
    border-color .18s ease,
    background .18s ease,
    transform .18s ease;
}

.sp-shipping-option:hover {
  transform:
    translateY(-1px);

  border-color:
    #c7ae91;
}

.sp-shipping-option.active {
  border-color:
    #c28d45;

  background:
    #fff9ef;

  box-shadow:
    0 0 0 2px
    rgba(194,141,69,.09);
}

.sp-shipping-option input {
  accent-color:
    #b57f3f;
}

.sp-shipping-name {
  display: block;

  color: #211b18;

  font-size: 11px;
  font-weight: 800;
}

.sp-shipping-eta {
  display: block;

  margin-top: 2px;

  color: #8b8078;

  font-size: 8.5px;
}

.sp-shipping-price {
  color: #211b18;

  font-size: 12px;
  font-weight: 850;

  white-space: nowrap;
}

.sp-checkout-totals {
  margin:
    20px 0 17px;

  padding:
    14px;

  border-radius: 12px;

  background:
    #f7efe5;
}

.sp-checkout-total-row {
  display: flex;

  justify-content: space-between;

  gap: 20px;

  padding:
    5px 0;

  color: #6f645c;

  font-size: 10px;
}

.sp-checkout-total-row.total {
  margin-top: 6px;

  padding-top: 11px;

  border-top:
    1px solid #ddcfbd;

  color: #211b18;

  font-size: 14px;
  font-weight: 900;
}

.sp-checkout-submit {
  width: 100%;

  min-height: 52px;

  border: 0;

  border-radius: 12px;

  background:
    linear-gradient(
      120deg,
      #181413,
      #2b221f
    );

  color: #fff;

  cursor: pointer;

  font: inherit;

  font-size: 11px;
  font-weight: 850;

  letter-spacing: .04em;
  text-transform: uppercase;
}

.sp-checkout-submit:disabled {
  opacity: .48;

  cursor: not-allowed;
}

.sp-checkout-error {
  display: none;

  margin-top: 12px;

  padding: 11px 12px;

  border-radius: 9px;

  background:
    rgba(135,35,35,.08);

  color: #862f2f;

  font-size: 10px;
}

.sp-checkout-error.show {
  display: block;
}

.sp-order-confirmation {
  width:
    min(
      760px,
      calc(100% - 30px)
    );

  margin:
    55px auto 85px;

  text-align: center;

  animation:
    sp-order-enter
    .5s ease both;
}

.sp-order-check {
  display: grid;
  place-items: center;

  width: 80px;
  height: 80px;

  margin:
    0 auto 20px;

  border:
    2px solid #c28d45;

  border-radius: 50%;

  background:
    rgba(194,141,69,.1);

  color: #9a6b32;

  font-size: 32px;
  font-weight: 900;

  animation:
    sp-order-check
    .55s ease both;
}

.sp-order-confirmation h1 {
  margin:
    7px 0 8px;

  color: #211b18;

  font-size:
    clamp(31px,5vw,45px);
}

.sp-order-subtitle {
  max-width: 560px;

  margin:
    0 auto 25px;

  color: #746a63;

  font-size: 11px;
  line-height: 1.6;
}

.sp-order-card {
  overflow: hidden;

  border:
    1px solid #ddd1c4;

  border-radius: 20px;

  background: #fffaf3;

  text-align: left;

  box-shadow:
    0 20px 55px
    rgba(44,30,21,.09);
}

.sp-order-number {
  padding:
    21px 23px;

  background:
    linear-gradient(
      120deg,
      #191412,
      #2b221e
    );

  color: #fff;
}

.sp-order-label {
  display: block;

  margin-bottom: 7px;

  opacity: .58;

  font-size: 8px;
  font-weight: 800;

  letter-spacing: .12em;
  text-transform: uppercase;
}

.sp-order-number-row {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 15px;
}

.sp-order-number-value {
  font-size: 20px;
  font-weight: 900;
}

.sp-order-copy {
  padding:
    7px 10px;

  border:
    1px solid
    rgba(255,255,255,.25);

  border-radius: 8px;

  background:
    rgba(255,255,255,.08);

  color: #fff;

  cursor: pointer;

  font: inherit;

  font-size: 9px;
  font-weight: 800;
}

.sp-order-body {
  padding:
    18px 23px;
}

.sp-order-row {
  display: flex;

  justify-content: space-between;

  gap: 20px;

  padding:
    9px 0;

  border-bottom:
    1px solid #e9dfd4;

  color: #211b18;

  font-size: 11px;
}

.sp-order-row span:first-child {
  color: #796e66;
}

.sp-order-row.total {
  border-bottom: 0;

  font-size: 15px;
  font-weight: 900;
}

.sp-order-payment {
  margin:
    0 23px 22px;

  padding:
    15px;

  border-radius: 11px;

  background:
    #f6eee4;

  color: #665b53;

  font-size: 10px;
  line-height: 1.65;
}

.sp-order-payment strong {
  color: #211b18;
}

.sp-order-shop {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-height: 48px;

  margin-top: 20px;

  padding:
    0 24px;

  border-radius: 11px;

  background: #1d1816;

  color: #fff;

  text-decoration: none;

  font-size: 10px;
  font-weight: 850;

  letter-spacing: .04em;
  text-transform: uppercase;
}

@keyframes sp-checkout-bg {
  from {
    opacity: 0;
  }
}

@keyframes sp-checkout-card {
  from {
    opacity: 0;

    transform:
      translateY(15px)
      scale(.98);
  }
}

@keyframes sp-order-enter {
  from {
    opacity: 0;

    transform:
      translateY(14px);
  }
}

@keyframes sp-order-check {
  from {
    transform:
      scale(.25)
      rotate(-16deg);
  }

  70% {
    transform:
      scale(1.08)
      rotate(3deg);
  }
}

@media (max-width: 650px) {

  .sp-checkout-grid {
    grid-template-columns: 1fr;
  }

  .sp-checkout-field.wide {
    grid-column: auto;
  }

  .sp-order-number-row {
    flex-direction: column;
    align-items: flex-start;
  }

}
