[data-theme] .payment-sheet {
  padding: 28px 24px 22px !important;
  border-radius: 26px 26px 0 0 !important;
}
[data-theme] .payment-sheet h2 {
  font-size: 23px !important;
  letter-spacing: -0.8px;
  margin: 0 0 8px !important;
  line-height: 1.4;
}
[data-theme] .payment-sheet .payment-for {
  font-size: 12px !important;
  margin: 0 0 23px !important;
}
[data-theme] .payment-product {
  min-height: 80px;
  padding: 18px !important;
  margin-bottom: 24px !important;
}
[data-theme] .payment-product > strong:first-child {
  font-size: 17px;
}
[data-theme] .payment-product .payment-price {
  font-size: 28px !important;
  letter-spacing: -0.7px;
}
[data-theme] .payment-methods {
  gap: 9px !important;
  margin-top: 0 !important;
}
[data-theme] .payment-methods button {
  height: 64px !important;
  min-height: 0 !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: none !important;
  font:
    600 15px "Pretendard Variable",
    sans-serif !important;
  letter-spacing: -0.4px;
  padding: 12px !important;
}
[data-theme] .payment-methods .pay-kakao {
  background: #ffeb00 !important;
  color: #000 !important;
}
[data-theme] .payment-methods .pay-naver {
  background: #03c75a !important;
  color: #000 !important;
}
[data-theme] .payment-methods .pay-toss {
  background: #fff !important;
  color: #202632 !important;
  border: 1px solid #e9e8eb !important;
}
[data-theme] .payment-methods .pay-card {
  background: var(--sheet-accent) !important;
  color: var(--sheet-bg) !important;
  grid-column: 1/-1;
  height: 56px !important;
  color: #fff9f5 !important;
}
[data-theme] .payment-brand {
  display: block !important;
  width: 70px !important;
  height: 26px !important;
  object-fit: contain !important;
  margin: 0 !important;
  border-radius: 0 !important;
  max-width: 100% !important;
}
[data-theme] .pay-kakao .payment-brand {
  width: 72px !important;
  height: 30px !important;
}
[data-theme] .pay-naver .payment-brand {
  width: 65px !important;
  height: 26px !important;
}
[data-theme] .pay-toss .payment-brand {
  width: 76px !important;
  height: 25px !important;
}
[data-theme] .card-symbol {
  width: 22px;
  height: 18px;
  flex: none;
}
[data-theme] .method-caption,
[data-theme] .method-arrow {
  display: none !important;
}
[data-theme] .payment-legal {
  font-size: 10px !important;
  line-height: 1.8 !important;
  margin-top: 20px !important;
  text-align: center !important;
}

[data-theme] .discount-benefit {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: var(--sheet-accent);
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 9px;
}
[data-theme] .discount-benefit span {
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0;
  border: 1px solid var(--sheet-line);
  color: var(--sheet-muted);
  padding: 2px 6px;
  border-radius: 4px;
}
[data-theme] .payment-product {
  min-height: 101px;
  align-items: center;
  gap: 8px;
}
[data-theme] .discount-prices {
  margin-left: auto;
  text-align: right;
  flex: none;
}
[data-theme] .discount-prices del {
  display: block;
  font-size: 12px;
  line-height: 1.4;
  color: var(--sheet-muted);
  font-weight: 500;
  text-decoration-thickness: 1px;
  margin-bottom: 5px;
}
[data-theme] .discount-final {
  display: flex;
  align-items: baseline;
  gap: 7px;
  white-space: nowrap;
}
[data-theme] .discount-rate {
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.7px;
  color: var(--sheet-accent);
}
[data-theme] .discount-final .payment-price {
  color: var(--sheet-fg) !important;
  font-size: 28px !important;
  font-weight: 800;
  line-height: 1.2;
}
[data-theme] .discount-final .payment-price small {
  font-size: 17px !important;
  margin-left: 2px;
}
[data-theme="rose"] .discount-benefit,
[data-theme="rose"] .discount-rate {
  color: #b65d7c;
}

