/* Bridge: WordPress's block wrappers around the storefront's own layout (site.css / home.css / pages.css are the
   prototype's, unchanged). Only structure lives here: nothing in this file restyles the design. */

/* Block themes wrap everything in .wp-site-blocks and template parts; none of the wrappers may add space or a stacking context. */
.wp-site-blocks, .udg-chrome, .udg-foot, .udg-main, .udg-content { margin: 0; padding: 0; }
.wp-site-blocks > * + *, .udg-content > * + *, .udg-main > * + * { margin-block-start: 0; }
.udg-chrome { display: contents; }

/* Home: the prototype's #page sat above the fixed film layers at z-index 10. Here the cinema block prints the layers
   (.udg-stage) beside the scenes, so each scene takes the same place above them. */
.udg-home .udg-content > :not(.udg-stage) { position: relative; z-index: 10; }
.udg-home .udg-content > span#top { display: block; height: 0; }
.udg-foot .sf { position: relative; z-index: 10; }

/* Pages written in the editor (About, Help, policies): the prototype's reading column on the light ground. */
.prose-page { padding: 56px var(--gutter) 14vh; font-size: 18px; line-height: 1.65; }
.prose-page > * { max-width: 36em; margin-inline: auto; }
.prose-page > .alignwide { max-width: 1100px; }
.prose-page > .alignfull { max-width: none; }
.prose-page > * + * { margin-block-start: 1em; }
.prose-page h2 { margin-block-start: 2.2em; font: 500 clamp(22.36px, 2.06vw, 29.24px)/1.08 var(--font-serif); text-transform: none; letter-spacing: -.01em; }
.prose-page h3 { margin-block-start: 1.8em; font: 600 19px/1.25 var(--font); }
.prose-page a:not(.btn):not(.link-arrow) { color: var(--link); text-underline-offset: 3px; }
.prose-page ul, .prose-page ol { padding-left: 1.2em; }
.prose-page li + li { margin-top: .4em; }
.prose-page p { text-wrap: pretty; }
.prose-page img { max-width: 100%; height: auto; }
.prose-page .actions { margin-block-start: 1.6em; }

/* WordPress's own button markup inside storefront rows (.actions gets display:flex from site.css). */
.wp-block-button { margin: 0; }
.wp-block-button__link.btn { border-radius: var(--radius); }
/* WordPress's default button colours must not reach the arrow link (it is text with an arrow, as in the prototype). */
.wp-block-button__link.link-arrow { background: none; border: 0; border-radius: 0; color: inherit; box-shadow: none; }
.wp-block-buttons.actions { gap: 12px 20px; }

