/* Main Frenetic home-page palette: black, red, and yellow. */
body.frenetic-store-flow,
body.frenetic-store-flow .wp-site-blocks {
  background: #0a0a0a;
  color: #fff;
}

body.frenetic-store-flow {
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
}

body.frenetic-store-flow :where(p, li, label, input, select, textarea, small, .wc-block-components-formatted-money-amount) {
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: 0;
}

.ft-checkout-ticker {
  overflow: hidden;
  width: 100%;
  display: flex;
  align-items: center;
  background: #ffff00;
  color: #0a0a0a;
  white-space: nowrap;
  padding: 5px 0;
}

.ft-checkout-ticker-track {
  display: flex;
  gap: 0;
  width: max-content;
  padding-left: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 12px;
  line-height: 1;
  letter-spacing: .05em;
  text-transform: uppercase;
  animation: ft-checkout-marquee 40s linear infinite;
}

.ft-ticker-set {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
}
.ft-ticker-set span + span::before { content: "•"; margin-right: 16px; }
.ft-checkout-ticker:hover .ft-checkout-ticker-track { animation-play-state: paused; }
@keyframes ft-checkout-marquee { to { transform: translateX(-50%); } }

.ft-checkout-nav {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 6px clamp(16px, 4vw, 56px);
  background: #b11c50;
  border-bottom: 4px solid #ffff00;
}

.ft-checkout-logo,
.ft-checkout-nav-links a {
  color: #ffff00;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 22px;
  line-height: .88;
  letter-spacing: 0;
  text-decoration: none;
}

.ft-checkout-logo {
  display: flex;
  align-items: center;
  width: clamp(104px, 11vw, 142px);
}
.ft-checkout-logo img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 4px rgba(255, 255, 0, .8)) drop-shadow(0 0 12px rgba(255, 26, 105, .7));
  transition: filter .2s ease, transform .2s ease;
}
.ft-checkout-logo:hover img {
  transform: translateY(-2px) rotate(-1deg);
  filter: drop-shadow(0 0 6px rgba(255, 255, 0, 1)) drop-shadow(0 0 18px rgba(255, 26, 105, .9));
}
.ft-checkout-nav-links { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; }
.ft-checkout-nav-links a { display: block; transition: transform .18s ease, filter .18s ease; }
.ft-checkout-nav-links img { display: block; width: auto; height: 34px; max-width: 92px; object-fit: contain; }
.ft-checkout-nav-links a:hover { transform: translateY(-2px) rotate(-1deg); filter: drop-shadow(0 0 3px rgba(255,255,0,.75)); }

/* The WordPress store header and footer become a direct extension of the landing page. */
body.frenetic-store-flow header,
body.frenetic-store-flow .wp-block-template-part > header,
body.frenetic-store-flow footer,
body.frenetic-store-flow .wp-block-template-part > footer {
  background: #b11c50 !important;
  color: #ffff00 !important;
  border-color: #ffff00 !important;
}

/* Remove the default store menu, including Shop and Sample Page. */
body.frenetic-store-flow header,
body.frenetic-store-flow .wp-block-template-part > header { display: none !important; }

body.frenetic-store-flow header :is(a, h1, h2, p),
body.frenetic-store-flow footer :is(a, h1, h2, p) {
  color: #ffff00 !important;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  text-transform: uppercase;
  text-decoration: none;
}

body.frenetic-store-flow main,
body.frenetic-store-flow .wp-block-group,
body.frenetic-store-flow .wp-block-woocommerce-cart,
body.frenetic-store-flow .wp-block-woocommerce-checkout {
  background: transparent;
}

body.frenetic-store-flow .wp-site-blocks > main,
body.frenetic-store-flow .wp-site-blocks > .wp-block-group,
body.frenetic-store-flow main > .wp-block-group {
  background: #0a0a0a !important;
}

body.frenetic-store-flow .wp-block-post-title,
body.frenetic-store-flow main > h1 {
  max-width: 1280px;
  margin: 0 auto;
  padding: 34px 28px 22px;
  color: #ffff00 !important;
  background: #0a0a0a;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(40px, 5vw, 68px);
  letter-spacing: 0;
  line-height: .95;
  text-transform: uppercase;
}

