/* RG-7: every status has a readable label + symbol, independent of colour. */
#rgcs-account.rga-refined .rga-status{display:inline-flex;align-items:center;gap:7px;border:1px solid transparent;border-radius:100px;padding:7px 11px;line-height:1.35;letter-spacing:0;font-weight:500;font-size:12px;background:var(--state-bg,#f2ebe5);color:var(--state-ink,#51483f);width:fit-content;max-width:100%}
#rgcs-account.rga-refined .rga-status svg{width:16px;height:16px;flex:none}
.rga-status-processing{--state-bg:#e1f3de;--state-ink:#265a28}
.rga-status-completed{--state-bg:#e0edff;--state-ink:#24558d}
.rga-status-on-hold{--state-bg:#fff2ae;--state-ink:#685400}
.rga-status-pending{--state-bg:#ffe7bd;--state-ink:#7a450a}
.rga-status-cancelled{--state-bg:#fbe0dd;--state-ink:#932e29}
.rga-status-refunded{--state-bg:#e2effa;--state-ink:#225b87}
.rga-status-failed{--state-bg:#191919;--state-ink:#fff}
#rgcs-account.rga-refined .rga-status-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:0 0 14px;padding:8px;border:1px solid #e7ded5;background:#f4eee8;border-radius:19px;min-width:0}
#rgcs-account.rga-refined .rga-status-tab{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:center;gap:8px;padding:12px 10px;min-height:64px;line-height:1.3;font-size:13px;font-weight:500;color:#665c53;border-radius:12px;border:1px solid transparent;text-decoration:none;transition:background .18s,box-shadow .18s,transform .18s;overflow-wrap:anywhere}
#rgcs-account.rga-refined .rga-status-tab.is-active{background:#fffdfb;color:#322d29;border-color:#d6c4b8;box-shadow:0 3px 12px #54413209}
#rgcs-account.rga-refined .rga-status-tab:hover{background:#fffaf5;transform:translateY(-1px)}
#rgcs-account.rga-refined .rga-status-tab:focus-visible{outline:2px solid #72383d;outline-offset:2px}
#rgcs-account.rga-refined .rga-tab-mark{display:flex;align-items:center;justify-content:center;border-radius:9px;width:28px;height:28px;background:var(--state-bg,#e8ded5);color:var(--state-ink,#72383d)}
#rgcs-account.rga-refined .rga-tab-mark svg{width:17px;height:17px;flex:none}
#rgcs-account.rga-refined .rga-status-count{font-size:11px;font-variant-numeric:tabular-nums;opacity:.8;min-width:17px;text-align:center}
#rgcs-account.rga-refined .rga-order-result{font-size:13px;color:#685e56;margin:14px 4px 20px}
#rgcs-account.rga-refined .rga-order-index .order-card{background:#fffdfa;border:1px solid #e6ded5;border-radius:18px;margin-bottom:14px;transition:border-color .2s,box-shadow .2s}
#rgcs-account.rga-refined .rga-order-index .order-card:hover{border-color:#cbbcaf;box-shadow:0 8px 25px #322d2906}
#rgcs-account.rga-refined .order-detail-layout{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:20px}
#rgcs-account.rga-refined .order-detail-layout>div,#rgcs-account.rga-refined .tracking-side{min-width:0}
#rgcs-account.rga-refined .rga-back-orders{position:static;flex:0 0 auto;margin:0;align-self:flex-start;min-height:44px;padding:10px 14px}
#rgcs-account.rga-refined .rga-tracking{position:relative;overflow:hidden;isolation:isolate;background:linear-gradient(145deg,#fffdf9,#f6eee6)}
#rgcs-account.rga-refined .rga-tracking h2{font-size:clamp(24px,3vw,31px);line-height:1.2;overflow-wrap:anywhere;margin:20px 0 12px}
#rgcs-account.rga-refined .rga-tracking .timeline{padding-top:10px;margin-top:22px}
#rgcs-account.rga-refined .rga-tracking .timeline li{min-width:0;gap:14px}
#rgcs-account.rga-refined .rga-tracking .timeline li>div{min-width:0}
#rgcs-account.rga-refined .rga-tracking .timeline p{font-size:13px;line-height:1.6;margin-top:5px;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
#rgcs-account.rga-refined .rga-detail-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:23px}
#rgcs-account.rga-refined .rga-detail-actions .btn{margin:0;min-height:44px}
#rgcs-account.rga-refined .rga-state-art{width:106px;height:106px;margin:28px 0 20px;position:relative;display:grid;place-items:center;color:var(--state-ink);isolation:isolate}
#rgcs-account.rga-refined .rga-state-symbol{display:grid;place-items:center;position:relative;width:76px;height:76px;border-radius:24px;background:var(--state-bg);box-shadow:0 8px 24px #322d2910}
#rgcs-account.rga-refined .rga-state-symbol svg{width:38px;height:38px}
#rgcs-account.rga-refined .rga-state-time{font-size:12px;color:#685e56;margin-top:20px}
#rgcs-account.rga-refined .rga-order-pagination{display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;margin:24px 0;font-size:13px}
#rgcs-account.rga-refined .tracking-side .item-row{display:grid;grid-template-columns:56px minmax(0,1fr);gap:12px;align-items:start}
#rgcs-account.rga-refined .tracking-side .item-row img{width:56px;height:70px;object-fit:contain;border-radius:9px;background:#f3eee8}
#rgcs-account.rga-refined .tracking-side .item-row h3{font-size:15px;line-height:1.45;overflow-wrap:anywhere}
#rgcs-account.rga-refined .tracking-side .item-row p{font-size:13px}
#rgcs-account.rga-refined .tracking-side .summary-line{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:start;font-size:14px}
#rgcs-account.rga-refined .tracking-side .summary-line>span:last-child{text-align:right;overflow-wrap:anywhere}
#rgcs-account.rga-refined .rgcs-order-extras:empty{display:none}
#rgcs-account.rga-refined .order-hero>.status{justify-self:start}
@media(max-width:1100px){#rgcs-account.rga-refined .rga-status-nav{grid-template-columns:repeat(2,minmax(0,1fr))}#rgcs-account.rga-refined .order-detail-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){
 #rgcs-account.rga-refined .page-heading{display:flex;flex-direction:column;gap:16px}
 #rgcs-account.rga-refined .rga-back-orders{align-self:flex-start;font-size:13px}
 #rgcs-account.rga-refined .rga-status-nav{gap:5px;padding:5px;border-radius:15px}
 #rgcs-account.rga-refined .rga-status-tab{grid-template-columns:24px minmax(0,1fr) 15px;gap:6px;padding:10px 7px;font-size:12px;min-height:59px;border-radius:10px}
 #rgcs-account.rga-refined .rga-tab-mark{width:24px;height:26px;border-radius:8px}
 #rgcs-account.rga-refined .rga-status-count{font-size:10px;min-width:0}
 #rgcs-account.rga-refined .order-card-header>div{flex:1 1 100%;order:1}
 #rgcs-account.rga-refined .order-card-header>.status{order:0}
 #rgcs-account.rga-refined .order-card-header p{font-size:12px;margin-top:6px}
 #rgcs-account.rga-refined .order-card-header strong{font-size:16px}
 #rgcs-account.rga-refined .rga-order-index .order-card{padding:18px;border-radius:15px}
 #rgcs-account.rga-refined .order-card-body{grid-template-columns:60px minmax(0,1fr);gap:12px}
 #rgcs-account.rga-refined .order-card-body h3{font-size:15px;line-height:1.5}
 #rgcs-account.rga-refined .order-card-body p{font-size:13px;overflow-wrap:anywhere}
 #rgcs-account.rga-refined .order-images img{width:36px;height:52px}
 #rgcs-account.rga-refined .order-actions .btn{font-size:13px;min-height:44px;padding:9px 12px}
 #rgcs-account.rga-refined .rga-tracking{padding:21px}
 #rgcs-account.rga-refined .rga-tracking h2{font-size:25px}
 #rgcs-account.rga-refined .rga-tracking>p{font-size:14px}
 #rgcs-account.rga-refined .rga-state-art{margin-top:24px;width:96px;height:96px}
 #rgcs-account.rga-refined .rga-state-symbol{width:68px;height:68px;border-radius:22px}
 #rgcs-account.rga-refined .support-strip{align-items:flex-start;flex-direction:column}
 #rgcs-account.rga-refined :where(.item-row,.summary-line,.info-note,.settings-layout,.overview-grid,.saved-strip,.mini-product){min-width:0;max-width:100%;overflow-wrap:anywhere}
}
@media(prefers-reduced-motion:reduce){#rgcs-account.rga-refined .rga-state-art *{animation:none}#rgcs-account.rga-refined .rga-status-tab{transition:none}}

/* Dedicated detail controls: never inherit .page-heading > .btn's 42px icon-only mobile rule. */
#rgcs-account.rga-refined .rga-order-heading{display:grid;gap:20px;margin:0 0 26px;min-width:0}
#rgcs-account.rga-refined .rga-order-heading nav{display:flex;align-items:center;min-width:0}
#rgcs-account.rga-refined .rga-order-heading .eyebrow{margin:0 0 9px}
#rgcs-account.rga-refined .rga-order-heading h1{margin:0;font-size:clamp(29px,3.4vw,42px);line-height:1.16}
#rgcs-account.rga-refined .rga-order-placed{font-size:13px;line-height:1.6;margin:12px 0 0;font-variant-numeric:tabular-nums}
#rgcs-account.rga-refined .rga-order-back,#rgcs-account.rga-refined .rga-order-action{box-sizing:border-box;display:inline-flex;position:static;align-items:center;justify-content:center;flex:0 1 auto;gap:10px;width:auto;height:auto;min-height:44px;max-width:100%;padding:10px 15px;margin:0;border:1px solid #d7c7bb;border-radius:12px;background:#fffdf9;color:#72383d;font:500 13px/1.45 RGCSGeist,Arial,sans-serif;text-transform:none;letter-spacing:0;text-decoration:none;white-space:normal;transition:background .2s,border-color .2s,box-shadow .2s}
#rgcs-account.rga-refined .rga-order-back svg,#rgcs-account.rga-refined .rga-order-action svg{display:block;position:static;width:18px;height:18px;flex:0 0 18px;margin:0;transform:none}
#rgcs-account.rga-refined .rga-order-back span,#rgcs-account.rga-refined .rga-order-action span{display:block;min-width:0;overflow-wrap:anywhere}
#rgcs-account.rga-refined .rga-order-back:hover,#rgcs-account.rga-refined .rga-order-action:hover{background:#f4e9e5;border-color:#a8887f;box-shadow:0 4px 12px #72383d0c}
#rgcs-account.rga-refined .rga-order-back:focus-visible,#rgcs-account.rga-refined .rga-order-action:focus-visible{outline:2px solid #72383d;outline-offset:3px}
#rgcs-account.rga-refined .rga-action-pay{background:#72383d;border-color:#72383d;color:#fffaf5}
#rgcs-account.rga-refined .rga-action-pay:hover{background:#5e2e32;color:#fffaf5}
#rgcs-account.rga-refined .rga-detail-actions{padding-top:20px;border-top:1px solid #e5dace;margin-top:24px}
#rgcs-account.rga-refined .rga-state-art{width:92px;height:92px;margin:26px 0 20px}
#rgcs-account.rga-refined .rga-state-symbol{width:76px;height:76px;border:1px solid #322d2908;animation:none}
#rgcs-account.rga-refined .rga-state-symbol svg{width:36px;height:36px;transform-origin:center;animation:rga-status-pop 2.6s ease-in-out infinite;will-change:transform,opacity}
@keyframes rga-status-pop{0%,100%{transform:scale(.94);opacity:.58}20%{transform:scale(1.13);opacity:1}38%{transform:scale(1);opacity:1}65%{transform:scale(1);opacity:.9}82%{transform:scale(.96);opacity:.62}}
@media(max-width:600px){#rgcs-account.rga-refined .rga-order-heading{gap:18px;margin-bottom:22px}#rgcs-account.rga-refined .rga-order-back{align-self:flex-start;min-width:130px}#rgcs-account.rga-refined .rga-detail-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:9px}#rgcs-account.rga-refined .rga-order-action{width:100%;padding:11px 12px}#rgcs-account.rga-refined .rga-state-art{margin-top:22px}}
@media(prefers-reduced-motion:reduce){#rgcs-account.rga-refined .rga-state-symbol svg{animation:none;opacity:1;will-change:auto}#rgcs-account.rga-refined .rga-order-back,#rgcs-account.rga-refined .rga-order-action{transition:none}}