[data-theme] .payment-sheet .discount-benefit {
  font-size: 18px !important;
  font-weight: 750 !important;
  line-height: 1.5 !important;
  color: var(--sheet-accent) !important;
  margin: 0 0 16px !important;
}
[data-theme] .payment-sheet .discount-benefit span {
  font-size: 9px !important;
  line-height: 1.5 !important;
  color: var(--sheet-muted) !important;
}
.payment-sheet[data-theme="rose"] {
  --sheet-bg: #fff9f5;
  --sheet-fg: #46303b;
  --sheet-muted: #947481;
  --sheet-card: #fffcfa;
  --sheet-line: #ebd4dd;
  --sheet-accent: #ad647f;
  background:
    radial-gradient(ellipse at 100% 0%, #f4dde5 0, transparent 54%), #fff9f5 !important;
  color: #46303b !important;
  border-top: 1px solid #ebd4dd;
  box-shadow: 0 -12px 40px #1f142111;
}
.payment-sheet[data-theme="rose"] .payment-for,
.payment-sheet[data-theme="rose"] .checkout-close,
.payment-sheet[data-theme="rose"] .payment-legal {
  color: #947481 !important;
}
.payment-sheet[data-theme="rose"] .payment-product {
  background: #fffcfa;
  border: 0;
  border-left: 3px solid #d29ab0;
  box-shadow: 0 3px 16px #b0768f0c;
}
.payment-sheet[data-theme="rose"] .payment-status,
.payment-sheet[data-theme="rose"] .match-error {
  color: #a25371 !important;
}
.payment-sheet[data-theme="rose"] .discount-benefit {
  font-size: 18px !important;
  color: #ad647f !important;
}
.payment-sheet[data-theme="rose"] .payment-price {
  color: #46303b !important;
}
.payment-sheet[data-theme="rose"] .payment-brand {
  pointer-events: none;
}
.payment-sheet[data-theme="rose"] .payment-methods {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.payment-sheet[data-theme="rose"] .payment-product {
  display: flex;
  justify-content: space-between;
}
.payment-sheet[data-theme="rose"] .payment-legal a {
  color: inherit;
}

.payment-sheet[data-theme="rose"] h2 {
  font-size: 27px !important;
  line-height: 1.35 !important;
  letter-spacing: -1px !important;
  margin: 3px 24px 17px 0 !important;
  max-width: 295px;
}
.payment-sheet[data-theme="rose"] .discount-benefit {
  font-size: 21px !important;
  margin: 0 0 20px !important;
}
.payment-sheet[data-theme="rose"] .discount-benefit span {
  border: 0;
  font-size: 18px !important;
  padding: 0;
}

.payment-sheet[data-theme="rose"] .checkout-delivery {
  margin: 0 0 19px;
}
.checkout-delivery label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 650;
  margin: 0 0 9px;
}
.checkout-delivery label span {
  font-size: 10px;
  font-weight: 500;
  color: #b26c84;
}
.checkout-delivery input {
  display: block;
  width: 100%;
  border: 1px solid #e3cdd6;
  background: #fffcfa;
  color: #46303b;
  border-radius: 10px;
  padding: 12px 13px;
  font:
    14px "Pretendard Variable",
    sans-serif;
  outline-offset: 2px;
}
.checkout-delivery input:focus {
  outline: 2px solid #c18ba2;
}
.checkout-delivery input::placeholder {
  color: #b29ca6;
}
.payment-sheet[data-theme="rose"] .checkout-delivery p {
  font-size: 11px !important;
  line-height: 1.6 !important;
  color: #947481 !important;
  margin: 8px 0 0 !important;
}

/* Selected coupon layout: recipient, itemized total, payment methods. */
.payment-sheet[data-theme="rose"] h2 {
  font-size: 24px !important;
  margin-bottom: 9px !important;
}
.payment-sheet[data-theme="rose"] .discount-benefit {
  font-size: 19px !important;
  gap: 5px;
  margin-bottom: 22px !important;
}
.payment-sheet[data-theme="rose"] .discount-benefit [data-benefit-total] {
  font-size: inherit !important;
  color: inherit !important;
}
.payment-sheet[data-theme="rose"] .checkout-delivery label {
  font-size: 14px;
}
.payment-sheet[data-theme="rose"] .checkout-delivery p {
  font-size: 12px !important;
}
.payment-breakdown {
  padding: 17px 0 0;
  border-top: 1px solid #eadce1;
  margin: 23px 0 24px;
}
.payment-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 13px;
  min-height: 35px;
  color: #78616c;
}
.payment-line[hidden],
[data-coupon-row][hidden] {
  display: none !important;
}
.payment-line del {
  font-size: 13px;
}
.payment-line b {
  font-weight: 550;
}
.payment-line.time-discount {
  color: #ad647f;
}
.payment-line.coupon-discount > div {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 70%;
}
.payment-line select {
  width: auto;
  max-width: 100%;
  font:
    11px "Pretendard Variable",
    sans-serif;
  color: #8c6275;
  background: #f7edf1;
  border: 1px solid #eadce1;
  border-radius: 6px;
  padding: 7px 8px;
}
.payment-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  border-top: 1px solid #eadce1;
  margin-top: 12px;
  padding-top: 18px;
  font-size: 14px;
  font-weight: 650;
}
.payment-total > div {
  display: flex;
  align-items: baseline;
  gap: 7px;
  white-space: nowrap;
}
.payment-total .discount-rate {
  font-size: 18px;
}
.payment-total .payment-price {
  font-size: 25px !important;
  letter-spacing: -1px;
}
.payment-marketing {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin: 17px 0 0;
  font-size: 10px;
  line-height: 1.6;
  color: #88717d;
}
.payment-marketing label {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}
.payment-marketing input {
  appearance: auto;
  width: 12px;
  height: 12px;
  margin: 0;
  accent-color: #ad647f;
}
.payment-marketing label span {
  font-size: 9px;
}
.payment-marketing details summary {
  cursor: pointer;
  text-decoration: underline;
  list-style: none;
  white-space: nowrap;
}
.payment-marketing details p {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  background: #fff9f5;
  border: 1px solid #eadce1;
  padding: 12px;
  border-radius: 8px;
  color: #78616c;
  font-size: 11px;
  line-height: 1.7;
}
.payment-sheet[data-theme="rose"] .payment-status:empty,
.payment-sheet[data-theme="rose"] .match-error:empty {
  display: none;
}
@media (max-width: 350px) {
  .payment-sheet[data-theme="rose"] {
    padding: 24px 18px 18px !important;
  }
  .payment-total .payment-price {
    font-size: 23px !important;
  }
  .payment-total .discount-rate {
    font-size: 16px;
  }
}

