/* Shared colour system for the private editorial and commerce layouts. */
:root:has(.axtion_web_draft, .axtion_store) {
  --ax-black: #080909;
  --ax-base: #101213;
  --ax-graphite: #242829;
  --ax-steel: #778180;
  --ax-silver: #BDC5C3;
  --ax-light: #EDF0EE;
  --ax-green: #E7FF51;
  --ax-metal: linear-gradient(112deg, var(--ax-steel), var(--ax-silver) 38%, color-mix(in srgb,var(--ax-silver) 74%,var(--ax-steel)) 68%, var(--ax-steel));
}
#wrap.axtion_web_draft, .axtion_store {
  --paper: var(--ax-base); --ink: var(--ax-light); --muted: var(--ax-silver); --lime: var(--ax-green);
  color-scheme: dark; background: var(--paper); color: var(--ink);
}
:is(#wrap.axtion_web_draft,.axtion_store) .ed-head,
:is(#wrap.axtion_web_draft,.axtion_store) .ed-head nav,
:is(#wrap.axtion_web_draft,.axtion_store) .ed-head details > div {
  background: var(--ax-base); color: var(--ax-light);
}
:is(#wrap.axtion_web_draft,.axtion_store) .ed-logo {filter:none}
:is(#wrap.axtion_web_draft,.axtion_store) .ed-head .ed-cta,
#wrap.axtion_web_draft :is(.ax-pill,.button,.ax-back,.ax-touch-contact) {
  background: var(--ax-green); color: var(--ax-black)!important;
}
#wrap.axtion_web_draft :is(.ax-form-card,.ax-studio-panel,.ax-black,.ed-band,.ax-tile-summary,.ax-tile .ax-card-cap,.ax-index-link,.ax-filters a,.ax-cover-news>div,.ax-reader-buttons button,.ax-rail-end,.ax-legal h1) {
  background:var(--ax-graphite); color:var(--ax-light);
}
#wrap.axtion_web_draft :is(.ax-cover-news p,.ax-reader-slide small,.ax-story-body .ax-introduction) {color:var(--ax-silver)}
#wrap.axtion_web_draft .ax-sectors a, #wrap .client-track li {background:var(--ax-metal);color:var(--ax-black)}
#wrap.axtion_web_draft :is(.ax-sectors a:hover,.ax-filters a:hover,.ax-filters a[aria-current],.ax-cover-news:hover span,.ax-rail-end:hover) {background:var(--ax-green);color:var(--ax-black)!important}
#wrap.axtion_web_draft .ax-cover-news:hover span {padding-inline:3px}
#wrap.axtion_web_draft .ax-reader-buttons button:disabled {color:var(--ax-steel)}
#wrap.axtion_web_draft .ax-form-card :is(input,textarea,select) {background:var(--ax-base);color:var(--ax-light);border-color:var(--ax-steel)}
#wrap.axtion_web_draft .ax-form-card>img {filter:none}
:is(#wrap.axtion_web_draft,.axtion_store) :focus-visible {outline:2px solid var(--ax-green);outline-offset:3px}
:is(#wrap.axtion_web_draft,.axtion_store) .ax-colophon,
:is(#wrap.axtion_web_draft,.axtion_store) .ax-colophon-legal {background:var(--ax-black);color:var(--ax-silver)}
:is(#wrap.axtion_web_draft,.axtion_store) .ax-colophon-panel {background:var(--ax-graphite);color:var(--ax-light)}
:is(#wrap.axtion_web_draft,.axtion_store) .ax-colophon a:is(:hover,:focus-visible) {color:var(--ax-green)}

/* Native Odoo shop, checkout and body-mounted dialogs. */
.axtion_store, body:has(.axtion_store) :is(.modal,.offcanvas,.popover,.dropdown-menu) {
  --bs-body-bg:var(--ax-base); --bs-body-bg-rgb:16,18,19;
  --bs-body-color:var(--ax-light); --bs-body-color-rgb:237,240,238;
  --bs-secondary-color:var(--ax-silver); --bs-secondary-bg:var(--ax-graphite);
  --bs-tertiary-bg:var(--ax-graphite); --bs-emphasis-color:var(--ax-light);
  --bs-border-color:var(--ax-steel); --bs-light-rgb:36,40,41;
  --bs-link-color:var(--ax-green); --bs-link-color-rgb:231,255,81;
  --bs-link-hover-color:var(--ax-light); --link-color:var(--ax-green); --link-hover-color:var(--ax-light);
  --o-color-1:var(--ax-green); --o-color-4:var(--ax-base); --o-color-5:var(--ax-light);
}
.axtion_store :is(#wrap,.oe_website_sale,.o_wsale_product_page,.oe_product_cart) {background-color:var(--ax-base);color:var(--ax-light)}
.axtion_store :is(h1,h2,h3,h4,.product_price,.o_wsale_product_name a),.axtion_store .ed-cart a {color:var(--ax-light)}
.axtion_store #products_grid .o_wsale_product_information,.axtion_store .ed-cart a,
.axtion_store :is(.card,.accordion-item,.accordion-button,.list-group-item,.o_total_card,.input-group-text,.btn-light,.btn-secondary,.btn-outline-secondary),
body:has(.axtion_store) :is(.modal-content,.offcanvas,.popover-body,.dropdown-menu,.dropdown-item) {
  background-color:var(--ax-graphite);color:var(--ax-light);border-color:var(--ax-steel);
}
.axtion_store :is(.bg-white,.bg-light) {background-color:var(--ax-graphite)!important}
.axtion_store :is(.text-dark,.text-black) {color:var(--ax-light)!important}
.axtion_store :is(.text-muted,.text-secondary,.ax_store_banner) {color:var(--ax-silver)!important}
.axtion_store :is(.form-control,.form-select,.form-check-input:not(:checked)) {background-color:var(--ax-base);color:var(--ax-light);border-color:var(--ax-steel)}
.axtion_store :is(.form-control::placeholder) {color:var(--ax-silver)}
.axtion_store :is(.btn-primary,.a-submit,.form-check-input:checked) {background-color:var(--ax-green)!important;color:var(--ax-black)!important;border-color:var(--ax-green)!important}
.axtion_store :is(.btn-outline-primary,.btn-link,.breadcrumb a,.ax_product_terms a) {color:var(--ax-green)!important}
.axtion_store .table {--bs-table-color:var(--ax-light);--bs-table-bg:transparent;--bs-table-border-color:var(--ax-steel)}
.axtion_store .ed-head a:not(.ed-cta),.axtion_store .ed-head summary {color:var(--ax-light)}

/* Blend the page into the footer before the graphite panel begins. */
:is(#wrap.axtion_web_draft,.axtion_store) .ax-colophon {
  --footer-gutter: clamp(16px, 3vw, 64px);
  --footer-fade: clamp(36px, 5vw, 88px);
  padding: calc(var(--footer-fade) + 8px) var(--footer-gutter) 0;
  background: linear-gradient(to bottom, var(--footer-entry, var(--ax-base)), var(--ax-black) var(--footer-fade));
}
#wrap.axtion_web_draft:has(.ax-lab) .ax-colophon { --footer-entry: #070807; }
.ax-colophon .ax-colophon-signature {
  bottom: clamp(12px, 1.5vw, 28px);
  right: var(--footer-gutter);
  width: min(59%, 980px);
}
.ax-colophon .ax-colophon-panel { padding-bottom: max(124px, 14vw); }
@media (min-width:761px) and (max-width:1080px) {
  .ax-colophon .ax-colophon-grid { grid-template-columns: 1.35fr 1fr; gap: 28px 40px; }
}
@media (max-width:760px) {
  .ax-colophon .ax-colophon-signature { width: 78%; }
  .ax-colophon .ax-colophon-panel { padding-bottom: max(88px, 23vw); }
}

#wrap.axtion_web_draft .ax-contact-box { background: var(--ax-graphite); }
#wrap.axtion_web_draft .ax-sectors a { background: var(--ax-silver); }
#wrap.axtion_web_draft .ax-sectors a:hover { background: var(--ax-green); }
#wrap.axtion_web_draft .ax-lab {
  background: linear-gradient(to bottom, var(--ax-base), #070807 clamp(40px, 6vw, 90px));
}
.ax-case-cover::after {
  background: linear-gradient(to top, var(--ax-base), transparent min(14%, 65px)), linear-gradient(0deg,#0008,#0003);
}
.axtion_store #product_detail .o_wsale_product_images {
  background: var(--ax-graphite);
}
.axtion_store .o_total_card.card { background-color: var(--ax-graphite); }
.axtion_store .o_total_card > .card-body {
  background: var(--ax-graphite);
  color: var(--ax-light) !important;
}
.axtion_store .o_total_card :is(.o_cart_total, .table, th, td) {
  color: var(--ax-light) !important;
  --bs-table-color: var(--ax-light);
}

/* Cart summary: one flat surface around totals, coupon and actions. */
#wrap:has(#shop_cart) .o_total_card.card {
  border: 1px solid rgba(255,255,255,.72) !important;
  border-radius: 16px;
  background: var(--ax-graphite);
  box-shadow: none;
  margin-inline: clamp(4px, 1vw, 14px);
}
#wrap:has(#shop_cart) .o_total_card > .card-body {
  background: transparent;
  padding: clamp(17px, 2.3vw, 32px) !important;
  border-radius: inherit;
}
#wrap:has(#shop_cart) .o_total_card :is(.text-muted, a:not(.btn), .text-secondary) {
  color: var(--ax-silver) !important;
}
#wrap:has(#shop_cart) .o_total_card a:not(.btn):hover { color: var(--ax-green) !important; }
/* Store actions use the brand accent, including Odoo's native cart links. */
.axtion_store #wrap {
  --bs-primary-rgb: 231,255,81;
  --bs-link-color-rgb: 231,255,81;
  --bs-link-hover-color-rgb: 231,255,81;
}
.axtion_store #wrap :is(.js_delete_product,.o_wsale_filmstrip_link,.dropdown-toggle.btn,.oe_product_image_link),
.axtion_store #wrap:has(#shop_cart) .o_total_card a:not(.btn) {
  color: var(--ax-green) !important;
}
.axtion_store #wrap #quick_reorder_button {
  color: var(--ax-green) !important;
  border: 1px solid var(--ax-green);
  background: transparent;
}
.axtion_store #wrap #quick_reorder_button:disabled {
  opacity: 1;
  border-style: dashed;
  cursor: default;
}
.axtion_store #wrap .js_delete_product:is(:hover,:focus-visible) {text-decoration: underline;}
