.checkout-coupon-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: -2px 0 18px; }
.checkout-coupon-open, .checkout-coupon-remove { font: inherit; cursor: pointer; }
.checkout-coupon-open { border: 1px solid #3e5549; border-radius: 6px; padding: 9px 18px; background: #fff; color: #3e5549; font-weight: 600; }
.checkout-coupon-remove { border: 0; padding: 8px; background: transparent; color: #666; text-decoration: underline; }
.checkout-coupon-applied { flex-basis: 100%; margin: 0; color: #3e5549; font-size: .88rem; overflow-wrap: anywhere; }
.checkout-coupon-dialog { box-sizing: border-box; position: fixed; inset: 0; margin: auto; padding: 0; width: min(540px, calc(100% - 32px)); max-height: min(680px, calc(100dvh - 40px)); border: 0; border-radius: 10px; color: #333; background: #fff; box-shadow: 0 12px 36px #0004; font: 15px/1.55 "Microsoft JhengHei", Arial, sans-serif; }
.checkout-coupon-dialog[open] { display: flex; flex-direction: column; }
.checkout-coupon-dialog::backdrop { background: #0008; }
.checkout-coupon-dialog *, .checkout-coupon-actions * { box-sizing: border-box; }
.checkout-coupon-dialog [hidden], .checkout-coupon-actions [hidden] { display: none !important; }
.checkout-coupon-header { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; background: #eee; border-bottom: 1px solid #ddd; }
.checkout-coupon-header h2 { margin: 0; font: inherit; font-size: 18px; font-weight: 700; }
.checkout-coupon-close { border: 0; padding: 0 5px; background: transparent; color: #666; font-size: 28px; cursor: pointer; line-height: 1.2; }
.checkout-coupon-body { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 16px 20px; }
.checkout-coupon-note { margin: 0 0 12px; color: #c52661; font-size: 13px; }
.checkout-coupon-feedback { margin: 10px 0; color: #555; }
.checkout-coupon-feedback.is-error { color: #b42318; }
.checkout-coupon-list { border: 0; padding: 0; margin: 0; min-width: 0; }
.checkout-coupon-option { display: flex; align-items: flex-start; gap: 12px; padding: 16px 0; border-bottom: 1px solid #eee; cursor: pointer; }
.checkout-coupon-option:last-child { border-bottom: 0; }
.checkout-coupon-option input { margin: 5px 0 0; width: 18px; height: 18px; flex: 0 0 18px; accent-color: #d71b65; }
.checkout-coupon-detail { min-width: 0; display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere; }
.checkout-coupon-badge { align-self: flex-start; display: inline-flex; flex-wrap: wrap; border: 1px solid #d71b65; border-radius: 3px; color: #cf175d; background: white; }
.checkout-coupon-badge span { padding: 1px 8px; }
.checkout-coupon-badge small { display: inline-flex; align-items: center; padding: 1px 8px; color: white; background: #d71b65; }
.checkout-coupon-name { font-weight: 600; }
.checkout-coupon-meta { font-size: 12px; color: #666; }
.checkout-coupon-saving { color: #b91954; font-size: 13px; }
.checkout-coupon-footer { flex-shrink: 0; display: flex; justify-content: center; gap: 12px; padding: 14px 20px; border-top: 1px solid #eee; }
.checkout-coupon-footer button, .checkout-coupon-retry { min-width: 100px; border-radius: 20px; padding: 8px 18px; font: inherit; cursor: pointer; }
.checkout-coupon-cancel, .checkout-coupon-retry { border: 1px solid #d8d8d8; color: #555; background: white; }
.checkout-coupon-confirm { border: 1px solid #3e5549; color: #fff; background: #3e5549; }
.checkout-coupon-dialog button:disabled, .checkout-coupon-actions button:disabled { opacity: .5; cursor: not-allowed; }
.checkout-coupon-dialog button:focus-visible, .checkout-coupon-dialog input:focus-visible, .checkout-coupon-actions button:focus-visible { outline: 3px solid #609ec4; outline-offset: 3px; }
@media (max-width: 480px) {
  .checkout-coupon-dialog { width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  .checkout-coupon-body { padding: 12px 16px; }
}
