/* Product row structure adapted from Vant Card (Youzan, MIT): square thumbnail, bounded text and bottom actions. Source: docs/POINTS-MALL-SQUARE-LAYOUT-20261115.md. */
.points-mall{color:#39291c;background:#fffaf4;min-height:100dvh;padding-bottom:28px}.pm-client-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 14px}.pm-client-heading h1{font-size:19px;font-weight:700;margin:0}.pm-client-heading button{display:flex;align-items:center;justify-content:center;width:32px;height:32px;color:inherit}.pm-client-balance{margin:0 14px 16px;padding:18px;border-radius:22px;background:#493626;color:#fff7e9;border:1px solid #604936;box-shadow:0 7px 18px rgb(74 46 24 / 10%)}.pm-client-balance>header{display:flex;align-items:center;justify-content:space-between;gap:12px}.pm-client-balance-label{display:flex;align-items:center;gap:8px;color:#e5ceb0;font-size:12px;line-height:1.5}.pm-client-balance-label>span{display:flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:10px;background:#624b37;color:#f0cf98}.pm-client-balance header>button{display:inline-flex;align-items:center;gap:2px;border:1px solid #826449;background:#594230;border-radius:16px;color:#f5deba;padding:6px 8px;font:inherit;font-size:11px;white-space:nowrap}.pm-client-balance .pm-client-balance-value{display:flex;align-items:baseline;gap:9px;margin:12px 0 0;min-width:0}.pm-client-balance-value strong{font-size:40px;line-height:1.1;letter-spacing:-1px;font-weight:750;color:#f7d59d;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.pm-client-balance-value>span{font-size:12px;color:#e6ccb0}.pm-client-balance button:focus-visible{outline:2px solid #f8d59f;outline-offset:3px}.pm-client-search{display:flex;gap:8px;align-items:center;background:#fff;border:1px solid #ede4d9;border-radius:20px;margin:0 14px 14px;padding:6px 12px;color:#9e8c7a}.pm-client-search input{min-width:0;flex:1;border:0;background:none;outline:none;font:inherit;font-size:13px}.pm-client-search button{white-space:nowrap;font-size:12px;color:#d66c18}.pm-client-catalog{display:grid;grid-template-columns:78px minmax(0,1fr);margin:0 10px;background:white;border-radius:16px;overflow:hidden;min-height:400px}.pm-client-categories{background:#f3efe9;display:flex;flex-direction:column;align-items:stretch}.pm-client-categories button{border:0;background:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:84px;padding:12px 6px;color:#8d7d6d;font:inherit;font-size:12px;line-height:1.5}.pm-client-categories button.active{background:#fff;color:#ed6506;font-weight:600}.pm-client-products{min-width:0}.pm-client-product{--pm-thumb-size:96px;display:flex;gap:8px;padding:10px 8px;border-bottom:1px solid #f1ece5;align-items:flex-start;box-sizing:border-box}.pm-client-product-image{flex:0 0 var(--pm-thumb-size);width:var(--pm-thumb-size);height:var(--pm-thumb-size);aspect-ratio:1}.pm-client-product-image img,.pm-client-product-image>span{display:block;width:100%;height:100%;aspect-ratio:1;border-radius:11px;object-fit:cover;background:#f8f1e7}.pm-client-product-image>span{display:flex;align-items:center;justify-content:center;color:#bb8451}.pm-client-product-info{flex:1;min-width:0;height:var(--pm-thumb-size);container-type:inline-size;display:grid;grid-template-rows:32px 15px 14px 28px;row-gap:2px;align-content:space-between}.pm-client-product h2{font-size:13px;line-height:16px;margin:0;min-width:0;max-height:32px;overflow:hidden;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.pm-client-product p,.pm-client-product-info>small{display:block;min-width:0;max-width:100%;font-size:11px;line-height:15px;color:#a49380;margin:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pm-client-product-info>small{grid-row:3;font-size:10px;line-height:14px}.pm-client-product-stock.is-unavailable{color:#b07861}.pm-client-product-action{grid-row:4;display:flex;align-items:center;justify-content:space-between;gap:4px;min-width:0;height:28px;margin:0}.pm-client-product-action>strong{display:flex;align-items:baseline;gap:2px;min-width:0;color:#f16808;font-size:16px;font-variant-numeric:tabular-nums;white-space:nowrap}.pm-client-product-points-value{font-size:clamp(11px,8.2cqw,16px);letter-spacing:-.25px;line-height:1.2;white-space:nowrap}.pm-client-product-action strong small{font-size:9px;font-weight:400;margin:0;white-space:nowrap}.points-mall .pm-client-product-action button.primary-btn{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:500;line-height:16px;height:28px;min-height:28px;padding:0 7px;min-width:38px;border-radius:8px;white-space:nowrap;flex:0 0 auto}.pm-client-empty{font-size:13px;color:#b1a291;text-align:center;padding:50px 16px;line-height:1.8}.pm-client-note{font-size:12px;color:#997039;margin:10px 16px;line-height:1.7}.pm-client-records{padding:0 14px}.pm-client-records>h2{font-size:16px;margin:0 0 12px}.pm-client-confirm>h2,.pm-client-result>h2{font-size:18px;margin:14px 0}.pm-client-confirm>strong{font-size:27px;color:#ea6809;display:block;margin:18px 0}.pm-client-confirm>p,.pm-client-result p{font-size:13px;line-height:1.9}.pm-client-result{text-align:center;padding:12px 0 22px}.pm-client-result-icon{color:#dc680b;background:#fff2df;width:60px;height:60px;margin:0 auto;border-radius:50%;display:flex;align-items:center;justify-content:center}.balance-overview .points-mall-entry{display:inline-flex;align-items:center;gap:8px;color:#ecd2a0;border:1px solid #665c47;border-radius:9px;background:none;padding:8px 12px;margin-top:12px;font-size:13px}.pm-order-label{font-size:12px;color:#bf5d1e}@media(max-width:350px){.pm-client-catalog{grid-template-columns:66px minmax(0,1fr);margin:0 6px}.pm-client-product{--pm-thumb-size:88px;gap:6px;padding:10px 6px}.pm-client-product-info{grid-template-rows:28px 13px 13px 28px}.pm-client-product h2{font-size:12px;line-height:14px;max-height:28px}.pm-client-product p{font-size:10px;line-height:13px}.pm-client-product-info>small{line-height:13px}.pm-client-balance{margin-left:10px;margin-right:10px}}

.pm-client-search:focus-within{border-color:#efba88;box-shadow:0 0 0 2px #fff0de}
.pm-client-products:only-child{grid-column:1/-1}

.pm-client-categories button span{overflow-wrap:anywhere;max-width:100%}.pm-client-categories button svg{flex-shrink:0}.pm-client-categories button:focus-visible{outline:2px solid #eb7a28;outline-offset:-3px}@media(max-width:350px){.pm-client-balance{padding:16px}.pm-client-balance-value strong{font-size:35px}}

/* Adapted from Vant Cell/CellGroup inset, MIT, Youzan; fixed source and license in docs/POINTS-MALL-COMPACT-RETURN-20261115.md. */
.pm-client-record-list{overflow:hidden;border:1px solid #eee5da;border-radius:16px;background:#fff}
.pm-client-record{position:relative;display:flex;align-items:center;gap:12px;box-sizing:border-box;width:100%;padding:14px 16px;color:#39291c;line-height:1.5;background:#fff}
.pm-client-record:not(:last-child)::after{content:"";position:absolute;bottom:0;left:16px;right:16px;border-bottom:1px solid #f1eae1}
.pm-client-record-main{flex:1;min-width:0}
.pm-client-record h3{margin:0;font-size:14px;line-height:1.6;font-weight:600;overflow-wrap:anywhere}
.pm-client-record time{display:block;margin-top:5px;font-size:11px;line-height:1.5;color:#998572;font-variant-numeric:tabular-nums}
.pm-client-record-points{display:flex;align-items:baseline;gap:4px;flex-shrink:0;max-width:52%;font-size:16px;font-weight:650;color:#d66c18;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.pm-client-record-points span{font-size:11px;font-weight:400;white-space:nowrap}

/* Confirmation styles apply only while the points redemption dialog is open. */
#sheet[data-dialog-kind="points-redemption"] .pm-client-confirm[data-pm-kind="service"] { --pm-accent: #265985; --pm-soft: #eef5fc; --pm-tone-line: #d6e5f4; --pm-media-fill: #dcebf9; }
#sheet[data-dialog-kind="points-redemption"] .pm-client-confirm[data-pm-kind="coupon"] { --pm-accent: #8e4b0d; --pm-soft: #fff5e8; --pm-tone-line: #f0ddc3; --pm-media-fill: #fce9c9; }
#sheet[data-dialog-kind="points-redemption"] .pm-client-confirm[data-pm-kind="product"] { --pm-accent: #23614c; --pm-soft: #edf6f0; --pm-tone-line: #d5e7db; --pm-media-fill: #dceee3; }
#sheet[data-dialog-kind="points-redemption"] .pm-client-confirm { display: grid; gap: 12px; min-width: 0; color: #352820; }
#sheet[data-dialog-kind="points-redemption"] .pm-redemption-hero {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  padding: 11px;
  border: 1px solid var(--pm-tone-line);
  border-radius: 12px;
  background: var(--pm-soft);
}
#sheet[data-dialog-kind="points-redemption"] .pm-offer-media {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  background: var(--pm-media-fill);
  color: var(--pm-accent);
}
#sheet[data-dialog-kind="points-redemption"] .pm-offer-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
#sheet[data-dialog-kind="points-redemption"] .pm-offer-media > span { line-height: 0; }
#sheet[data-dialog-kind="points-redemption"] .pm-redemption-title { display: grid; gap: 3px; min-width: 0; }
#sheet[data-dialog-kind="points-redemption"] .pm-offer-type { margin: 0; color: var(--pm-accent); font-size: 12px; font-weight: 700; line-height: 1.4; }
#sheet[data-dialog-kind="points-redemption"] .pm-redemption-title h2 {
  margin: 0;
  color: #30251f;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
#sheet[data-dialog-kind="points-redemption"] .pm-offer-benefit { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin: 0; color: #65584e; font-size: 12px; line-height: 1.45; overflow-wrap: anywhere; }
#sheet[data-dialog-kind="points-redemption"] .pm-offer-benefit strong { color: var(--pm-accent); font-size: 13px; font-weight: 700; }
#sheet[data-dialog-kind="points-redemption"] .pm-offer-points {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  min-width: 0;
  color: var(--pm-accent);
  font-size: 20px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  line-height: 1.14;
  overflow-wrap: anywhere;
}
#sheet[data-dialog-kind="points-redemption"] .pm-offer-points > small { color: inherit; font-size: 11px; font-weight: 550; white-space: nowrap; }
#sheet[data-dialog-kind="points-redemption"] .pm-redemption-ledger { min-width: 0; padding: 2px 1px 0; }
#sheet[data-dialog-kind="points-redemption"] .pm-redemption-cost {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 5px 12px;
  padding: 2px 0 9px;
  border-bottom: 1px solid #ebdfd6;
}
#sheet[data-dialog-kind="points-redemption"] .pm-redemption-cost > span { color: #352820; font-size: 14px; font-weight: 700; }
#sheet[data-dialog-kind="points-redemption"] .pm-redemption-cost .pm-offer-points { font-size: 25px; }
#sheet[data-dialog-kind="points-redemption"] .pm-redemption-cost .pm-offer-points small { font-size: 12px; }
#sheet[data-dialog-kind="points-redemption"] .pm-redemption-facts { display: grid; gap: 5px; min-width: 0; margin: 7px 0 0; }
#sheet[data-dialog-kind="points-redemption"] .pm-redemption-facts > div {
  display: grid;
  grid-template-columns: minmax(76px, auto) minmax(0, 1fr);
  align-items: baseline;
  gap: 8px;
  font-size: 13px;
  line-height: 1.5;
}
#sheet[data-dialog-kind="points-redemption"] .pm-redemption-facts dt { color: #6b5b50; }
#sheet[data-dialog-kind="points-redemption"] .pm-redemption-facts dd { min-width: 0; margin: 0; color: #352820; font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }
#sheet[data-dialog-kind="points-redemption"] .pm-redemption-terms { min-width: 0; padding: 9px 0 0; border-top: 1px solid #ebdfd6; }
#sheet[data-dialog-kind="points-redemption"] .pm-redemption-terms h3 { margin: 0 0 4px; color: #352820; font-size: 14px; font-weight: 700; }
#sheet[data-dialog-kind="points-redemption"] .pm-redemption-terms .pm-redemption-recipient { color: #352820; font-weight: 600; }
#sheet[data-dialog-kind="points-redemption"] .pm-redemption-terms .pm-redemption-note { margin-top: 4px; color: #6b5b50; font-size: 12px; }
#sheet[data-dialog-kind="points-redemption"] .pm-client-confirm .pm-redemption-feedback { min-height: 0; margin: 0; padding: 7px 9px; border-radius: 7px; background: #fbefeb; color: #943d29; font-size: 13px; line-height: 1.5; }
#sheet[data-dialog-kind="points-redemption"] .pm-client-confirm .pm-redemption-feedback:empty { display: none; }
#sheet[data-dialog-kind="points-redemption"] .pm-redemption-terms p,
#sheet[data-dialog-kind="points-redemption"] .pm-redemption-description { margin: 0; color: #5f5148; font-size: 13px; line-height: 1.55; overflow-wrap: anywhere; }
#sheet[data-dialog-kind="points-redemption"] .pm-redemption-description { white-space: pre-wrap; }
#sheet[data-dialog-kind="points-redemption"] > .sheet-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  align-items: stretch;
  gap: 8px;
}
#sheet[data-dialog-kind="points-redemption"] > .sheet-footer > button { width: 100%; max-width: 100%; min-height: 44px; }
#sheet[data-dialog-kind="points-redemption"] > .sheet-footer > [data-action="pm-offer"] { grid-column: 1 / -1; }
@media (max-width: 350px) {
  #sheet[data-dialog-kind="points-redemption"] .pm-redemption-hero { grid-template-columns: 51px minmax(0, 1fr); gap: 9px; }
  #sheet[data-dialog-kind="points-redemption"] .pm-redemption-title h2 { font-size: 16px; }
}
