/* sst-cart-rail-20261110: owner 11/10 reference photo = a slim cart column always on screen
 * (Total, checkout button, then every line: photo, condition tag, price, − qty +).
 * 20261110b: owner "turn it to right side" (was left). Desktop >= 1200px only; phones / tablets keep the header cart +
 * mobile checkout bar. Not on /cart or /checkout. */
:root{--sst-crail-w:136px}

#sst-crail{display:none}

@media (min-width:1200px){
  body:has(#sst-cart-drawer):not(.woocommerce-cart):not(.woocommerce-checkout){padding-right:var(--sst-crail-w)!important}
  /* the top band + header keep the full width (shifting them made the 1280px header wrap onto 2 lines);
     the column starts under the header (cart-rail.js follows the sticky header with --sst-crail-top) */
  body:has(#sst-cart-drawer):not(.woocommerce-cart):not(.woocommerce-checkout) > #sst-rank-band,
  body:has(#sst-cart-drawer):not(.woocommerce-cart):not(.woocommerce-checkout) > .sst-header{margin-right:calc(-1 * var(--sst-crail-w))!important}
  body.sst-crail-on #sst-crail{display:flex}
  /* the round order-help chat button (bottom-right) moves off the column */
  body.sst-crail-on #sst-order-help-chat{right:calc(var(--sst-crail-w) + 16px)!important}
}

#sst-crail{position:fixed;top:var(--sst-crail-top,0px);right:0;bottom:0;width:var(--sst-crail-w);z-index:50;flex-direction:column;box-sizing:border-box;
  background:var(--sst-surface,#fff);border-left:1px solid var(--sst-line,#e8e8e8);color:var(--sst-ink,#1a1a1a);
  font-family:var(--sst-font,"Figtree",sans-serif);font-size:13px;line-height:1.25;text-align:center}
#sst-crail *{box-sizing:border-box}

/* ---- head: total + checkout ---- */
.sst-crail__head{flex:none;padding:12px 10px 12px;border-bottom:1px solid var(--sst-line,#e8e8e8)}
.sst-crail__label{font-size:12px;font-weight:700;letter-spacing:.02em}
.sst-crail__total{margin:2px 0 9px;font-size:19px;font-weight:850;color:#9e1f45;font-variant-numeric:tabular-nums;white-space:nowrap}
.sst-crail__total .woocommerce-Price-amount{color:inherit}
#sst-crail .sst-crail__checkout{display:block;width:100%;margin:0;padding:9px 4px;border-radius:6px;background:#9e2c5f;color:#fff!important;
  font-size:13px;font-weight:700;line-height:1.2;text-decoration:none!important;transition:background .15s ease}
#sst-crail .sst-crail__checkout:hover{background:#86234f}
#sst-crail .sst-crail__view{display:block;margin-top:7px;font-size:11.5px;color:var(--sst-muted,#5f5f5f)!important;text-decoration:none!important}
#sst-crail .sst-crail__view:hover{text-decoration:underline!important}
#sst-crail.is-empty .sst-crail__label,#sst-crail.is-empty .sst-crail__total,#sst-crail.is-empty .sst-crail__checkout,#sst-crail.is-empty .sst-crail__items{display:none}
#sst-crail.is-empty .sst-crail__head{order:2;border-bottom:0;padding-top:0}
#sst-crail.is-empty .sst-crail__view{margin-top:0}

/* ---- lines ---- */
.sst-crail__items{flex:1 1 auto;min-height:0;overflow-y:auto;overscroll-behavior:contain;list-style:none;margin:0;padding:0 10px 72px;scrollbar-width:thin}
.sst-crail__empty{order:1;margin:0;padding:18px 10px 8px;font-size:12px;line-height:1.35;color:var(--sst-muted,#5f5f5f)}
.sst-crail__empty::before{content:"";display:block;width:26px;height:26px;margin:0 auto 8px;background:currentColor;opacity:.55;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.3'/%3E%3Ccircle cx='18' cy='20' r='1.3'/%3E%3Cpath d='M2.5 3.5h2.6l2.4 11.2a1.6 1.6 0 0 0 1.6 1.3h8.6a1.6 1.6 0 0 0 1.6-1.2l1.7-7.3H6.1'/%3E%3C/svg%3E") center/contain no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='20' r='1.3'/%3E%3Ccircle cx='18' cy='20' r='1.3'/%3E%3Cpath d='M2.5 3.5h2.6l2.4 11.2a1.6 1.6 0 0 0 1.6 1.3h8.6a1.6 1.6 0 0 0 1.6-1.2l1.7-7.3H6.1'/%3E%3C/svg%3E") center/contain no-repeat}
#sst-crail:not(.is-empty) .sst-crail__empty{display:none}

.sst-crail__item{display:flex;flex-direction:column;align-items:center;gap:5px;margin:0;padding:12px 0 13px;border-bottom:1px solid var(--sst-line,#e8e8e8);
  transition:opacity .2s ease,transform .2s ease}
.sst-crail__item.sst-cd-out{opacity:0!important;transform:translateX(16px);pointer-events:none}
.sst-crail__item.sst-cd-gone{display:none!important}
.sst-crail__item.is-new{animation:sst-crail-pop .5s ease}
@keyframes sst-crail-pop{0%{background:rgba(158,44,95,.14)}100%{background:transparent}}

#sst-crail .sst-crail__thumb{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1/1;overflow:hidden;border-radius:6px;background:#f5f5f6}
#sst-crail .sst-crail__thumb img{display:block;width:100%;height:100%;max-width:none;object-fit:contain;margin:0}
.sst-crail__code{font-size:11px;font-weight:700;letter-spacing:.03em;color:var(--sst-muted,#5f5f5f);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* 20261110c owner rule "not the colour, not the button, just the style": condition = the site's Quick Order offer label look */
.sst-crail__tag{display:inline-block;max-width:100%;font-size:10px;font-weight:800;letter-spacing:.4px;line-height:1.3;text-transform:uppercase;color:#4c5668;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.sst-crail__price{font-size:14px;font-weight:850;color:#9e1f45;font-variant-numeric:tabular-nums;white-space:nowrap}
.sst-crail__price .woocommerce-Price-amount{color:inherit}
/* currency guide (currency-switch, "≈ US$72"): own small line under the yen price, the column is too narrow for both */
#sst-crail .sst-cur-approx{display:block;margin:1px 0 0;font-size:10.5px;font-weight:500;line-height:1.2}
#sst-crail .sst-crail__total .sst-cur-approx{font-size:11px}

/* − qty + = the site's Quick Order stepper look (theme global button{min-height:40px} must not leak in) */
#sst-crail .sst-crail__qty{display:grid;grid-template-columns:30px minmax(0,1fr) 30px;align-items:stretch;width:100%;height:30px;margin-top:2px;
  border:1px solid #cfd6df;border-radius:0;overflow:hidden;background:#fff}
#sst-crail .sst-crail__qty button{display:flex;align-items:center;justify-content:center;width:auto;height:auto;min-height:0!important;min-width:0;margin:0;padding:0;
  border:0;border-radius:0;background:transparent;box-shadow:none;color:#374151;font:800 15px/1 var(--sst-font,"Figtree",sans-serif);cursor:pointer;text-transform:none;letter-spacing:0}
#sst-crail .sst-crail__qty button:disabled{opacity:.35;cursor:default}
@media (hover:hover){#sst-crail .sst-crail__qty button:not(:disabled):hover{background:rgba(0,0,0,.05)}}
#sst-crail .sst-crail__qty button:not(:disabled):active{background:rgba(0,0,0,.09)}
#sst-crail .sst-crail__qty input{width:100%;height:100%;min-height:0!important;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;
  color:#111;font:800 14px/1 var(--sst-font,"Figtree",sans-serif);text-align:center;font-variant-numeric:tabular-nums;-moz-appearance:textfield;appearance:textfield}
#sst-crail .sst-crail__qty input::-webkit-outer-spin-button,#sst-crail .sst-crail__qty input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
#sst-crail .sst-crail__qty input:focus{outline:2px solid #9e2c5f;outline-offset:-2px}
.sst-crail__remove{display:none!important}
.sst-crail__status{font-size:11px;line-height:1.3;color:#b91c1c}
.sst-crail__status:not(.is-error){display:none!important}
.sst-crail__item.is-loading .sst-crail__price{opacity:.6}

/* ---- dark mode ---- */
html[data-sst-theme="dark"] #sst-crail{background:#141416;border-left-color:rgba(255,255,255,.09);color:var(--sst-ink,#ececec)}
html[data-sst-theme="dark"] .sst-crail__head,html[data-sst-theme="dark"] .sst-crail__item{border-color:rgba(255,255,255,.09)}
html[data-sst-theme="dark"] .sst-crail__total,html[data-sst-theme="dark"] .sst-crail__price{color:#f2a7bd}
html[data-sst-theme="dark"] .sst-crail__status{color:#f87171}
html[data-sst-theme="dark"] #sst-crail .sst-crail__thumb{background:#1f1f23}
html[data-sst-theme="dark"] #sst-crail .sst-crail__qty{background:#1a1a1c;border-color:rgba(255,255,255,.18)}
html[data-sst-theme="dark"] #sst-crail .sst-crail__qty button:not(:disabled):hover{background:rgba(255,255,255,.08)}
html[data-sst-theme="dark"] .sst-crail__tag{color:#aab3c2}
html[data-sst-theme="dark"] #sst-crail .sst-crail__qty button,html[data-sst-theme="dark"] #sst-crail .sst-crail__qty input{color:#ececec}

@media (prefers-reduced-motion:reduce){.sst-crail__item{transition:none}.sst-crail__item.is-new{animation:none}}

/* 20261110d owner "remain same size": the column starts at a fixed height (top band + header); once the top band has
   scrolled away, this strip fills the gap between the sticky header and the column so no page content shows there */
#sst-crail::before{content:"";position:absolute;left:-1px;right:0;bottom:100%;height:48px;background:inherit;border-left:1px solid var(--sst-line,#e8e8e8);pointer-events:none}
html[data-sst-theme="dark"] #sst-crail::before{border-left-color:rgba(255,255,255,.09)}