/* Terms use the same storefront frame, with a readable policy panel. */
body.frenetic-store-flow .entry-content {
  max-width: 980px;
  margin: 0 auto 72px;
  padding: 34px 36px;
  background: #171717;
  color: #fff;
  border: 2px solid #b11c50;
  box-shadow: 8px 8px 0 #ffff00;
}

body.frenetic-store-flow .entry-content .wp-block-group {
    background-color: #171717 !important;
    color: #fff !important;
}

body.frenetic-store-flow .entry-content .wp-block-group.has-background {
    background-color: #171717 !important;
    color: #fff !important;
}

body.frenetic-store-flow .entry-content .wp-block-group.has-background :is(p, li) {
    color: #fff !important;
}

body.frenetic-store-flow .entry-content > .wp-block-group:first-child > .wp-block-columns > .wp-block-column:first-child {
  display: none;
}

body.frenetic-store-flow .entry-content :is(h2, h3) {
  color: #ffff00 !important;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif !important;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.frenetic-store-flow .entry-content p {
  max-width: 760px;
  color: #fff !important;
  font-size: 17px;
  line-height: 1.65;
}

body.frenetic-store-flow .entry-content a {
  color: #ffff00 !important;
}

body.frenetic-store-flow .wc-block-cart,
body.frenetic-store-flow .wc-block-checkout {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 28px 64px;
  color: #fff;
}

body.frenetic-store-flow .wc-block-components-main,
body.frenetic-store-flow .wc-block-components-sidebar,
body.frenetic-store-flow .wc-block-cart__submit-container,
body.frenetic-store-flow .wc-block-cart__totals,
body.frenetic-store-flow .wc-block-components-totals-wrapper,
body.frenetic-store-flow .wc-block-components-checkout-step,
body.frenetic-store-flow .wc-block-checkout__sidebar > div {
  background: #171717 !important;
  color: #fff !important;
  border: 2px solid #b11c50 !important;
  border-radius: 0 !important;
  box-shadow: 7px 7px 0 #ffff00;
}

body.frenetic-store-flow .wc-block-components-main,
body.frenetic-store-flow .wc-block-components-sidebar {
  padding: 22px;
}

body.frenetic-store-flow .wc-block-components-checkout-step {
  margin-bottom: 22px;
  padding: 20px !important;
}

