.cart-dialog {
  width: min(520px, calc(100% - 30px));
  max-height: min(88vh, 780px);
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: #f6f6f7;
  box-shadow: 0 24px 70px rgba(24, 28, 48, .3);
}

.cart-dialog::backdrop { background: rgba(20, 24, 40, .52); }
.cart-dialog-head { min-height: 54px; padding: 10px 18px; background: #fff; }
.cart-dialog-head h2 { font-size: 16px; font-weight: 500; color: var(--ink); }
.cart-dialog-close { display: grid; place-items: center; flex: 0 0 34px; border-radius: 50%; color: #333; line-height: 1; }
.cart-dialog-close:hover { background: var(--soft); }
.cart-dialog-body { max-height: calc(88vh - 54px); overflow-x: hidden; overflow-y: auto; padding: 20px; }
.cart-share-card { min-width: 0; padding: 20px; border: 1px solid #ececf0; border-radius: 15px; background: #fff; text-align: center; box-shadow: 0 7px 22px rgba(32, 35, 58, .04); }
.cart-share-url-field,.cart-copy-field{display:block;min-width:0;text-align:left}
.cart-share-url-field>span,.cart-copy-field>span{display:block;margin:0 0 5px;color:#747b91;font-size:11px;font-weight:700}
.cart-share-url { display: block; width:100%; max-width: 100%; margin: 0 auto 10px; padding:8px 10px; overflow: hidden; border:1px solid #dfe2eb; border-radius:6px; background:#f8f9fb; color: #555d75; font-size: 12px; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.cart-share-url:focus,.cart-copy-field input:focus{border-color:var(--accent);outline:2px solid rgba(127,135,171,.18)}
.cart-copy-field{margin:10px 0 8px}
.cart-copy-field input{display:block;width:100%;height:38px;padding:0 10px;border:1px solid #dfe2eb;border-radius:5px;background:#f8f9fb;color:#555d75;font-size:11px;text-overflow:ellipsis}
.cart-share-card img.cart-share-qr { display: block !important; width: 210px !important; min-width: 210px !important; max-width: 210px !important; height: 210px !important; min-height: 210px !important; max-height: 210px !important; margin: 0 auto 10px !important; padding: 0; object-fit: contain !important; background: #fff; }
.cart-dialog-en .cart-share-card img.cart-share-qr { padding: 5px; }
.cart-share-account { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 2px 0 12px; color: #333; font-size: 15px; }
.cart-share-account strong { font-size: 18px; letter-spacing: .3px; }
.cart-share-actions { display: grid; grid-template-columns: 1fr; gap: 9px; }
.cart-share-button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 42px; padding: 8px 14px; border: 1px solid #10b765; border-radius: 22px; background: #10c86f; color: #fff; font-size: 13px; font-weight: 700; line-height: 1.35; cursor: pointer; transition: filter .18s, transform .18s; }
.cart-share-button:hover { filter: brightness(.95); transform: translateY(-1px); }
.cart-share-button-copy { background: #fff; color: #168e59; }
.cart-dialog-zh .cart-share-button-copy { background: #10c86f; color: #fff; }
.cart-share-button-whatsapp { background: #20b86a; color: #fff; }
.cart-copy-status { min-height: 18px; margin-top: 6px; color: #168e59; font-size: 12px; }
.cart-copy-status.is-error { color: #b33a2e; }
.cart-page-copy-status { text-align: center; }
.cart-dialog-order { margin-top: 20px; }
.cart-order-heading { position: relative; margin: 0 0 10px; padding: 0 0 0 14px; color: #242737; font-size: 18px; line-height: 26px; text-align: center; }
.cart-order-heading::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 4px; border-radius: 3px; background: #10c86f; }
.cart-dialog-product-list { border-top: 1px solid #e3e3e7; }
.cart-dialog-product { display: grid; grid-template-columns: 62px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-bottom: 1px solid #dedee3; }
.cart-dialog-product-image { align-self: start; overflow: hidden; border: 1px solid #ddd; border-radius: 5px; background: #fff; }
.cart-dialog-product-image img { display: block; width: 62px; height: 74px; object-fit: cover; }
.cart-dialog-product-copy { min-width: 0; }
.cart-dialog-product-title { display: block; overflow: hidden; color: #202333; font-size: 13px; font-weight: 700; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.cart-dialog-product-title:hover { color: var(--accent-dark); }
.cart-dialog-product-sn { margin-top: 5px; color: #7880a5; font-size: 12px; }
.cart-dialog-product-pricing { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 4px 12px; margin-top: 7px; color: #f04432; font-size: 12px; }
.cart-dialog-product-pricing strong { font-weight: 500; }
.cart-dialog-total { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 13px 0 0; color: #555; font-size: 14px; }
.cart-dialog-total strong { color: #ef3f2d; font-size: 21px; }

@media (max-width: 560px) {
  .cart-dialog { width: calc(100% - 20px); max-height: 88dvh; margin: auto; }
  .cart-dialog-head { min-height: 50px; padding: 8px 13px; }
  .cart-dialog-head h2 { font-size: 15px; }
  .cart-dialog-body { max-height: calc(88dvh - 50px); padding: 12px; }
  .cart-share-card { padding: 14px 12px; border-radius: 12px; }
  .cart-share-url { font-size: 11px; }
  .cart-share-card img.cart-share-qr { width: 190px !important; min-width: 190px !important; max-width: 190px !important; height: 190px !important; min-height: 190px !important; max-height: 190px !important; }
  .cart-share-account { font-size: 14px; }
  .cart-share-account strong { font-size: 17px; }
  .cart-order-heading { font-size: 17px; }
  .cart-dialog-product { grid-template-columns: 58px minmax(0, 1fr); gap: 10px; }
  .cart-dialog-product-image img { width: 58px; height: 70px; }
  .cart-dialog-product-pricing { justify-content: flex-start; gap: 4px 9px; }
  .cart-dialog-total strong { font-size: 20px; }
}

@media (max-width: 360px) {
  .cart-share-card img.cart-share-qr { width: 170px !important; min-width: 170px !important; max-width: 170px !important; height: 170px !important; min-height: 170px !important; max-height: 170px !important; }
  .cart-dialog-product-pricing span:last-child { width: 100%; }
}

.cart-dialog-product-image img{height:auto!important;max-height:78px;object-fit:contain!important}
.cart-copy-status.is-error{color:#b33a2e}
.cart-page-copy-status{text-align:center}
