/* XblSHNIK 1.2.0 — Astra-native content, WooCommerce Classic & Blocks.
   Purely visual: no replacement of checkout fields, payment widgets, menus or data. */
:root {
  --xb-bg: #081523;
  --xb-bg-deep: #070f1d;
  --xb-surface: #102437;
  --xb-surface-soft: #152e42;
  --xb-stroke: #294557;
  --xb-ink: #edf8fb;
  --xb-dim: #b6cbd6;
  --xb-brand: #4ee3b4;
  --xb-brand-strong: #21c696;
  --xb-r: 18px;
}

/* Page containers. The dedicated EGAIS landing has its own style rules. */
body.xb-site-section,
body.xb-site-section #page,
body.xb-site-section #content,
body.xb-site-section .site-content {
  background: var(--xb-bg) !important;
  color: var(--xb-ink);
}
body.xb-site-section .site-content {min-height:60vh;}
body.xb-site-section .site-content > .ast-container,
body.xb-site-section .site-content > .ast-container > #primary {
  min-width:0;
}
body.xb-site-section .site-content > .ast-container {padding-top:clamp(28px,5vw,72px);padding-bottom:clamp(40px,6vw,86px);}
body.xb-site-section .site-content :where(.ast-article-single,.ast-article-post),
body.xb-site-section .site-content :where(.entry-content,.entry-header,.ast-single-post,.ast-single-post-order){
  background:transparent;
  color:var(--xb-ink);
  box-shadow:none;
}
body.xb-site-section .ast-separate-container .ast-article-single,
body.xb-site-section .ast-separate-container .ast-article-post {padding:0;}
body.xb-site-section .site-content :where(h1,h2,h3,h4,h5,h6,.entry-title,.entry-title a,.wp-block-heading) {color:var(--xb-ink);}
body.xb-site-section .site-content :where(p,li,dd,dt,small,.entry-meta,.ast-breadcrumbs,.wp-block-latest-posts__post-date) {color:var(--xb-dim);}
body.xb-site-section .site-content :where(a:not(.button):not(.wp-element-button):not(.wc-block-components-button)) {color:var(--xb-brand);}
body.xb-site-section .site-content a:hover {color:#87f9d6;}
body.xb-site-section .site-content .entry-title {font-weight:800;letter-spacing:-.025em;line-height:1.15;margin:0 0 28px;}
body.xb-site-section .site-content :where(.ast-breadcrumbs,.ast-breadcrumbs-wrapper){color:var(--xb-dim);}
body.xb-site-section .site-content :where(blockquote,.wp-block-quote){background:var(--xb-surface);border-left:3px solid var(--xb-brand);padding:22px 26px;border-radius:0 14px 14px 0;color:var(--xb-ink);}
body.xb-site-section .site-content :where(hr,.wp-block-separator){border-color:var(--xb-stroke);opacity:1;}
body.xb-site-section .site-content :where(.wp-block-cover,.wp-block-media-text,.wp-block-file,.wp-block-table,.wp-block-details) {border-radius:var(--xb-r);overflow:hidden;}
body.xb-site-section .site-content :where(.wp-block-table table,table:not(.shop_table):not(.wc-block-cart-items)) {border-color:var(--xb-stroke);color:var(--xb-ink);}
body.xb-site-section .site-content :where(.wp-block-table td,.wp-block-table th) {border-color:var(--xb-stroke);}
body.xb-site-section .site-content :where(.wp-block-details,.wp-block-group.xb-card,.xb-card,.wp-block-latest-posts li) {
  background:var(--xb-surface);border:1px solid var(--xb-stroke);border-radius:16px;padding:20px;
}
body.xb-site-section .site-content .wp-block-latest-posts li {margin-bottom:14px;}
body.xb-site-section .site-content :where(.wp-block-details summary) {color:var(--xb-ink);font-weight:700;cursor:pointer;}
body.xb-site-section .site-content :where(.wp-block-button__link,.button,.ast-button,.wp-element-button,button[type=submit],input[type=submit]) {
  background:var(--xb-brand);color:#071d2a;border:1px solid transparent;border-radius:11px;font-weight:750;
  text-decoration:none;transition:background-color .15s ease,transform .15s ease;
}
body.xb-site-section .site-content :where(.wp-block-button__link,.button,.ast-button,.wp-element-button,button[type=submit],input[type=submit]):hover {
  background:#7bf2ca;color:#071d2a;transform:translateY(-1px);
}
body.xb-site-section .site-content :where(.wp-block-button.is-style-outline .wp-block-button__link,.is-style-outline .wp-element-button) {
  background:transparent;color:var(--xb-brand);border:1px solid var(--xb-stroke);
}
body.xb-site-section .site-content :where(.wp-block-button.is-style-outline .wp-block-button__link,.is-style-outline .wp-element-button):hover {
  background:var(--xb-surface-soft);color:var(--xb-ink);
}
body.xb-site-section .site-content :where(input[type=text],input[type=email],input[type=tel],input[type=number],input[type=password],input[type=search],input[type=url],textarea,select) {
  background:#0d1e2d;color:var(--xb-ink);border:1px solid #385267;border-radius:10px;
}
body.xb-site-section .site-content :where(input,textarea,select)::placeholder {color:#a5bac6;opacity:1;}
body.xb-site-section :where(a,button,input,select,textarea,summary):focus-visible {outline:3px solid var(--xb-brand);outline-offset:3px;}

/* Generic page content (Video instructions and Archive keep their saved content). */
body.xb-site-section.xb-site-video .site-content :where(video,iframe,.wp-block-embed__wrapper,.presto-player-container,.plyr) {border-radius:16px;max-width:100%;}
body.xb-site-section.xb-site-video .site-content :where(.wp-block-embed,.wp-block-video) {padding:16px;background:var(--xb-surface);border:1px solid var(--xb-stroke);border-radius:20px;}
body.xb-site-section.xb-site-archive .site-content :where(.wp-block-post,.ast-article-post) {background:var(--xb-surface);border:1px solid var(--xb-stroke);border-radius:16px;padding:clamp(18px,3vw,28px);margin-bottom:20px;}
body.xb-site-section .site-content :where(.wp-block-post-featured-image img,.post-thumb img) {border-radius:12px;}
body.xb-site-section .site-content :where(.page-numbers,.ast-pagination .page-numbers) {color:var(--xb-brand);border-color:var(--xb-stroke);}

/* WooCommerce archives and product cards. Preserve WordPress taxonomy/links. */
body.xb-site-section :where(.woocommerce,.woocommerce-page) {color:var(--xb-ink);}
body.xb-site-section .woocommerce :where(.woocommerce-breadcrumb,.woocommerce-result-count,.product_meta,.woocommerce-review-link) {color:var(--xb-dim);}
body.xb-site-section .woocommerce :where(.woocommerce-breadcrumb a,.product_meta a) {color:var(--xb-brand);}
body.xb-site-section .woocommerce :where(ul.products li.product,.related ul.products li.product),
body.xb-site-section .wc-block-grid__products .wc-block-grid__product,
body.xb-site-section .wc-block-product-template > li {
  background:var(--xb-surface)!important;border:1px solid var(--xb-stroke)!important;border-radius:18px;padding:17px;
  box-shadow:0 12px 32px rgba(0,0,0,.1);overflow:hidden;
}
body.xb-site-section .woocommerce ul.products li.product :where(a img,.attachment-woocommerce_thumbnail),
body.xb-site-section .wc-block-components-product-image img {border-radius:12px;background:#f4f8fb;}
body.xb-site-section .woocommerce :where(.woocommerce-loop-product__title,.product_title,.woocommerce-loop-category__title),
body.xb-site-section :where(.wc-block-grid__product-title,.wp-block-post-title,.wc-block-components-product-name,.wc-block-components-product-name a) {color:var(--xb-ink)!important;}
body.xb-site-section .woocommerce :where(.price,.price ins,.amount),
body.xb-site-section :where(.wc-block-components-product-price,.wc-block-grid__product-price) {color:var(--xb-brand)!important;font-weight:800;}
body.xb-site-section .woocommerce :where(del .amount,.price del) {color:#a3b5c3!important;}
body.xb-site-section .woocommerce :where(.onsale,.woocommerce-badge) {background:var(--xb-brand);color:#081523;border:0;}
body.xb-site-section .woocommerce :where(.woocommerce-tabs ul.tabs li,.woocommerce-tabs .panel) {background:transparent;color:var(--xb-ink);border-color:var(--xb-stroke);}
body.xb-site-section .woocommerce :where(.woocommerce-tabs ul.tabs li.active a,.woocommerce-tabs ul.tabs li a) {color:var(--xb-ink);}
body.xb-site-section .woocommerce div.product :where(.woocommerce-product-details__short-description,.stock,.woocommerce-Tabs-panel) {color:var(--xb-dim);}
body.xb-site-section .woocommerce div.product :where(.quantity .qty,.variations select) {background:#0d1e2d;color:var(--xb-ink);border:1px solid var(--xb-stroke);}
body.xb-site-section .woocommerce :where(.woocommerce-product-gallery__wrapper img,.woocommerce-product-gallery__image img) {border-radius:14px;}

/* WooCommerce Classic cart/checkout: only presentation, not order workflow. */
body.xb-site-section .woocommerce :where(table.shop_table,.cart_totals,.woocommerce-checkout-review-order,.woocommerce-MyAccount-navigation,.woocommerce-MyAccount-content) {
  background:var(--xb-surface);color:var(--xb-ink);border:1px solid var(--xb-stroke);border-radius:16px;padding:16px;
}
body.xb-site-section .woocommerce table.shop_table {border-collapse:separate;border-spacing:0;overflow:hidden;}
body.xb-site-section .woocommerce table.shop_table :where(th,td) {color:var(--xb-ink);border-color:var(--xb-stroke);background:transparent;}
body.xb-site-section .woocommerce .cart_totals :where(h2,table,.woocommerce-shipping-destination){color:var(--xb-ink);}
body.xb-site-section .woocommerce :where(.cart_item,.order-total,.product-name,.product-total) {color:var(--xb-ink);}
body.xb-site-section .woocommerce :where(.woocommerce-form-coupon,.woocommerce-form-login,.woocommerce-form-register) {
  background:var(--xb-surface);color:var(--xb-ink);border:1px solid var(--xb-stroke);border-radius:16px;
}
body.xb-site-section .woocommerce :where(.woocommerce-input-wrapper,.form-row,.woocommerce-billing-fields,.woocommerce-shipping-fields) {color:var(--xb-ink);}
body.xb-site-section .woocommerce :where(.select2-container--default .select2-selection--single,.select2-dropdown,.select2-search__field) {background:#0d1e2d;color:var(--xb-ink);border:1px solid var(--xb-stroke);}
body.xb-site-section .woocommerce :where(.select2-container--default .select2-selection--single .select2-selection__rendered,.select2-results__option) {color:var(--xb-ink);}
body.xb-site-section .woocommerce :where(.woocommerce-info,.woocommerce-message,.woocommerce-error) {
  background:var(--xb-surface-soft);color:var(--xb-ink);border-top:3px solid var(--xb-brand);border-radius:10px;
}
body.xb-site-section .woocommerce .woocommerce-info::before,
body.xb-site-section .woocommerce .woocommerce-message::before {color:var(--xb-brand);}
body.xb-site-section .woocommerce-checkout #payment,
body.xb-site-section .woocommerce-checkout #payment ul.payment_methods,
body.xb-site-section .woocommerce-checkout #payment div.payment_box {
  background:var(--xb-surface-soft);color:var(--xb-ink);border-color:var(--xb-stroke);border-radius:12px;
}
body.xb-site-section .woocommerce-checkout #payment div.payment_box::before {border-bottom-color:var(--xb-surface-soft);}
body.xb-site-section .woocommerce :where(.woocommerce-privacy-policy-text,.woocommerce-terms-and-conditions-wrapper) {color:var(--xb-dim);}

/* WooCommerce Cart/Checkout Blocks. Avoid changing interactive React internals. */
body.xb-site-section :where(.wc-block-cart,.wc-block-checkout) {color:var(--xb-ink);}
body.xb-site-section :where(.wc-block-cart,.wc-block-checkout) :where(.wc-block-components-title,.wc-block-components-product-name,.wc-block-components-totals-item__label,.wc-block-components-totals-item__value,.wc-block-components-checkout-step__title,.wc-block-components-address-form__label,.wc-block-components-form .wc-block-components-text-input label) {color:var(--xb-ink);}
body.xb-site-section :where(.wc-block-cart,.wc-block-checkout) :where(.wc-block-components-sidebar,.wc-block-cart-items,.wc-block-components-order-summary,.wc-block-components-checkout-step) {
  background:var(--xb-surface);border:1px solid var(--xb-stroke);border-radius:16px;padding:18px;
}
body.xb-site-section :where(.wc-block-cart,.wc-block-checkout) :where(.wc-block-components-product-metadata,.wc-block-components-totals-shipping,.wc-block-components-checkbox__label,.wc-block-components-panel__button) {color:var(--xb-dim);}
body.xb-site-section :where(.wc-block-cart,.wc-block-checkout) :where(.wc-block-components-text-input input,.wc-block-components-combobox-control input,.wc-block-components-textarea,.wc-block-components-quantity-selector input) {
  background:#0d1e2d;color:var(--xb-ink);border:1px solid var(--xb-stroke);border-radius:9px;
}
body.xb-site-section :where(.wc-block-cart,.wc-block-checkout) :where(.wc-block-components-button,.wc-block-components-checkout-place-order-button) {
  background:var(--xb-brand);color:#061b27;border-radius:11px;font-weight:750;border:1px solid transparent;
}
body.xb-site-section :where(.wc-block-cart,.wc-block-checkout) :where(.wc-block-components-button,.wc-block-components-checkout-place-order-button):hover {background:#7bf2ca;color:#061b27;}
body.xb-site-section :where(.wc-block-cart,.wc-block-checkout) :where(.wc-block-components-notice-banner,.wc-block-components-validation-error) {color:#081523;}
body.xb-site-section .wc-block-components-totals-wrapper,
body.xb-site-section .wc-block-components-order-summary__button-text {border-color:var(--xb-stroke);}
/* Keep gateway-controlled iframes and embeds unchanged for safety. */

@media(max-width:921px) {
  body.xb-site-section .site-content > .ast-container {padding-top:30px;padding-bottom:48px;}
  body.xb-site-section .site-content .entry-title {font-size:clamp(27px,5vw,40px);}
  body.xb-site-section .woocommerce :where(table.shop_table,.cart_totals,.woocommerce-checkout-review-order) {padding:12px;}
  body.xb-site-section :where(.wc-block-cart,.wc-block-checkout) :where(.wc-block-components-sidebar,.wc-block-cart-items,.wc-block-components-order-summary,.wc-block-components-checkout-step) {padding:13px;}
}
@media(max-width:544px) {
  body.xb-site-section .woocommerce ul.products li.product {padding:12px;}
  body.xb-site-section .site-content :where(.wp-block-group.xb-card,.xb-card,.wp-block-details) {padding:15px;}
}
@media(prefers-reduced-motion:reduce){body.xb-site-section .site-content :where(a,button,input){transition:none;}}
