.gift-one { max-width: 560px; margin: clamp(28px, 3vw, 44px) auto 0; }
.gift-one .btn { display: block; width: 100%; box-sizing: border-box; margin-top: 10px; font: inherit; cursor: pointer; border: 0; }
.gift-one .btn:disabled { opacity: 0.55; cursor: default; }
.gift-msg { min-height: 1.4em; margin: 10px 0 0; }
.gift-how { max-width: 640px; margin: clamp(32px, 3.4vw, 50px) auto 0; }
.gift-how h2 { font-size: 22px; margin: 0 0 10px; }
.gift-how ol { margin: 0 0 14px; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; line-height: 1.55; }
.gift-small { font-size: 14.5px; line-height: 1.55; color: var(--quiet); }
.gift-print-hint { display: none; }
.gift-cut { max-width: 760px; margin: 40px auto 0; }
.gift-card { background: #FFFFFF; border-radius: 20px; box-shadow: 0 1px 0 #EDE6DC, 0 18px 40px rgba(16, 35, 61, 0.10); overflow: hidden; color: #10233D; text-align: left; box-sizing: border-box; }
.gift-card p { margin: 0; overflow-wrap: anywhere; }
.gift-card-band { height: 10px; background: #FF6600; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.gift-card-body { display: flex; flex-direction: row; gap: 36px; padding: 34px 40px 30px; align-items: stretch; }
.gift-card-words { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.gift-card-logo { display: block; width: 178px; height: 40px; object-fit: contain; object-position: left center; }
.gift-card-head { margin-top: 4px !important; font-family: var(--mono); font-size: 12.5px; letter-spacing: 2.5px; text-transform: uppercase; color: #C24E00; }
.gift-card-to { font-size: 22px; font-weight: 700; }
.gift-card-note { font-family: var(--serif); font-weight: 600; font-style: italic; font-size: 21px; line-height: 1.45; color: #33445C; }
.gift-card-from { font-size: 17px; font-weight: 700; color: #4A5B72; }
.gift-card-codebox { margin-top: 8px; background: #E9F4FA; border: 1px solid #DCEBF3; border-radius: 12px; padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; }
.gift-card-label { font-size: 13px; color: #4A5B72; }
.gift-card-code { font-family: var(--mono); font-weight: 400; font-size: 30px; letter-spacing: 2px; color: #10233D; }
.gift-card-qr { width: 196px; flex: 0 0 196px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; border-left: 2px dashed #EDE6DC; padding-left: 34px; }
.gift-card-qr[hidden] { display: none; }
.gift-card-qrimg svg { display: block; width: 168px; height: 168px; background: #FFFFFF; }
.gift-card-qrimg path { fill: #10233D; }
.gift-card-scan { font-size: 15px; font-weight: 700; text-align: center; }
.gift-card-point { font-size: 12.5px; line-height: 1.4; color: #5B6C84; text-align: center; }
.gift-card-how { background: #10233D; color: #C7D6E6; padding: 16px 40px; font-size: 15px; line-height: 1.5; text-align: center; }
.gift-card-how strong { color: #FFFFFF; }
.gift-after { max-width: 760px; margin: 30px auto 0; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.gift-after p { margin: 0; }
.gift-after .btn { border: 0; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer; min-height: 48px; padding: 0 30px; }
.gift-send-label { font-size: 15px; color: #4A5B72; }
.gift-send { width: 100%; max-width: 620px; display: flex; flex-direction: row; gap: 10px; }
.gift-link { flex: 1 1 0; min-width: 0; min-height: 46px; box-sizing: border-box; display: flex; align-items: center; padding: 10px 14px; border: 1px solid #DFD7CB; border-radius: 10px; background: #FFFFFF; color: #10233D; font-family: var(--mono); font-size: 14px; line-height: 1.4; text-align: left; overflow-wrap: anywhere; -webkit-user-select: all; user-select: all; }
@media screen and (min-width: 521px) { .gift-link { display: block; line-height: 24px; white-space: nowrap; overflow: hidden; text-overflow: clip; } }
.gift-copy { flex: 0 0 auto; min-height: 46px; padding: 0 20px; border: 2px solid #10233D; border-radius: 10px; background: #FFFFFF; color: #10233D; font-family: var(--sans); font-size: 15px; font-weight: 700; cursor: pointer; }
.gift-copy:hover { background: #10233D; color: #FFFFFF; }
.gift-after .gift-small { max-width: 620px; }
@media screen and (max-width: 640px) {
  .gift-cut { margin-top: 28px; }
  .gift-card-body { flex-direction: column; gap: 22px; padding: 26px 22px 24px; }
  .gift-card-qr { width: auto; flex: 0 0 auto; border-left: 0; padding-left: 0; border-top: 2px dashed #EDE6DC; padding-top: 22px; }
  .gift-card-code { font-size: clamp(19px, 6.2vw, 30px); letter-spacing: 1px; }
  .gift-card-how { padding: 14px 22px; }
}
@media screen and (max-width: 520px) {
  .gift-send { flex-direction: column; }
}
@page { margin: 0.75in; }
@media print {
  .gift-noprint, .topbar, .footer, .gift-after { display: none !important; }
  html, body { background: #fff !important; }
  .gift .wrap { padding: 0 !important; max-width: none !important; }
  .gift-print-hint { display: block; margin: 0 auto 14px; max-width: 672px; font-size: 13px; color: #5B6C84; text-align: center; }
  .gift-cut { width: 100%; max-width: 672px; margin: 0 auto; box-sizing: border-box; border: 2px dashed #9AA8BA; border-radius: 6px; padding: 14px; break-inside: avoid; page-break-inside: avoid; }
  .gift-card { box-shadow: none; border: 2px solid #10233D; border-radius: 16px; }
  .gift-card-body { flex-direction: row; gap: 28px; padding: 28px 30px 24px; }
  .gift-card-words { gap: 11px; }
  .gift-card-logo { width: 160px; height: 36px; }
  .gift-card-head { margin-top: 2px !important; font-size: 11.5px; }
  .gift-card-to { font-size: 19px; }
  .gift-card-note { font-size: 17.5px; }
  .gift-card-from { font-size: 15px; }
  .gift-card-codebox { margin-top: 6px; background: none; border: 1.5px solid #10233D; border-radius: 10px; padding: 10px 14px; gap: 2px; }
  .gift-card-label { font-size: 12px; }
  .gift-card-code { font-size: 25px; letter-spacing: 1.5px; }
  .gift-card-qr { width: 170px; flex: 0 0 170px; gap: 10px; border-left: 0; padding-left: 0; }
  .gift-card-qrimg svg { width: 150px; height: 150px; }
  .gift-card-qrimg path { fill: #000000; }
  .gift-card-scan { font-size: 14px; }
  .gift-card-point { display: none; }
  .gift-card-how { background: none; border-top: 2px solid #10233D; padding: 12px 30px; font-size: 13.5px; color: #10233D; }
  .gift-card-how strong { color: #10233D; }
}
