/* Existing SDP world: warm paper, dark ink, teal links; operate/read surfaces. */
.commerce-center {display:grid;gap:20px;margin-block:24px;grid-column:1/-1;min-width:0}
.commerce-section-heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-bottom:20px}
.commerce-section-heading h2{margin:0;font-size:1.4rem}
.commerce-facts{margin:12px 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 28px;font-variant-numeric:tabular-nums}
.commerce-facts>div{padding:12px 0;border-bottom:1px solid var(--sdp-border);min-width:0}
.commerce-facts dt{font-size:.88rem;color:#52616c}.commerce-facts dd{margin:6px 0 0;overflow-wrap:anywhere;font-weight:600}
.commerce-note{color:#52616c;font-size:.92rem;line-height:1.7;max-width:70ch}
.commerce-alert{padding:14px;background:#fff1da;color:#654212;border:1px solid #d4bd92;border-radius:6px}
.commerce-records{list-style:none;padding:0;margin:0}.commerce-records>li{padding:20px 0;border-bottom:1px solid var(--sdp-border)}.commerce-records>li:first-child{padding-top:0}.commerce-records h3{margin:0 0 8px;font-size:1.1rem}.commerce-records h4{margin-bottom:8px}
.commerce-return{grid-column:1/-1;margin:24px 0;padding:clamp(20px,4vw,32px);background:#f1f8f5;border:1px solid #8db6ab;border-radius:12px;min-width:0}.commerce-return h2{margin:0 0 16px}.commerce-return[data-order-state="unknown"]{background:var(--panel)}
.commerce-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-top:22px}.commerce-center a,.commerce-return a{text-underline-offset:4px}.commerce-center button,.commerce-return button{min-height:44px}.commerce-center :focus-visible,.commerce-return :focus-visible{outline:2px solid var(--teal);outline-offset:4px}
body[data-app-view="profile"] .commerce-center,body[data-app-view="reports"] .commerce-center,body[data-app-view="reports"] .commerce-return{display:none}
@media(max-width:560px){.commerce-facts{grid-template-columns:1fr}.commerce-actions>*{flex:1 1 auto;text-align:center}.commerce-section-heading{align-items:flex-start}.commerce-section-heading h2{font-size:1.25rem}}

.site-footer [data-developer-link],.site-footer [data-pricing-link]{color:var(--teal);text-underline-offset:4px}
/* Native disclosures keep the default overview quiet and work with keyboard input. */
.commerce-section>summary{cursor:pointer;list-style:none;margin:0;min-height:44px;align-items:center}
.commerce-section>summary::-webkit-details-marker,.commerce-reward-detail>summary::-webkit-details-marker{display:none}
.commerce-chevron{width:20px;height:20px;flex:none;color:var(--teal);margin-inline-start:auto}
.commerce-chevron path{stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.commerce-section[open]>summary>.commerce-chevron,.commerce-reward-detail[open]>summary>.commerce-chevron{transform:rotate(180deg)}
.commerce-toolbar{display:flex;justify-content:flex-end;margin-top:8px}
.commerce-order-row{width:100%;border:0;background:transparent;color:inherit;text-align:start;padding:8px 0;cursor:pointer;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 24px;font:inherit}
.commerce-record-title{font-weight:600;overflow-wrap:anywhere}.commerce-record-amount{font-weight:600;font-variant-numeric:tabular-nums}.commerce-record-status{text-align:end;font-size:.92rem;color:var(--teal)}
.commerce-order-row:hover .commerce-record-title{text-decoration:underline;text-underline-offset:4px}
.commerce-reward-detail>summary{cursor:pointer;display:flex;flex-wrap:wrap;gap:8px 20px;align-items:baseline;min-height:44px;list-style:none}

.commerce-reward-detail>summary .commerce-record-title{flex:1 1 160px}
.commerce-return-description{font-size:1.1rem;line-height:1.7}
#commerceOrderDetail{scroll-margin-top:24px}#commerceOrderDetail:focus{outline:none}
@media(max-width:560px){.commerce-order-row{gap:8px 12px}.commerce-reward-detail>summary{gap:8px 12px}.commerce-record-status{max-width:16ch}}