.match-exit-confirm {
  position: fixed;
  inset: 0;
  margin: auto;
  width: calc(100% - 40px);
  max-width: 400px;
  max-height: calc(100dvh - 48px);
  overflow: auto;
  box-sizing: border-box;
  border: 1px solid #ead4de;
  border-radius: 24px;
  padding: 30px 24px 20px;
  background: #fff9f7;
  color: #3c3036;
  box-shadow: 0 20px 70px #40203240;
  font-family: "Pretendard Variable", sans-serif;
  text-align: left;
}
.match-exit-confirm::backdrop {
  background: #24182170;
  backdrop-filter: blur(2px);
}
.match-exit-confirm h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: -0.6px;
  word-break: keep-all;
}
.match-exit-confirm h2 span {
  color: #a34f6c;
}
.match-exit-confirm p {
  margin: 20px 0 26px;
  color: #75656e;
  font-size: 15px;
  line-height: 1.7;
  letter-spacing: -0.3px;
}
.match-exit-confirm button {
  display: block;
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  font:
    600 16px/24px "Pretendard Variable",
    sans-serif;
  cursor: pointer;
}
.match-exit-confirm [data-exit-continue] {
  background: #ad5e79;
  color: #fff;
  box-shadow: 0 4px 12px #ad5e7920;
}
.match-exit-confirm [data-exit-leave] {
  background: transparent;
  color: #675760;
  margin-top: 10px;
}
.match-exit-confirm button:focus-visible {
  outline: 3px solid #84405b;
  outline-offset: 3px;
}
@media (max-width: 350px) {
  .match-exit-confirm {
    padding: 26px 20px 16px;
  }
  .match-exit-confirm h2 {
    font-size: 20px;
  }
}

.match-exit-confirm #match-exit-description{white-space:nowrap;font-size:clamp(10px,2.8vw,13px);letter-spacing:-.5px}

.match-exit-confirm #match-exit-heading{white-space:nowrap;font-size:clamp(13px,3.8vw,19px);letter-spacing:-.7px}
.match-exit-confirm #match-exit-description{color:#44343d;font-weight:500}
@media(max-width:350px){.match-exit-confirm{width:calc(100% - 24px);padding:26px 16px 16px}}
