/* site/css/clay-store.css — THE REAL STORE (ours; not copied from the preview). Loaded only while the store plugin
   (CA Shopify) is running (inc/store.php). The plugin's own stylesheet (its assets/shop.css, the old site's look) is
   NOT loaded under this theme: every piece of the plugin that a visitor sees wears the approved look from here.

   1. THE WORKS: the plugin's own handles (its bag shell, and an item's controls), in the page for the plugin's script
      and never seen.
   2. Small things the approved pages need once the store is real: a piece that is "hidden" stays hidden; an item with
      more than one thing to choose.
   3. THE PLUGIN'S TWO BOXES ("already a fan?", "become an insider"): what ca_shopify_modals() prints, given the look
      of the approved pop-up (pages-store.css ".sto-pop" and its parts; night.css ".jf", ".btn", ".link-btn", ".hint").
      Each rule names the approved rule it copies. Nothing the plugin shows and hides by itself has its "display" forced:
      the boxes open and close by the plugin's own "hidden". */

/* ---- 1. the works ---- */
.clay-store-works{display:none !important}

/* ---- 2. small things ---- */
.qty[hidden],.wish[hidden],.gate[hidden]{display:none}
/* a piece of a box that carries "hidden" is not shown, whatever else dresses it (the plugin shows a piece by taking
   "hidden" off, so this never keeps anything of the plugin's from showing) */
.clay-store-boxes [hidden]{display:none !important}
/* the line under "use my points" keeps its place while it has nothing to say (the approved bag: .bag__err, min-height) */
.bag__err[hidden]{display:block;visibility:hidden}
.bag__pts:has(.bag__err:not([hidden]):not(:empty)) .bag__ptsin{border-color:var(--err)}
/* a line of the bag whose item has no picture keeps the picture's place (.bag__img) */
.bag__img:empty{min-height:95px}
/* an item with more than one thing to choose, or long names: each choice under its own name (the look of
   .prod-bundle__k), its values as pills of the size buttons' own height (.size) */
.prod-opt__k{font-size:15px;color:rgb(var(--accent));margin:18px 0 0}
.prod-opt__k + .sizes{margin-top:8px}
.sizes--opt .size{width:auto;min-width:58px;padding:0 20px;border-radius:999px}
.sizes--opt .size-ring{display:none}
.sizes--opt + .prod-opt__k{margin-top:-6px}

/* ---- 3. the two boxes ---- */
/* the layer (.sto-pop): the night over the store, the page behind it dimmed. Under the top bar, as approved; over the
   bag when it is opened from the bag ("already a fan? link your record") */
.clay-store-boxes .ca-modal{position:fixed;inset:0;z-index:85;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;
  background:radial-gradient(120% 78% at 50% 44%,rgb(var(--sky-ink) / .95) 0%,rgb(var(--sky-ink) / .9) 55%,rgb(var(--sky-ink) / .76) 100%);
  -webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);animation:clayBoxIn .45s ease both}
.bag-open .clay-store-boxes .ca-modal{z-index:130}
.clay-store-boxes .ca-modal[hidden]{display:none}
@keyframes clayBoxIn{from{opacity:0}to{opacity:1}}
/* what it holds (.sto-pop__in): one column in the middle of the screen */
.clay-store-boxes .ca-modal__card{position:relative;box-sizing:border-box;min-height:100%;max-width:540px;margin:0 auto;padding:calc(var(--top) + 26px) var(--g) calc(var(--bar) + 28px);
  display:flex;flex-direction:column;justify-content:center;color:var(--text);animation:clayBoxUp .6s cubic-bezier(.2,.7,.2,1) both}
.bag-open .clay-store-boxes .ca-modal__card{padding-top:calc(env(safe-area-inset-top) + 84px)}
@keyframes clayBoxUp{from{opacity:0;transform:translateY(24px)}to{opacity:1;transform:none}}
/* the close button (.sto-pop__x): a round outline with a cross; the plugin's "×" stays for a screen reader's name only */
.clay-store-boxes .ca-modal__close{position:fixed;z-index:2;right:max(12px,calc(var(--g) - 8px));top:calc(var(--top) - 2px);width:48px;height:48px;padding:0;border-radius:50%;display:grid;place-items:center;
  background:rgb(var(--sky-ink) / .5);border:1.5px solid rgba(255,253,252,.45);color:var(--cream);font-size:0;line-height:0;cursor:pointer;transition:background-color .3s,color .3s,border-color .3s}
