/* Tucker Payment Processing by Michael Cunningham. (c) 2026. Built with AI-assisted development. */
/* Tucker's Treats: cart icon (every page), product grid, checkout. Mobile-first. */
.top { position:relative; }
/* (the old top-right cart link is gone; the cart button now sits next to the theme song) */
.cart-link { position:absolute; top:-12px; right:0; display:flex; align-items:center; gap:4px; color:var(--blue);
             text-decoration:none; font-weight:800; background:var(--card); border:2px solid #e8dcc8; border-radius:999px; padding:6px 12px 6px 10px; }
.cart-link:hover, .cart-link:focus-visible { border-color:var(--blue); outline:none; }
.cart-count[hidden] { display:none; }
.cart-count { background:var(--orange); color:#fff; border-radius:999px; min-width:22px; height:22px; padding:0 6px;
              display:inline-flex; align-items:center; justify-content:center; font-size:.8rem; }
@media (max-width:560px) { .cart-text { display:none; } .top { padding-top:30px; } .cart-link { top:-18px; } }

.muted { color:var(--muted); }
.small { font-size:.85rem; }

/* Product grid */
.shop { max-width:1300px; margin:0 auto; }
.shop-grid { display:grid; gap:18px; grid-template-columns:minmax(0,1fr); }
.shop-grid .bts { order:2; }
@media (min-width:900px) { .shop-grid { grid-template-columns:280px minmax(0,1fr); align-items:start; }
  .shop-grid .bts { order:0; position:sticky; top:12px; } }
.shop-intro { text-align:center; margin-bottom:14px; }
.shop-intro h2 { color:var(--blue); margin:0 0 4px; }
.products { display:grid; gap:18px; grid-template-columns:repeat(auto-fill, minmax(230px, 1fr)); }
.product { background:var(--card); border-radius:22px; padding:14px; box-shadow:0 6px 0 rgba(0,0,0,.05); display:flex; flex-direction:column; position:relative; }
.product img { width:100%; height:auto; border-radius:16px; }
.product h3 { margin:10px 0 4px; font-size:1.1rem; }
.blurb { margin:0 0 6px; color:var(--muted); font-size:.92rem; flex:1; }
.paws { font-size:.95rem; letter-spacing:2px; }
.kind-tag { position:absolute; top:22px; left:22px; background:var(--blue); color:#fff; border-radius:8px; padding:1px 8px; font-size:.72rem; font-weight:700; text-transform:uppercase; }
.kind-tag.treat { background:#c4600c; } .kind-tag.comfort { background:#5c4fae; }
.buy-row { display:flex; justify-content:space-between; align-items:center; margin-top:10px; }
.price { font-size:1.3rem; font-weight:800; }
.add { background:var(--orange); color:#fff; border:0; border-radius:999px; padding:8px 16px; font-weight:800; cursor:pointer; }

/* Checkout: cart | pay | Behind the Scenes on desktop; stacked on phones */
.checkout-grid { max-width:1300px; margin:0 auto; display:grid; gap:18px; grid-template-columns:minmax(0,1fr); }
@media (min-width:820px) { .checkout-grid { grid-template-columns:minmax(0,1fr) minmax(0,1fr); } .checkout-grid .bts { grid-column:1 / -1; } }
@media (min-width:1200px) { .checkout-grid { grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) 300px; align-items:start; } .checkout-grid .bts { grid-column:auto; } }
.lines { list-style:none; padding:0; margin:0; }
.line { display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid #f0e6d6; }
.line img { width:72px; height:54px; border-radius:10px; }
.line-mid { flex:1; display:flex; flex-direction:column; gap:2px; }
.line-total { font-weight:800; }
.qty { display:flex; align-items:center; gap:8px; margin-top:2px; }
.qbtn { width:28px; height:28px; border-radius:50%; border:2px solid var(--blue); background:#fff; color:var(--blue); font-weight:800; cursor:pointer; line-height:1; }
.totals { margin-top:10px; }
.trow { display:flex; justify-content:space-between; padding:3px 0; }
.trow.grand { font-size:1.2rem; font-weight:800; border-top:2px solid var(--cream); margin-top:6px; padding-top:8px; }
.field { display:flex; flex-direction:column; gap:4px; font-weight:700; margin:6px 0 10px; }
.field select { font:inherit; padding:8px 10px; border-radius:12px; border:2px solid #e2d6c4; background:#fff; }
.cards { display:flex; flex-direction:column; gap:6px; }
.card-opt { display:flex; align-items:center; gap:8px; padding:8px 10px; border:2px solid #eee3d2; border-radius:12px; cursor:pointer; }
.status-tag { margin-left:auto; background:#fff0ec; color:#d9472b; border-radius:8px; padding:0 8px; font-size:.8rem; font-weight:700; text-transform:uppercase; }
.card h3 { margin:14px 0 4px; font-size:1rem; }
.ship { margin:0 0 12px; }
.place { width:100%; background:var(--orange); color:#fff; border:0; border-radius:999px; padding:12px; font-weight:800; font-size:1.1rem; cursor:pointer; }
.place:disabled { opacity:.5; cursor:wait; }
.tamper { width:100%; margin-top:8px; background:#fff0ec; color:#b8361c; border:2px solid #f3b4a8; border-radius:999px; padding:8px; font-weight:700; cursor:pointer; }
.result { margin:0 0 12px; padding:10px 12px; border-radius:12px; font-weight:700; }
.result.ok { background:#e8f7ee; color:#1d7444; }
.result.bad { background:#fff0ec; color:#b8361c; }
.receipt .qty { display:none; }
.on-tucker { display:flex; gap:12px; align-items:center; background:#e8f7ee; border-radius:16px; padding:12px; }
.on-tucker img { width:72px; height:72px; border-radius:50%; flex:none; }
.on-tucker p { margin:0; }
/* Tucker's Treats hanging sign (store logo) */
.sign-heading { margin:0 0 4px; line-height:0; }
.treats-sign { width:min(300px,78vw); height:auto; filter:drop-shadow(0 6px 6px rgba(0,0,0,.12)); }
.treats-sign.small { width:min(190px,50vw); }
.sign-row { text-align:center; margin:-4px 0 10px; }
/* Store header: sign centered, theme song button centered underneath */
.sign-row-shop { display:flex; flex-direction:column; align-items:center; gap:10px; margin-bottom:6px; }
.sign-row-shop .theme-player { justify-content:center; }

/* "Access Cart and Checkout" - right next to the theme song, where nobody can miss it */
.sign-actions { display:flex; flex-wrap:wrap; align-items:center; justify-content:center; gap:10px 14px; }
.cart-cta { display:inline-flex; align-items:center; gap:8px; background:var(--blue); color:#fff; text-decoration:none; font-weight:800;
            font-size:.92rem; border-radius:999px; padding:8px 16px; box-shadow:0 4px 0 rgba(31,95,191,.3); white-space:nowrap; }
.cart-cta:hover, .cart-cta:focus-visible { background:#174a96; outline:none; }
.cart-cta .cart-count { background:var(--orange); }

/* Left column on store pages: Behind the Scenes, then the small chat */
.side { display:flex; flex-direction:column; gap:18px; }
.chat-card.mini .chat-head img { width:44px; height:44px; }
.chat-card.mini .log { height:260px; }
.shop-grid .chat-card.mini .log { height:345px; }   /* product page: 50% taller for longer answers */
.chat-card.mini .try { font-size:.85rem; }
.chat-card.mini .try button { font-size:.8rem; padding:3px 9px; }
.side .bts { position:static; max-height:460px; overflow-y:auto; }   /* long step lists scroll, so the chat stays close */
@media (min-width:900px) { .shop-grid { grid-template-columns:360px minmax(0,1fr); } }

/* Checkout: LEFT Behind the Scenes + chat | MIDDLE pick a customer / place order | RIGHT your cart.
   Phones: cart first, then payment, then Behind the Scenes and chat. */
.checkout-grid { grid-template-columns:minmax(0,1fr); grid-template-areas:"cart" "pay" "side"; }
.checkout-grid .side { grid-area:side; } .checkout-grid .pay { grid-area:pay; } .checkout-grid .cart-col { grid-area:cart; }
@media (min-width:820px) { .checkout-grid { grid-template-columns:minmax(0,1fr) minmax(0,1fr); grid-template-areas:"pay cart" "side side"; } }
@media (min-width:1200px) { .checkout-grid { grid-template-columns:360px minmax(0,1fr) minmax(0,1fr); grid-template-areas:"side pay cart"; align-items:start; } }

/* Checkout middle panel when the cart is empty (or just after an order) */
.picks { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:10px; margin:8px 0 14px; }
.pick { display:flex; flex-direction:column; align-items:center; gap:4px; text-decoration:none; color:var(--ink); font-weight:700;
        font-size:.85rem; background:var(--cream); border:2px solid #f0dcc0; border-radius:16px; padding:8px; text-align:center; }
.pick:hover, .pick:focus-visible { border-color:var(--blue); outline:none; }
.pick img { width:100%; max-width:120px; height:auto; }
.shop-cta { display:flex; justify-content:center; width:100%; box-sizing:border-box; padding:12px 16px; font-size:1rem; }
.card a.cart-cta, .card a.cart-cta:hover { color:#fff; text-decoration:none; }

/* Desktop: the whole left column (Behind the Scenes + Ask Tucker) stays pinned while the page scrolls.
   The chat keeps its full size; Behind the Scenes takes the remaining height and scrolls inside itself. */
@media (min-width:900px) {
  .shop-grid .side, .checkout-grid .side { position:sticky; top:12px; max-height:calc(100vh - 24px); align-self:start; }
  .shop-grid .side .bts, .checkout-grid .side .bts { flex:1 1 auto; min-height:120px; max-height:none; overflow-y:auto; }
  .shop-grid .side .chat-card, .checkout-grid .side .chat-card { flex:0 0 auto; }
  .shop-grid .chat-card.mini .log { height:min(345px, 38vh); }
  .checkout-grid .chat-card.mini .log { height:min(260px, 30vh); }
}
