.checkout-modal {
  width: min(720px, calc(100% - 30px));
  max-height: calc(100svh - 34px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 24px;
  color: #171417;
  background: #fff;
  box-shadow: 0 30px 100px rgba(20, 14, 18, .3);
}
.checkout-modal::backdrop {
  background: rgba(18, 13, 17, .62);
  backdrop-filter: blur(5px);
}
.checkout-modal .modal-close {
  z-index: 3;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #171417;
  background: rgba(255,255,255,.9);
  box-shadow: 0 5px 20px rgba(20,14,18,.1);
}
.checkout-heading {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 17px;
  padding: 34px 70px 28px 34px;
  background: linear-gradient(135deg, #fff 20%, #fcedf3);
  border-bottom: 1px solid #eadfe4;
}
.checkout-heading-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  color: #fff;
  background: #111;
  font-size: 22px;
}
.checkout-heading .eyebrow { margin: 1px 0 7px; }
.checkout-heading h2 {
  margin: 0;
  color: #171417;
  font: 600 35px/1.05 "DM Sans", sans-serif;
  letter-spacing: -.045em;
}
.checkout-heading .modal-lead {
  margin: 9px 0 0;
  color: #756f74;
  font-size: 12px;
}
.checkout-modal form {
  display: grid;
  gap: 15px;
  margin: 0;
  padding: 26px 34px 31px;
}
.checkout-fields {
  display: grid;
  gap: 13px;
}
.checkout-fields.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.checkout-modal label { min-width: 0; }
.checkout-modal label > span:not(.checkout-heading-icon) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 7px;
  color: #363136;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .035em;
}
.checkout-modal label > span small {
  color: #999399;
  font-size: 8px;
  font-weight: 500;
  text-transform: uppercase;
}
.checkout-modal input:not([type="checkbox"]),
.checkout-modal select,
.checkout-modal textarea {
  min-height: 49px;
  margin: 0;
  padding: 13px 14px;
  border: 1px solid #dfdbe0;
  border-radius: 11px;
  outline: none;
  background: #fcfbfc;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.checkout-modal textarea { min-height: 78px; }
.checkout-modal input:focus,
.checkout-modal select:focus,
.checkout-modal textarea:focus {
  border-color: #a51d58;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(165,29,88,.1);
}
.checkout-section-label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 3px;
  color: #171417;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.checkout-section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ece8eb;
}
.checkout-section-label b {
  width: 25px;
  height: 25px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #a51d58;
  background: #f9e5ed;
  font-size: 8px;
}
.checkout-modal .pickup-choice {
  display: grid;
  gap: 13px;
  padding: 17px;
  border: 1px solid #f0dfe7;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff 0%, #fcf4f7 100%);
  box-shadow: 0 8px 24px rgba(92, 38, 62, .055);
}
.pickup-choice-head {
  display: flex;
  align-items: center;
  gap: 11px;
  padding-bottom: 12px;
  border-bottom: 1px solid #eee3e8;
}
.pickup-choice-head > b {
  width: 36px;
  height: 36px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 11px;
  color: #fff;
  background: #a51d58;
  font-size: 20px;
  line-height: 1;
}
.pickup-choice-head > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pickup-choice-head strong { font-size: 11px; }
.pickup-choice-head small { color: #7c7479; font-size: 9px; font-weight: 400; }
.checkout-modal .pickup-choice select {
  appearance: none;
  padding-right: 42px;
  background-color: #fff;
  background-image: linear-gradient(45deg, transparent 50%, #a51d58 50%), linear-gradient(135deg, #a51d58 50%, transparent 50%);
  background-position: calc(100% - 19px) 21px, calc(100% - 14px) 21px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}
.checkout-modal .pickup-detail:not(:empty) {
  margin: 0;
  padding: 12px 13px;
  border-left: 3px solid #a51d58;
  border-radius: 8px;
  color: #6f666c;
  background: #fff;
  font-size: 10px;
  line-height: 1.65;
}
.checkout-modal .custom-pickup-note {
  display:flex;
  gap:7px;
  margin-top:8px;
  color:#766d72;
  font-size:8px;
  font-weight:400;
  line-height:1.55;
}
.checkout-modal .custom-pickup-note::before {
  content:"i";
  width:16px;
  height:16px;
  display:grid;
  flex:0 0 auto;
  place-items:center;
  border-radius:50%;
  color:#fff;
  background:#a51d58;
  font-size:9px;
  font-weight:700;
}
.marketing-check {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 12px 14px;
  border: 1px solid #eee7ea;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff 0%, #fcf5f8 100%);
  box-shadow: 0 5px 18px rgba(55,35,44,.04);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.marketing-check[hidden] { display: none; }
.marketing-check input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}
.marketing-control {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 1.5px solid #c9bbc1;
  border-radius: 7px;
  color: #fff;
  background: #fff;
  transition: .2s;
}
.marketing-control::after {
  content: "✓";
  opacity: 0;
  transform: scale(.55);
  font-size: 14px;
  font-weight: 800;
  transition: .2s;
}
.marketing-check input:checked + .marketing-control {
  border-color: #a51d58;
  background: #a51d58;
  box-shadow: 0 5px 13px rgba(165,29,88,.22);
}
.marketing-check input:checked + .marketing-control::after {
  opacity: 1;
  transform: scale(1);
}
.marketing-check:has(input:checked) {
  border-color: rgba(165,29,88,.28);
  box-shadow: 0 7px 22px rgba(165,29,88,.08);
}
.marketing-check:focus-within {
  outline: 2px solid rgba(165,29,88,.22);
  outline-offset: 2px;
}
.marketing-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.marketing-copy strong {
  color: #2b2427;
  font-size: 11px;
  line-height: 1.25;
}
.marketing-copy small {
  color: #81767b;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.4;
}
.checkout-modal .marketing-check > span { margin: 0; }
.checkout-submit {
  min-height: 55px;
  justify-content: space-between;
  padding-inline: 24px;
  border-radius: 29px;
  background: #128c54;
  font-size: 11px;
}
.checkout-submit b { font-size: 18px; }
.checkout-modal .privacy { margin: -4px auto 0; max-width: 440px; font-size: 8px; }
.order-success-modal {
  width: min(430px, calc(100% - 30px));
  padding: 38px;
  overflow: hidden;
  border: 1px solid rgba(165,29,88,.1);
  border-radius: 24px;
  color: #171417;
  background: linear-gradient(145deg, #fff 55%, #fbedf3);
  box-shadow: 0 30px 100px rgba(20,14,18,.3);
  text-align: center;
}
.order-success-modal::backdrop {
  background: rgba(18,13,17,.62);
  backdrop-filter: blur(5px);
}
.order-success-modal::before {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  top: -105px;
  right: -75px;
  border-radius: 50%;
  background: rgba(214,111,153,.12);
}
.order-success-icon {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  border-radius: 50%;
  color: #fff;
  background: #a51d58;
  box-shadow: 0 10px 26px rgba(165,29,88,.25);
  font-size: 27px;
}
.order-success-modal .eyebrow { margin: 0 0 9px; }
.order-success-modal h2 {
  margin: 0;
  font: 600 31px/1.08 "DM Sans", sans-serif;
  letter-spacing: -.04em;
}
.order-success-modal > p:not(.eyebrow) {
  margin: 13px 0 22px;
  color: #716b70;
  font-size: 12px;
  line-height: 1.6;
}
.order-success-modal > p strong { color: #a51d58; }
.order-success-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 23px;
  padding: 15px;
  border: 1px solid #eee1e7;
  border-radius: 14px;
  background: rgba(255,255,255,.78);
  text-align: left;
}
.order-success-status > span {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  color: #a51d58;
  background: #f9e5ed;
}
.order-success-status div { display: flex; flex-direction: column; gap: 4px; }
.order-success-status strong { font-size: 11px; }
.order-success-status small { color: #7c757a; font-size: 9px; line-height: 1.45; }
.order-success-close {
  min-height: 50px;
  border-radius: 26px;
  background: #171417;
}
@media (max-width: 600px) {
  .checkout-modal {
    width: calc(100% - 10px);
    max-height: calc(100svh - 10px);
    padding: 0;
    border-radius: 22px;
  }
  .checkout-heading {
    position: sticky;
    z-index: 2;
    top: 0;
    grid-template-columns: 40px 1fr;
    gap: 11px;
    padding: 20px 52px 17px 16px;
    box-shadow: 0 8px 20px rgba(24,18,22,.04);
  }
  .checkout-heading-icon { width: 40px; height: 40px; border-radius: 13px; font-size: 16px; }
  .checkout-heading h2 { padding: 0; font-size: 24px; }
  .checkout-heading .modal-lead { margin-top: 6px; font-size: 9px; line-height: 1.4; }
  .checkout-modal .modal-close { position: fixed; top: 10px; right: 9px; width: 37px; height: 37px; }
  .checkout-modal form { gap: 11px; padding: 16px 14px calc(17px + env(safe-area-inset-bottom)); }
  .checkout-fields.two { grid-template-columns: 1fr; }
  .checkout-modal input:not([type="checkbox"]),
  .checkout-modal select,
  .checkout-modal textarea { min-height: 44px; padding: 11px 13px; font-size: 16px; }
  .checkout-modal textarea { min-height: 68px; }
  .checkout-section-label { margin-top: 1px; }
  .marketing-check {
    min-height: 68px;
    padding: 12px 13px;
    gap: 11px;
    border-radius: 13px;
  }
  .marketing-control { flex-basis: 26px; width: 26px; height: 26px; }
  .marketing-copy strong { font-size: 12px; }
  .marketing-copy small { font-size: 10px; }
  .checkout-submit {
    position: sticky;
    z-index: 2;
    bottom: -17px;
    min-height: 50px;
    margin: 2px -2px 0;
    box-shadow: 0 -10px 22px rgba(255,255,255,.92),0 8px 20px rgba(18,140,84,.18);
  }
  .order-success-modal { padding: 31px 22px 24px; border-radius: 22px; }
  .order-success-modal h2 { font-size: 27px; }
}
