/* Checkout styles are scoped to this dialog; the existing shop stays unchanged. */
#taitaoCheckout { position:fixed; inset:0; margin:auto; width:min(920px,calc(100% - 24px)); max-height:90dvh; overflow-y:auto; padding:0; border:1px solid #dedbd2; border-radius:18px; background:#fcfaf6; color:#304447; box-shadow:0 24px 90px #173b3b38; }
#taitaoCheckout::backdrop { background:#203f426b; }
#taitaoCheckout * { box-sizing:border-box; }
#taitaoCheckout .co-head { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:22px 26px; border-bottom:1px solid #e8e1d6; }
#taitaoCheckout h2,#taitaoCheckout h3,#taitaoCheckout p { margin:0; }
#taitaoCheckout h2 { font-size:22px; }
#taitaoCheckout h3 { font-size:16px; margin-bottom:16px; }
#taitaoCheckout button { font:inherit; cursor:pointer; border-radius:8px; padding:10px 16px; border:1px solid #c7d7d4; color:#355e5c; background:#fff; }
#taitaoCheckout button:disabled { opacity:.55; cursor:wait; }
#taitaoCheckout button:focus-visible,#taitaoCheckout input:focus-visible,#taitaoCheckout textarea:focus-visible,#taitaoCheckout summary:focus-visible { outline:3px solid #83b6b0; outline-offset:2px; }
#taitaoCheckout .co-body { padding:24px 26px; }
#taitaoCheckout .co-note { color:#697e7e; font-size:13px; line-height:1.8; margin:8px 0 18px; }
#taitaoCheckout .co-message { border-radius:8px; padding:12px 15px; background:#f9ecde; color:#865334; line-height:1.7; margin-bottom:18px; overflow-wrap:anywhere; }
#taitaoCheckout .co-message:empty { display:none; }
#taitaoCheckout .co-layout { display:grid; grid-template-columns:1.15fr 1fr; gap:24px; }
#taitaoCheckout .co-panel { background:#fff; padding:20px; border:1px solid #e2e9e6; border-radius:12px; min-width:0; }
#taitaoCheckout .co-line { display:flex; gap:16px; justify-content:space-between; padding:13px 0; border-bottom:1px solid #edf0eb; font-size:14px; line-height:1.6; }
#taitaoCheckout .co-line > :first-child { min-width:0; overflow-wrap:anywhere; }
#taitaoCheckout .co-line > :last-child { flex-shrink:0; text-align:right; }
#taitaoCheckout .co-items { max-height:310px; overflow:auto; }
#taitaoCheckout small { display:block; color:#738887; font-size:12px; }
#taitaoCheckout .co-total { display:flex; justify-content:space-between; gap:14px; margin-top:20px; align-items:baseline; }
#taitaoCheckout .co-total strong { color:#b95840; font-size:24px; }
#taitaoCheckout label { display:block; font-size:14px; margin-bottom:14px; }
#taitaoCheckout input,#taitaoCheckout textarea { font:inherit; color:inherit; display:block; width:100%; margin-top:7px; padding:10px 12px; border:1px solid #d2ddda; border-radius:7px; background:#fff; }
#taitaoCheckout textarea { resize:vertical; min-height:78px; }
#taitaoCheckout fieldset { padding:0; border:0; margin:0; min-width:0; }
#taitaoCheckout .co-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:flex-end; gap:10px; margin-top:20px; }
#taitaoCheckout .co-primary { background:#be634b; border-color:#be634b; color:white; }
#taitaoCheckout .co-success { padding:22px; background:#eaf3ed; border-radius:12px; }
#taitaoCheckout .co-success h3 { color:#386b56; }
#taitaoCheckout .co-order { padding:18px; border:1px solid #dce5df; border-radius:10px; margin:14px 0; background:#fff; overflow-wrap:anywhere; }
#taitaoCheckout .co-order summary { cursor:pointer; line-height:1.9; }
#taitaoCheckout .co-address { white-space:pre-wrap; line-height:1.8; font-size:14px; margin-top:14px; }
#taitaoCheckout .co-tabs { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:12px; }
#taitaoCheckout .co-tabs [aria-pressed=true] { background:#3d6964; color:#fff; }
.cart-summary-total { flex-wrap:wrap; }
@media(max-width:640px) {
  #taitaoCheckout .co-layout { grid-template-columns:1fr; gap:16px; }
  #taitaoCheckout .co-head,#taitaoCheckout .co-body { padding:16px; }
  #taitaoCheckout .co-panel { padding:16px; }
  #taitaoCheckout .co-actions button { flex:1; }
  #taitaoCheckout h2 { font-size:19px; }
  #taitaoCheckout .co-total strong { font-size:21px; }
}