body.frenetic-store-flow :is(.wc-block-components-title, .wc-block-components-checkout-step__title, .wc-block-components-totals-item__label, .wc-block-components-order-summary__button-text, .wc-block-components-order-summary__button) {
  color: #ffff00 !important;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif !important;
  font-size: 22px;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.frenetic-store-flow :is(.wc-block-components-text-input input, .wc-block-components-combobox .wc-block-components-combobox-control input, .wc-block-components-textarea) {
  min-height: 52px;
  border: 2px solid #ffff00 !important;
  border-radius: 0 !important;
  background: #0a0a0a !important;
  color: #fff !important;
  box-shadow: none !important;
}

/* Keep browser-saved address autofill readable inside the dark checkout fields. */
body.frenetic-store-flow :is(.wc-block-components-text-input input, .wc-block-components-combobox .wc-block-components-combobox-control input):-webkit-autofill,
body.frenetic-store-flow :is(.wc-block-components-text-input input, .wc-block-components-combobox .wc-block-components-combobox-control input):-webkit-autofill:hover,
body.frenetic-store-flow :is(.wc-block-components-text-input input, .wc-block-components-combobox .wc-block-components-combobox-control input):-webkit-autofill:focus {
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px #0a0a0a inset !important;
  box-shadow: 0 0 0 1000px #0a0a0a inset !important;
}

body.frenetic-store-flow :is(.wc-block-components-text-input label, .wc-block-components-combobox .wc-block-components-combobox-control label) {
  color: #ffff00 !important;
}

body.frenetic-store-flow :is(.wc-block-components-radio-control__option, .wc-block-components-checkbox, .wc-block-components-totals-item, .wc-block-components-order-summary-item, .wc-block-cart-items__row) {
  border-color: #b11c50 !important;
  color: #fff !important;
}

body.frenetic-store-flow :is(.wc-block-components-button, .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button) {
  min-height: 58px;
  padding: 12px 20px !important;
  border: 3px solid #ffff00 !important;
  border-radius: 0 !important;
  background: #b11c50 !important;
  color: #ffff00 !important;
  box-shadow: 5px 5px 0 #0a0a0a;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif !important;
  font-size: 20px !important;
  letter-spacing: 0 !important;
  text-transform: uppercase;
  transition: transform .18s ease, background-color .18s ease, color .18s ease;
}

body.frenetic-store-flow :is(.wc-block-components-button, .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button):hover {
  background: #ffff00 !important;
  color: #0a0a0a !important;
  transform: translateY(-3px) rotate(-1deg);
}

body.frenetic-store-flow :is(a, .wc-block-components-product-name) {
  color: #ffff00;
}

body.frenetic-store-flow .wc-block-components-notice-banner {
  border: 2px solid #ffff00 !important;
  border-radius: 0 !important;
  background: #b11c50 !important;
  color: #fff !important;
}

body.frenetic-store-flow .wc-block-components-spinner__stroke { stroke: #ffff00; }

/* WooCommerce mounts an empty fixed snackbar while checkout initializes. It must not become a full-screen panel. */
body.frenetic-store-flow .wc-block-components-notice-snackbar-list:empty {
  display: none !important;
}

body.frenetic-store-flow .wc-block-components-notice-snackbar-list:not(:has(.wc-block-components-notice-banner)) {
  display: none !important;
}

/* Cart-only CRT texture. It is visual only and never intercepts clicks. */
body.frenetic-cart-flow::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: .16;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, .46) 0,
    rgba(0, 0, 0, .46) 1px,
    transparent 1px,
    transparent 4px
  );
}

body.frenetic-store-flow .wp-site-blocks > footer,
body.frenetic-store-flow .wp-block-template-part > footer { display: none !important; }

.ft-checkout-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  padding: 28px 18px;
  background: #b11c50;
  border-top: 4px solid #ffff00;
}

.ft-checkout-footer a {
  color: #ffff00;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  text-decoration: none;
  font-size: 18px;
}
.ft-checkout-footer a:hover { color: #fff; }

@media (max-width: 780px) {
  .ft-checkout-ticker { padding: 5px 0; }
  .ft-checkout-ticker-track { font-size: 12px; }
  .ft-checkout-nav { min-height: 54px; padding: 6px 14px; }
  .ft-checkout-logo { width: 108px; }
  .ft-checkout-nav-links { gap: 9px; }
  .ft-checkout-nav-links img { height: 28px; max-width: 68px; }
  body.frenetic-store-flow .wc-block-cart,
  body.frenetic-store-flow .wc-block-checkout { padding: 14px 14px 42px; }
  body.frenetic-store-flow .wc-block-components-main,
  body.frenetic-store-flow .wc-block-components-sidebar { padding: 14px; box-shadow: 4px 4px 0 #ffff00; }
  body.frenetic-store-flow .entry-content { margin: 0 14px 42px; padding: 24px 20px; box-shadow: 4px 4px 0 #ffff00; }
  body.frenetic-store-flow :is(.wc-block-cart, .wc-block-checkout, .wc-block-components-main, .wc-block-components-sidebar, .entry-content) { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
  body.frenetic-store-flow .wc-block-cart-items__row { grid-template-columns: 64px minmax(0, 1fr) auto !important; column-gap: 12px; }
  body.frenetic-store-flow .wc-block-cart-item__product,
  body.frenetic-store-flow .wc-block-cart-item__wrap { min-width: 0; }
  body.frenetic-store-flow .wc-block-cart-item__wrap { flex-wrap: wrap; }
  body.frenetic-store-flow .wc-block-cart-item__product-name,
  body.frenetic-store-flow .wc-block-components-product-name,
  body.frenetic-store-flow .wc-block-components-formatted-money-amount { overflow-wrap: anywhere; }
}