/* The admin bar pushes the fixed header down when an editor views the site. */
body { --admin-offset: 0px; }
.admin-bar { --admin-offset: var(--wp-admin--admin-bar--height, 32px); }
.sh, .admin-bar :is(.menu, #search, .drawer, .zoom) { top: var(--admin-offset); }
@media (max-width: 600px) { #wpadminbar { position: fixed; } }

/* WooCommerce's own buy form on a piece with options (a variable product), in the storefront's buy row:
   the options and the button take the row, the heart keeps its place at the end. */
.pdp__buy--wc { align-items: flex-start; }
.pdp__buy--wc > form.cart { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 0; padding: 0; align-items: stretch; }
.pdp__buy--wc .single_variation_wrap { display: grid; gap: 12px; }
.pdp__buy--wc table.variations { width: 100%; border: 0; border-collapse: collapse; margin: 0; }
.pdp__buy--wc table.variations tr { display: grid; gap: 6px; margin-bottom: 12px; }
.pdp__buy--wc table.variations th, .pdp__buy--wc table.variations td { display: block; padding: 0; border: 0; text-align: left; background: none; }
.pdp__buy--wc table.variations label { font-size: 14px; font-weight: 600; color: var(--on-dark); }
.pdp__buy--wc table.variations select { width: 100%; min-height: 48px; padding: 0 14px; border: 1.5px solid var(--line-dark, rgba(255,253,252,.3)); border-radius: var(--radius);
  background: transparent; color: var(--on-dark); font: 400 16px var(--font); }
.pdp__buy--wc table.variations select option { color: #1d1914; }
.pdp__buy--wc .reset_variations { display: inline-block; margin-top: 8px; font-size: 14px; color: var(--on-dark-muted); }
.pdp__buy--wc .woocommerce-variation-price { font-size: 18px; font-weight: 600; }
.pdp__buy--wc .woocommerce-variation-availability, .pdp__buy--wc .stock { font-size: 14px; color: var(--on-dark-muted); margin: 0; }
.pdp__buy--wc .woocommerce-variation-add-to-cart, .pdp__buy--wc form.cart:not(.variations_form) { display: flex; gap: 10px; align-items: stretch; }
.pdp__buy--wc .quantity .qty { width: 72px; min-height: 58px; text-align: center; border: 1.5px solid var(--line-dark, rgba(255,253,252,.3)); border-radius: var(--radius); background: transparent; color: var(--on-dark); font: 600 16px var(--font); }
.pdp__buy--wc .single_add_to_cart_button { flex: 1; min-height: 58px; padding: 0 20px; border: 1.5px solid var(--accent); border-radius: var(--radius);
  background: var(--accent); color: var(--ink); font: 600 17px/1 var(--font); letter-spacing: .02em; cursor: pointer; transition: background .25s, border-color .25s; }
.pdp__buy--wc .single_add_to_cart_button:hover { background: var(--on-dark); border-color: var(--on-dark); }
.pdp__buy--wc .single_add_to_cart_button.disabled, .pdp__buy--wc .single_add_to_cart_button:disabled { opacity: .5; cursor: not-allowed; }
.pdp__buy--wc > .pdp__save { flex: none; align-self: flex-end; }

/* The cookie card (website/src/wp/consent.js): a raised dark card at the bottom corner, never a modal. It keeps
   production's consent contract; the look is the storefront's (the drawer's ink surface, saffron primary action). */
.cc { position: fixed; z-index: 85; left: var(--gutter); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); width: min(27rem, calc(100vw - 2 * var(--gutter)));
  max-height: calc(100dvh - 48px); overflow: auto; overscroll-behavior: contain; padding: 22px 24px 24px; background: var(--ink-2); color: var(--on-dark);
  border: 1px solid var(--line-dark); border-radius: var(--radius); box-shadow: 0 18px 48px rgba(12,9,6,.42);
  opacity: 0; transform: translateY(var(--distance-medium)); transition: opacity var(--duration-slow) var(--ease-smooth-out), transform var(--duration-slow) var(--ease-smooth-out); }
.cc.is-on { opacity: 1; transform: none; }
.cc[hidden] { display: none; }
.cc__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.cc__title { margin: 4px 0 0; font: 500 clamp(22px, 2vw, 26px)/1.1 var(--font-serif); letter-spacing: -.01em; text-wrap: balance; }
.cc__close { flex: none; margin: -8px -10px 0 0; color: var(--on-dark); }
.cc__text { margin: 10px 0 20px; font-size: 15px; line-height: 1.5; color: var(--on-dark-muted); max-width: 40ch; }
.cc__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.cc__actions .btn { min-height: 46px; padding: 0 20px; font-size: 15px; }
.cc__plain { color: var(--on-dark); border-color: var(--line-dark); }
.cc__plain:hover { border-color: var(--on-dark); }
.cc__more { min-height: 44px; padding: 0 2px; border: 0; background: none; color: var(--on-dark); font: 600 15px/1 var(--font); cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--on-dark-muted); text-underline-offset: 5px; }
.cc__more:hover { text-decoration-color: var(--accent); }
.cc__more[aria-expanded="true"] { text-decoration-color: var(--accent); }
.cc__options { margin-top: 18px; padding-top: 6px; border-top: 1px solid var(--line-dark); }
.cc__options fieldset { margin: 0 0 18px; padding: 0; border: 0; }
.cc__opt { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; padding: 12px 0; border-bottom: 1px solid var(--line-dark); cursor: pointer; }
.cc__opt input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); cursor: pointer; }
.cc__opt input:disabled { cursor: not-allowed; }
.cc__opt b { font-weight: 600; font-size: 15px; }
.cc__opt small { color: var(--on-dark-muted); font-size: 13px; }
.cc__opt em { display: block; margin-top: 2px; font-style: normal; font-size: 14px; color: var(--on-dark-muted); }
.sf__cookies { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.sf__cookies:hover { color: var(--on-dark); }
@media (max-width: 560px) {
  .cc { left: 12px; right: 12px; width: auto; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); padding: 18px 18px 20px; }
  .cc__actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) { .cc { transition: none; transform: none; } }
