.tfc-root { font: 15px/1.45 inherit; color:var(--tfc-foreground); }
.tfc-root *, .tfc-root *::before, .tfc-root *::after { box-sizing:border-box; }
.tfc-root [hidden] { display:none!important; }
.tfc-root button,.tfc-root input,.tfc-root a { font-family:inherit; }
.tfc-root button { cursor:pointer; text-transform:none; letter-spacing:normal; }
.tfc-root a { text-decoration:none; }
.tfc-root .tfc-launcher { position:fixed; bottom:calc(var(--tfc-bottom) + env(safe-area-inset-bottom,0px)); right:var(--tfc-offset); display:flex; align-items:center; gap:10px; border-radius:999px; background:var(--tfc-accent); color:var(--tfc-button-text); padding:14px 18px; box-shadow:0 8px 30px #0003; z-index:999990; font-weight:600; }
.tfc-root.tfc-left .tfc-launcher { right:auto; left:var(--tfc-offset); }
.tfc-count { min-width:23px; height:23px; border:1px solid currentColor; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; font-size:12px; }
.tfc-overlay { position:fixed; inset:0; z-index:999998; background:var(--tfc-overlay); opacity:var(--tfc-dim); }
.tfc-panel { position:fixed; top:0; right:0; width:min(var(--tfc-width),100%); height:100vh; height:100dvh; z-index:999999; background-color:var(--tfc-background); background-image:var(--tfc-image,none); background-size:cover; background-position:center; display:flex; flex-direction:column; box-shadow:-10px 0 50px #0002; animation:tfc-enter .2s ease-out; color:var(--tfc-foreground); overflow:hidden; }
.tfc-left .tfc-panel { right:auto; left:0; animation-name:tfc-enter-left; }
.tfc-head { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:22px 24px; border-bottom:1px solid var(--tfc-border); flex-shrink:0; }
.tfc-root .tfc-head h2 { margin:0; color:var(--tfc-foreground); font:700 23px/1.25 inherit; font-size:23px; line-height:1.25; font-weight:700; }
.tfc-root .tfc-close { border:0; background:none; color:var(--tfc-foreground); font:32px/1 inherit; font-size:32px; line-height:1; padding:2px; width:40px; height:40px; flex-shrink:0; border-radius:6px; }
.tfc-status { padding:0 24px; font-size:14px; }
.tfc-status:not(:empty) { padding-top:12px; padding-bottom:12px; border-bottom:1px solid var(--tfc-border); }
.tfc-status.tfc-error { color:var(--tfc-foreground); font-weight:600; }
.tfc-content { min-height:0; overflow-y:auto; overscroll-behavior:contain; flex:1; padding:0 24px; }
.tfc-item { display:grid; grid-template-columns:72px minmax(0,1fr); gap:14px; padding:20px 0; border-bottom:1px solid var(--tfc-border); }
.tfc-image { align-self:start; width:72px; }
.tfc-root .tfc-image img { width:72px; height:80px; object-fit:contain; border-radius:8px; background:#fff; display:block; }
.tfc-root .tfc-name { font-weight:650; line-height:1.35; color:var(--tfc-foreground); display:block; overflow-wrap:anywhere; margin-bottom:5px; }
.tfc-variation { font-size:12px; opacity:.85; overflow-wrap:anywhere; }
.tfc-line { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-top:12px; flex-wrap:wrap; }
.tfc-root .tfc-qty { display:flex; align-items:center; border:1px solid var(--tfc-border); border-radius:7px; height:38px; overflow:hidden; }
.tfc-root .tfc-qty button { display:grid; place-items:center; background:var(--tfc-background); color:var(--tfc-foreground); border:0; width:34px; height:36px; padding:0; border-radius:0; font-size:19px; }
.tfc-root .tfc-qty input { appearance:textfield; -moz-appearance:textfield; background:var(--tfc-background); color:var(--tfc-foreground); border:0; box-shadow:none; text-align:center; width:48px; min-width:0; height:36px; padding:0 2px; margin:0; border-radius:0; font-size:14px; }
.tfc-qty input::-webkit-inner-spin-button { appearance:none; }
.tfc-root .tfc-remove { display:inline-block; padding:5px 0; margin-top:5px; border:0; background:none; font-size:12px; color:var(--tfc-foreground); text-decoration:underline; text-underline-offset:3px; }
.tfc-price { font-weight:650; white-space:nowrap; }
.tfc-root .tfc-footer { flex-shrink:0; border-top:1px solid var(--tfc-border); padding:18px 24px max(20px,env(safe-area-inset-bottom)); max-height:48dvh; overflow-y:auto; background:transparent; color:var(--tfc-foreground); }
.tfc-summary { margin:0 0 15px; }
.tfc-summary > div { display:flex; justify-content:space-between; gap:12px; margin:7px 0; font-size:14px; }
.tfc-summary dt,.tfc-summary dd { margin:0; }
.tfc-summary dd { text-align:right; }
.tfc-summary .tfc-total { font-size:19px; font-weight:750; padding-top:12px; border-top:1px solid var(--tfc-border); margin-top:12px; }
.tfc-root .tfc-primary,.tfc-root .tfc-secondary { display:block; width:100%; text-align:center; border-radius:8px; padding:13px 15px; font-size:15px; line-height:1.3; font-weight:650; margin:9px 0 0; }
.tfc-root .tfc-primary { background:var(--tfc-accent); color:var(--tfc-button-text); border:1px solid var(--tfc-accent); }
.tfc-root .tfc-secondary { background:var(--tfc-background); color:var(--tfc-foreground); border:1px solid var(--tfc-border); }
.tfc-root .tfc-continue { display:block; margin:13px auto 0; border:0; background:none; color:var(--tfc-foreground); font-size:13px; text-decoration:underline; text-underline-offset:3px; padding:4px; }
.tfc-note { font-size:12px; line-height:1.5; margin:12px 0 0; opacity:.85; }
.tfc-empty { padding:50px 0; text-align:center; }
.tfc-root { font-family:inherit; font-size:15px; line-height:1.5; }
.tfc-root [hidden] { display:none!important; }
.tfc-root .tfc-launcher { position:fixed; right:var(--tfc-offset); bottom:var(--tfc-bottom); z-index:99990; display:flex; align-items:center; gap:9px; min-height:52px; padding:13px 17px; border:0; border-radius:28px; box-shadow:0 5px 22px #0003; background:var(--tfc-accent); color:var(--tfc-button-text); text-decoration:none; font-weight:650; font-size:14px; line-height:1.4; }
.tfc-left .tfc-launcher { right:auto; left:var(--tfc-offset); }
.tfc-count { display:grid; place-items:center; min-width:24px; height:24px; padding:0 4px; border:1px solid currentColor; border-radius:20px; font-size:12px; }
.tfc-root a:hover,.tfc-root button:hover { filter:brightness(.94); }
.tfc-root :focus-visible { outline:3px solid var(--tfc-foreground); outline-offset:3px; }
.tfc-root button:disabled,.tfc-root input:disabled { opacity:.55; cursor:wait; }
.tfc-root [aria-disabled="true"] { pointer-events:none; opacity:.55; }
.tfc-open { overflow:hidden!important; }
@keyframes tfc-enter { from { transform:translateX(100%); } to { transform:translateX(0); } }
@keyframes tfc-enter-left { from { transform:translateX(-100%); } to { transform:translateX(0); } }
@media (max-width:480px) { .tfc-head { padding:15px 18px; } .tfc-content { padding:0 18px; } .tfc-footer { padding-left:18px; padding-right:18px; } .tfc-launcher > span:not(.tfc-count) { display:none; } .tfc-root .tfc-launcher { padding:15px; } }
@media (prefers-reduced-motion:reduce) { .tfc-panel { animation:none; } }