.bag-open .clay-store-boxes .ca-modal__close{top:calc(env(safe-area-inset-top) + 16px)}
.clay-store-boxes .ca-modal__close::before{content:"";width:20px;height:20px;background:currentColor;
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 6l12 12M18 6L6 18' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'/%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'%3E%3Cpath d='M6 6l12 12M18 6L6 18' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E") center/contain no-repeat}
.clay-store-boxes .ca-modal__close:hover,.clay-store-boxes .ca-modal__close:active{background:var(--cream);border-color:var(--cream);color:var(--ink)}
/* the headline (.sto-pop__h) and the line under it (.sto-pop__lede) */
.clay-store-boxes .ca-modal__title{font-family:var(--f-house);font-weight:200;font-size:clamp(44px,12vw,76px);line-height:.92;letter-spacing:-.045em;text-transform:none;color:var(--text);margin:0 0 14px -.03em;padding-right:44px}
.clay-store-boxes .ca-modal__lede{font-size:17px;line-height:1.5;color:var(--soft);margin:0 0 18px;max-width:36ch}
/* the form (.jf.sto-pop__form): two columns, a wide row for everything but first and last name */
.clay-store-boxes .ca-form{display:grid;grid-template-columns:1fr 1fr;gap:14px 20px;margin:0;max-width:none}
.clay-store-boxes .ca-form > *{grid-column:1 / -1;min-width:0}
.clay-store-boxes .ca-form__row{display:grid;grid-template-columns:1fr 1fr;gap:14px 20px}
/* a line to fill in (.jf__f, .jf__l, .jf input; up.css: the accent line that draws in under the box you are in) */
.clay-store-boxes .ca-field{display:block;position:relative;margin:0}
.clay-store-boxes .ca-field::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2.5px;border-radius:2px;background:var(--rose);transform:scaleX(0);transform-origin:0 50%;transition:transform .35s cubic-bezier(.2,.7,.2,1);pointer-events:none}
.clay-store-boxes .ca-field:focus-within::after{transform:scaleX(1)}
.clay-store-boxes .ca-field__label{display:block;font-size:14px;line-height:1.35;font-weight:300;color:rgba(255,253,252,.62);margin-bottom:4px;letter-spacing:.01em;transition:color .25s}
.clay-store-boxes .ca-field:focus-within .ca-field__label{color:var(--rose)}
.clay-store-boxes .ca-input{display:block;box-sizing:border-box;width:100%;background:transparent;border:0;border-bottom:1.5px solid rgba(255,253,252,.28);border-radius:0;box-shadow:none;
  padding:4px 0 6px;color:var(--cream);font-family:var(--f-house);font-weight:300;font-size:19px;line-height:1.3;outline:0;transition:border-color .25s}
.clay-store-boxes .ca-input:focus{border-bottom-color:var(--rose);box-shadow:none}
.clay-store-boxes .ca-field.is-bad .ca-input{border-bottom-color:var(--err)}
/* a typed or auto-filled word stays readable on the night (the browser's own pale fill is kept out) */
.clay-store-boxes .ca-input:-webkit-autofill{-webkit-text-fill-color:var(--cream);caret-color:var(--cream);transition:background-color 99999s 0s}
/* "or" between the two ways to link (.sto-pop__or): the handwritten word; the plugin's dashes are taken out by clay-store.js */
.clay-store-boxes .ca-or{font-family:var(--f-script);font-weight:400;font-size:42px;line-height:.8;color:var(--rose);margin:0 0 -6px}
/* where the Fan ID is printed: the plugin's two small pictures (a real part of today's box that the approved pop-up was
   drawn without), kept, side by side and quiet */
