/* Cali Mojo static-site additions. Brand colours from the original theme:
   plum #351E56, cream #F3E9E1, red #A42325, sun yellow #EDE85A, orange #FEAF45, magenta #C21E79 */

/* Shopify-only pieces that need Shopify's servers */
cart-drawer-component, cart-icon, .header-actions__cart-icon, shopify-account,
search-button, predictive-search-component, .search-action, quick-add-dialog,
shopify-accelerated-checkout, .shopify-payment-button, .payment-terms,
product-recommendations:empty, .sticky-add-to-cart { display: none !important; }

.cm-shop-closed .quick-add, .cm-shop-closed .quantity-selector-wrapper,
.cm-shop-closed quantity-selector-component { display: none !important; }

/* Age check */
body.cm-locked { overflow: hidden; }
.cm-age {
  position: fixed; inset: 0; z-index: 2147483000;
  display: grid; place-items: center; padding: 24px;
  background: rgba(53, 30, 86, 0.94);
  animation: cm-fade .35s ease-out both;
}
.cm-age.cm-still { animation: none; }
.cm-age__card {
  width: min(420px, 100%); text-align: center;
  background: #F3E9E1; color: #351E56; border-radius: 22px;
  padding: 32px 24px 26px; box-shadow: 0 18px 50px rgba(0,0,0,.35);
}
.cm-age__icon { width: 72px; height: 72px; object-fit: contain; margin: 0 auto 10px; display: block; }
.cm-age__q {
  font-family: "Barlow Condensed", "Inter", system-ui, sans-serif;
  font-size: clamp(28px, 7vw, 36px); line-height: 1.1; font-weight: 800;
  text-transform: uppercase; margin: 0 0 18px;
}
.cm-age__btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cm-age__btns button {
  min-height: 48px; padding: 0 22px; border-radius: 999px; cursor: pointer;
  font: 700 17px/1 "Inter", system-ui, sans-serif; border: 2px solid #351E56;
}
.cm-age__yes { background: #A42325; border-color: #A42325 !important; color: #fff; }
.cm-age__no { background: transparent; color: #351E56; }
.cm-age__btns button:focus-visible { outline: 3px solid #FEAF45; outline-offset: 3px; }
.cm-age__note { margin: 16px 0 0; font: 400 14px/1.4 "Inter", system-ui, sans-serif; opacity: .8; }
@keyframes cm-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .cm-age { animation: none; } }

/* New article pages (e.g. the Gaga page) */
.cm-article { color: #351E56; background: #F3E9E1; padding: 48px 20px 64px; }
.cm-article > * { max-width: 760px; margin-left: auto; margin-right: auto; }
.cm-article p, .cm-article li { font: 400 18px/1.6 "Inter", system-ui, sans-serif; }
.cm-kicker { font: 700 15px/1 "Barlow Condensed", "Inter", sans-serif !important; letter-spacing: .12em; text-transform: uppercase; color: #A42325; margin: 0 0 12px; }
.cm-h1 { font-family: "Climate Crisis", "Barlow Condensed", sans-serif; font-size: clamp(34px, 7vw, 60px); line-height: 1.02; margin: 0 0 18px; color: #351E56; text-transform: uppercase; }
.cm-h2 { font-family: "Climate Crisis", "Barlow Condensed", sans-serif; font-size: clamp(24px, 4.6vw, 34px); line-height: 1.08; margin: 0 0 14px; text-transform: uppercase; }
.cm-h3 { font: 800 22px/1.2 "Barlow Condensed", "Inter", sans-serif; text-transform: uppercase; margin: 0 0 10px; }
.cm-lede { font-size: 21px !important; }
.cm-block { margin-top: 40px; }
.cm-block--plum { background: #351E56; color: #F3E9E1; border-radius: 24px; padding: 28px 24px; }
.cm-block--plum .cm-h2 { color: #EDE85A; }
.cm-steps { padding-left: 1.3em; }
.cm-steps li { margin: 6px 0; }
.cm-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.cm-btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: #A42325; color: #fff !important; text-decoration: none; font: 700 17px/1 "Inter", sans-serif; }
.cm-btn--ghost { background: transparent; border: 2px solid #EDE85A; color: #EDE85A !important; }
.cm-faq details { border-top: 1px solid rgba(53,30,86,.2); padding: 14px 0; }
.cm-faq details:last-child { border-bottom: 1px solid rgba(53,30,86,.2); }
.cm-faq summary { cursor: pointer; font: 700 19px/1.3 "Inter", sans-serif; list-style: none; padding-right: 28px; position: relative; }
.cm-faq summary::after { content: "+"; position: absolute; right: 0; top: 0; font-size: 22px; color: #A42325; }
.cm-faq details[open] summary::after { content: "\2212"; }
.cm-faq summary::-webkit-details-marker { display: none; }
.cm-sources ul { padding-left: 1.2em; }
.cm-sources a { color: #A42325; }
.cm-small { font-size: 14px !important; opacity: .75; margin-top: 18px; }
.cm-article a:focus-visible, .cm-faq summary:focus-visible { outline: 3px solid #FEAF45; outline-offset: 3px; border-radius: 6px; }
.cm-footer-extra { text-align: center; margin: 0; padding: 10px 16px 18px; font: 400 14px/1.4 "Inter", sans-serif; }
.cm-footer-extra a { color: inherit; text-decoration: underline; }

/* form status line */
.cm-form-note { margin: 12px 0 0; font: 600 16px/1.4 "Inter", system-ui, sans-serif; color: inherit; }
.cm-form-note--err { color: #A42325; }
