/* Nov 1 PREP: consent banner. Uses Tailkept tokens from style.css (fallbacks inline). Accept/Decline identical in size and style. */
.tk-cb{position:fixed;left:12px;right:12px;bottom:12px;z-index:9999;max-width:420px;margin:0 auto;padding:16px 18px 12px;background:var(--paper,#fbf7f2);color:var(--ink,#2e3a39);border:1px solid var(--sage-wash,#e3ece5);border-radius:var(--radius,18px);box-shadow:0 10px 30px rgba(46,58,57,.18);font-family:var(--font,system-ui,sans-serif);box-sizing:border-box}
.tk-cb-title{margin:0 0 4px;font-family:var(--font-display,Georgia,serif);font-size:18px;font-weight:600}
.tk-cb-body{margin:0 0 12px;font-size:14px;line-height:1.45;color:var(--ink-soft,#4d5a58)}
.tk-cb-btns{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tk-cb-btn{min-height:44px;padding:0 16px;font:600 15px/1 var(--font,system-ui,sans-serif);color:var(--teal-dark,#2f524e);background:#fff;border:1.5px solid var(--teal,#3d6863);border-radius:999px;cursor:pointer}
.tk-cb-btn:hover{background:var(--sage-wash,#e3ece5)}.tk-cb-btn:focus-visible{outline:3px solid var(--sage,#9db5a6);outline-offset:2px}
.tk-cb-link{display:block;margin-top:10px;text-align:center;font-size:12.5px;color:var(--ink-soft,#4d5a58);text-decoration:underline}
@media (min-width:768px){.tk-cb{left:auto;right:20px;bottom:20px;margin:0}}
.tk-cb:focus{outline:none}
/* Nov 1 7:04 PM: compact bottom bar on phones (CSS only) */
@media (max-width:767px){.tk-cb{left:0;right:0;bottom:0;max-width:none;border-radius:16px 16px 0 0;border-width:1px 0 0;padding:10px 14px calc(8px + env(safe-area-inset-bottom,0px))}
.tk-cb-title{font-size:15px;margin:0 0 2px}.tk-cb-body{font-size:13px;line-height:1.35;margin:0 0 8px}.tk-cb-btns{gap:8px}.tk-cb-link{margin-top:6px;font-size:12px}}
/* Nov 1 8:40 PM: never cover a CTA. In a modal: in-flow block at the top (same look, no overlay). On the page: body reserves its height. */
.tk-cb.tk-cb--inmodal{position:relative;left:auto;right:auto;bottom:auto;max-width:none;margin:0 0 12px;z-index:7}
@media (max-width:767px){.tk-cb.tk-cb--inmodal{border-width:1px;border-radius:14px;padding:10px 14px 8px}}
body.tk-cb-pad{padding-bottom:var(--tk-cb-h,0px)}
/* Nov 2 (Matt, idea 3): phone tap target for the privacy link >=44px; compact banner inside the product/cart popup (still in flow, never over a CTA) */
@media (max-width:767px){.tk-cb-link{display:flex;align-items:center;justify-content:center;min-height:44px;margin-top:2px;padding:0 8px}
.tk-cb.tk-cb--inmodal .tk-cb-body{display:none}.tk-cb.tk-cb--inmodal .tk-cb-title{font-size:13.5px;margin:0 0 6px}.tk-cb.tk-cb--inmodal{padding:8px 12px 0}.tk-cb.tk-cb--inmodal .tk-cb-link{min-height:44px;margin-top:0}}
.tk-cb.tk-cb--inmodal .tk-cb-body{font-size:12.5px;margin-bottom:6px}
/* Nov 5 ($0 bundle): slimmer phone banner, ~12% of an iPhone screen instead of 21-27%. Same Accept/Decline (equal size + style), same
   privacy link (44px tap target), same explicit choice. Title hidden visually only (still the dialog's accessible name). Not in the popup. */
@media (max-width:767px){
.tk-cb:not(.tk-cb--inmodal){display:grid;grid-template-columns:1fr 1fr auto;grid-template-areas:"body body body" "btns btns link";column-gap:8px;padding:8px 12px calc(6px + env(safe-area-inset-bottom,0px))}
.tk-cb:not(.tk-cb--inmodal) .tk-cb-title{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.tk-cb:not(.tk-cb--inmodal) .tk-cb-body{grid-area:body;font-size:12.5px;line-height:1.3;margin:0 0 6px}
.tk-cb:not(.tk-cb--inmodal) .tk-cb-btns{grid-area:btns}
.tk-cb:not(.tk-cb--inmodal) .tk-cb-btn{min-height:44px;font-size:14.5px}
.tk-cb:not(.tk-cb--inmodal) .tk-cb-link{grid-area:link;margin:0;padding:0 4px;font-size:12px;min-height:44px}
}
@media (max-width:767px){.tk-cb:not(.tk-cb--inmodal) .tk-cb-link{max-width:92px;line-height:1.2;text-align:center}}

/* Nov 6: in a modal, the banner stays in the scroll flow (never over a shopping CTA).
   Nov 11 (Matt t550u): on the page, the banner sits at the bottom of the screen, above the
   iOS Safari toolbar (safe-area inset), and the body is padded so the main CTA is not covered. */
.tk-cb:not(.tk-cb--inmodal){
  position:fixed;left:12px;right:12px;top:auto;bottom:0;inset:auto 12px 0 12px;margin:0 auto;
  z-index:9999;padding-bottom:calc(12px + env(safe-area-inset-bottom,0px));
}
@media (max-width:767px){
  .tk-cb:not(.tk-cb--inmodal){left:0;right:0;bottom:0;inset:auto 0 0 0;max-width:none;
    border-radius:16px 16px 0 0;padding-bottom:calc(8px + env(safe-area-inset-bottom,0px))}
}
body.tk-cb-pad{padding-bottom:var(--tk-cb-h,0px)}
.tk-cb{flex-shrink:0}
.tk-cb.tk-cb--inmodal{position:relative;inset:auto;margin:0 0 12px}


/* Nov 13 POC2: keep the Create Portrait CTA visible on 360–390px phones.
   1) Reserve space with :has() so the first paint is padded even before JS measures.
   2) Slightly tighter phone bar (Accept/Decline stay equal, 44px targets, same copy).
   3) In-modal, GPC, and Decline behavior are unchanged. */
html { scroll-padding-bottom: var(--tk-cb-h, 0px); }
@media (max-width: 767px) {
  html:has(.tk-cb:not(.tk-cb--inmodal)) {
    --tk-cb-h: 120px;
    scroll-padding-bottom: calc(var(--tk-cb-h) + 8px);
  }
  .tk-cb:not(.tk-cb--inmodal){
    padding: 6px 10px calc(6px + env(safe-area-inset-bottom, 0px));
  }
  .tk-cb:not(.tk-cb--inmodal) .tk-cb-body{
    font-size: 12px; line-height: 1.25; margin: 0 0 4px;
  }
  .tk-cb:not(.tk-cb--inmodal) .tk-cb-btn{ min-height: 44px; font-size: 14px; }
  body.tk-cb-pad .lp-cta,
  body.tk-cb-pad .header-cta,
  body.tk-cb-pad [data-qa-label="Create your portrait"]{
    scroll-margin-bottom: calc(var(--tk-cb-h, 120px) + 16px);
  }
}
@media (max-width: 390px) {
  html:has(.tk-cb:not(.tk-cb--inmodal)) { --tk-cb-h: 112px; }
  .tk-cb:not(.tk-cb--inmodal) .tk-cb-body{ font-size: 11.5px; margin: 0 0 3px; }
}