.clay-store-boxes .ca-fanid-help{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:2px 0 4px;max-width:360px}
.clay-store-boxes .ca-fanid-help figure{margin:0}
.clay-store-boxes .ca-fanid-help img{display:block;width:100%;height:auto;border-radius:14px}
.clay-store-boxes .ca-fanid-help figcaption{margin-top:6px;font-size:14px;line-height:1.35;color:var(--soft)}
/* the buttons (.sto-pop__acts; night.css .btn.btn--light; "skip for now" is .link-btn) */
.clay-store-boxes .ca-form__actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin-top:8px}
.clay-store-boxes .ca-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;min-height:52px;padding:0 26px;border:1.5px solid var(--cream);border-radius:999px;
  background:var(--cream);color:var(--ink);font-family:var(--f-house);font-size:17px;font-weight:500;line-height:1;text-transform:lowercase;text-decoration:none;cursor:pointer;transition:background-color .3s,color .3s,border-color .3s}
.clay-store-boxes .ca-btn:hover,.clay-store-boxes .ca-btn:active{background:transparent;color:var(--cream)}
.clay-store-boxes .ca-btn[disabled]{opacity:.55;cursor:default}
.clay-store-boxes .ca-link-skip{background:none;border:0;min-height:44px;padding:0 6px;font:inherit;font-size:17px;color:var(--soft);text-decoration:underline;text-underline-offset:5px;text-transform:none;cursor:pointer}
.clay-store-boxes .ca-link-skip:hover{color:var(--text)}
/* a mistake, said above the form (night.css .hint; .sto-pop__form .hint) */
.clay-store-boxes .ca-form__error,.clay-store-boxes .ca-form .hint{font-size:16px;line-height:1.45;color:var(--err);margin:0;max-width:none}
/* the trap for robots stays out of sight and out of reach (.sto-honey) */
.clay-store-boxes .ca-honey{position:absolute;left:0;width:1px;height:1px;padding:0;border:0;opacity:0;pointer-events:none;clip:rect(0 0 0 0)}
/* "your pass is ready" (.sto-pop__ready, .sto-fine, .sto-a, .sto-pop__wait) */
.clay-store-boxes [data-ca-join-step] > p{margin:0}
.clay-store-boxes [data-ca-join-step] > p + p{margin-top:16px}
.clay-store-boxes .ca-small{font-size:16px;line-height:1.5;color:var(--soft);max-width:38ch}
.clay-store-boxes .ca-small a{display:inline-block;padding:10px 0;margin:-10px 0;color:var(--text);text-decoration:underline;text-decoration-color:var(--rose);text-decoration-thickness:1.5px;text-underline-offset:5px}
.clay-store-boxes [data-ca-join-wait]{font-size:17px;font-weight:400;color:var(--rose);margin-top:12px;animation:stoWait 1.8s ease-in-out infinite alternate}
.clay-store-boxes [data-ca-join-wait].is-in{animation:none;color:var(--text)}
/* "that's you": the line after linking (.sto-pop__k, .sto-pop__who) */
.clay-linked__k{font-size:clamp(66px,18.5vw,116px);color:var(--rose);margin:0 0 2px -3px}
.clay-linked__who{font-size:18px;margin:0 0 22px}
.clay-linked__who i{font-style:normal;color:var(--rose);margin:0 5px}
.calm .clay-store-boxes .ca-modal,.calm .clay-store-boxes .ca-modal__card,.calm .clay-store-boxes [data-ca-join-wait]{animation:none}
@media (prefers-reduced-motion:reduce){ .clay-store-boxes .ca-modal,.clay-store-boxes .ca-modal__card,.clay-store-boxes [data-ca-join-wait]{animation:none} }
@media (min-width:900px){
  .clay-store-boxes .ca-modal__card{max-width:580px;padding-top:calc(var(--top) + 30px);padding-bottom:50px}
  .clay-store-boxes .ca-modal__close{right:var(--g);top:calc(var(--top) + 6px);width:54px;height:54px}
  .clay-store-boxes .ca-modal__title{padding-right:0}
}
