.checkout-shell {
  min-height: calc(100vh - 92px);
  background: rgba(22, 22, 28, 0.18);
  position: relative;
}

.checkout-drawer {
  margin-left: auto;
  min-height: calc(100vh - 92px);
  width: min(100%, 456px);
  background: #f1f1f3;
  display: grid;
  grid-template-rows: auto 1fr auto;
  position: relative;
  z-index: 2;
}

.checkout-bg {
  display: none;
}

.checkout-header {
  background: var(--magenta);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  box-shadow: var(--shadow-sm);
}

.checkout-header .icon-btn {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 16px;
}

.checkout-title {
  font-size: 14px;
  font-weight: 700;
}

.checkout-body {
  padding: 14px;
  overflow-y: auto;
  display: grid;
  gap: 12px;
}

.checkout-group {
  background: #fff;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.04);
}

.checkout-group input,
.checkout-group textarea {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  color: var(--ink);
  padding: 0;
  font-family: var(--font-body);
}

.checkout-group input::placeholder,
.checkout-group textarea::placeholder {
  color: #77757b;
}

.checkout-group textarea {
  min-height: 52px;
  resize: vertical;
}

.checkout-choice h3 {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
}

.checkout-choice label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 0;
  color: #4e4c52;
}

.checkout-choice input[type='radio'] {
  width: 14px;
  height: 14px;
}

.checkout-footer {
  padding: 12px 14px 16px;
  background: #f1f1f3;
}

.checkout-cta {
  width: 100%;
}

@media (min-width: 1024px) {
  .checkout-shell {
    min-height: calc(100vh - 96px);
    display: grid;
    grid-template-columns: 1fr min(456px, 100%);
    align-items: stretch;
  }

  .checkout-bg {
    display: block;
    overflow: hidden;
    position: relative;
  }

  .checkout-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(22, 22, 28, 0.32);
    pointer-events: none;
  }

  .checkout-bg-frame {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    pointer-events: none;
  }

  .checkout-drawer {
    width: min(456px, 100%);
    min-height: calc(100vh - 96px);
    box-shadow: -16px 0 32px rgba(0, 0, 0, 0.16);
    border-left: 1px solid #e7e7eb;
    border-top-left-radius: 18px;
    border-bottom-left-radius: 18px;
    overflow: hidden;
  }
}