﻿/* StreamLab reverse-proxy global theme override. */
:root {
  --theme-palette-color-1: #2872fa !important;
  --theme-palette-color-2: #1559ed !important;
  --wp--preset--color--palette-color-1: #2872fa !important;
  --wp--preset--color--palette-color-2: #1559ed !important;
  --slp-blue: #2872fa !important;
  --slp-blue-dark: #1559ed !important;
  --wvs-tick: url("data:image/svg+xml;utf8,%3Csvg filter='drop-shadow(0px 0px 2px rgb(0 0 0 / .8))' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath fill='none' stroke='%232872fa' stroke-linecap='round' stroke-linejoin='round' stroke-width='4' d='M4 16L11 23 27 7'/%3E%3C/svg%3E") !important;
  --wvs-cross: url("data:image/svg+xml;utf8,%3Csvg filter='drop-shadow(0px 0px 5px rgb(255 255 255 / .6))' xmlns='http://www.w3.org/2000/svg' width='72px' height='72px' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%232872fa' stroke-linecap='round' stroke-width='0.6' d='M5 5L19 19M19 5L5 19'/%3E%3C/svg%3E") !important;
}

.coa-hero-section,
.cta-section,
.slp-dark,
.stk-block:is(.has-background) .has-palette-color-1-background-color {
  background: linear-gradient(135deg, #08264d 0%, #0b55d8 58%, #1269ed 100%) !important;
}

.wp-element-button,
.wp-block-button__link,
.ff-btn-submit,
.wpf_has_custom_css.ff-btn-submit,
.single_add_to_cart_button,
.add_to_cart_button,
.checkout-button,
.button.product_type_simple,
.ct-button,
.slp-btn-primary,
.search-box button,
.preview-btn,
.btn-download,
.accordion-header.active,
.code-badge:hover {
  background-color: #2872fa !important;
  border-color: #2872fa !important;
  color: #ffffff !important;
}

.wp-element-button:hover,
.wp-block-button__link:hover,
.ff-btn-submit:hover,
.wpf_has_custom_css.ff-btn-submit:hover,
.single_add_to_cart_button:hover,
.add_to_cart_button:hover,
.checkout-button:hover,
.button.product_type_simple:hover,
.ct-button:hover,
.slp-btn-primary:hover,
.search-box button:hover,
.preview-btn:hover,
.btn-download:hover {
  background-color: #1559ed !important;
  border-color: #1559ed !important;
  color: #ffffff !important;
}

.slp-btn-secondary,
.btn-shop,
.btn-contact:hover {
  color: #08264d !important;
}

a:hover,
.slp-view,
.slp-kicker,
.slp-price,
.step-badge,
.step-card p strong,
.mz-logo-text,
.highlight-green,
.highlight-blue,
.faq-question:hover,
.faq-question.active,
.bpc-link:hover,
.ref-search-container input:focus + svg,
.accordion-header:hover {
  color: #2872fa !important;
}

.step-icon svg,
.faq-question:hover .faq-icon,
.faq-question.active .faq-icon {
  fill: #2872fa !important;
}

input:focus,
textarea:focus,
select:focus,
.ref-search-container input:focus,
.search-box input:focus {
  border-color: #2872fa !important;
  box-shadow: 0 0 0 4px rgba(40, 114, 250, 0.10) !important;
}

.step-icon,
.code-badge {
  background-color: rgba(40, 114, 250, 0.08) !important;
  border-color: rgba(40, 114, 250, 0.20) !important;
  color: #2872fa !important;
}

.step-card:hover,
.code-badge:hover {
  box-shadow: 0 15px 30px rgba(40, 114, 250, 0.12) !important;
}

/* Header/navigation cleanup for proxied Blocksy pages. */
[data-header*="type-1"] .ct-header [data-id="menu"],
[data-header*="type-1"] .ct-header [data-row*="middle"],
[data-header*="type-1"] .ct-header [data-sticky*="yes"] [data-row*="middle"] {
  --menu-indicator-hover-color: #2872fa !important;
  --menu-indicator-active-color: #2872fa !important;
  --theme-border-bottom: 5px solid #2872fa !important;
}

[data-header*="type-1"] [data-id="search"],
[data-header*="type-1"] [data-id="account"],
[data-header*="type-1"] [data-id="cart"],
[data-header*="type-1"] [data-id="trigger"],
[data-header*="type-1"] .ct-header-search,
[data-header*="type-1"] .ct-header-trigger,
[data-header*="type-1"] [data-id="search"] .ct-header-search,
[data-header*="type-1"] [data-id="account"] .ct-account-item,
[data-header*="type-1"] [data-id="cart"] .ct-cart-item {
  --theme-icon-color: #2872fa !important;
  --theme-icon-hover-color: #1559ed !important;
  --theme-cart-badge-background: #2872fa !important;
  --theme-cart-badge-text: #ffffff !important;
  --theme-link-initial-color: #2872fa !important;
  --theme-link-hover-color: #1559ed !important;
}

[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li > a {
  --theme-link-hover-color: #2872fa !important;
  color: #071432 !important;
}

[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li.current-menu-item > a,
[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li.current_page_item > a,
[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li.current-menu-ancestor > a,
[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li > a:hover {
  color: #2872fa !important;
}

[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li > a::before,
[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li > a::after,
[data-header*="type-1"] .ct-header [data-row*="middle"],
[data-header*="type-1"] .ct-header [data-row*="middle"] > div {
  border-color: #2872fa !important;
}

[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li > a::before,
[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li > a::after {
  background-color: #2872fa !important;
}

[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li > a > svg,
[data-header*="type-1"] .ct-header [data-id="menu"] > ul > li > a > svg *,
[data-header*="type-1"] .ct-header [data-id="menu"] .ct-menu-link svg,
[data-header*="type-1"] .ct-header [data-id="menu"] .ct-menu-link svg *,
[data-header*="type-1"] .ct-header-search svg,
[data-header*="type-1"] .ct-header-search svg *,
[data-header*="type-1"] .ct-header-trigger svg,
[data-header*="type-1"] .ct-header-trigger svg *,
[data-header*="type-1"] [data-id="search"] svg,
[data-header*="type-1"] [data-id="search"] svg *,
[data-header*="type-1"] [data-id="account"] svg,
[data-header*="type-1"] [data-id="account"] svg *,
[data-header*="type-1"] [data-id="cart"] svg,
[data-header*="type-1"] [data-id="cart"] svg *,
[data-header*="type-1"] [data-id="trigger"] svg,
[data-header*="type-1"] [data-id="trigger"] svg * {
  fill: currentColor !important;
  stroke: initial !important;
}

[data-header*="type-1"] .ct-header-search,
[data-header*="type-1"] .ct-header-trigger,
[data-header*="type-1"] [data-id="search"] .ct-header-search,
[data-header*="type-1"] [data-id="account"] .ct-account-item,
[data-header*="type-1"] [data-id="cart"] .ct-cart-item,
[data-header*="type-1"] [data-id="cart"] .ct-icon-container {
  color: #2872fa !important;
}

[data-header*="type-1"] .ct-header-search:hover,
[data-header*="type-1"] .ct-header-trigger:hover,
[data-header*="type-1"] [data-id="search"] .ct-header-search:hover,
[data-header*="type-1"] [data-id="account"] .ct-account-item:hover,
[data-header*="type-1"] [data-id="cart"] .ct-cart-item:hover {
  color: #1559ed !important;
}

[data-header*="type-1"] [data-id="cart"] .ct-dynamic-count,
[data-header*="type-1"] [data-id="cart"] [class*="ct-dynamic-count"] {
  background-color: #2872fa !important;
  color: #ffffff !important;
}

/* Tracking page: preserve layout, replace the remaining green accents with blue. */
.bpc-tracking-module-wrapper #Track718Num:focus {
  border-color: #2872fa !important;
  box-shadow: 0 0 0 4px rgba(40, 114, 250, 0.10) !important;
}

.bpc-tracking-module-wrapper .bpc-search-btn {
  background-color: #2872fa !important;
  color: #ffffff !important;
}

.bpc-tracking-module-wrapper .bpc-search-btn:hover {
  background-color: #1559ed !important;
  box-shadow: 0 10px 15px -3px rgba(40, 114, 250, 0.30) !important;
}

.bpc-step-card:hover {
  box-shadow: 0 20px 40px -10px rgba(40, 114, 250, 0.12) !important;
}

.bpc-step-number,
.bpc-faq-item[open] .bpc-faq-question,
.bpc-faq-item[open] .bpc-faq-question::after {
  color: #2872fa !important;
}

.bpc-support-banner {
  background: linear-gradient(135deg, #08264d 0%, #2872fa 100%) !important;
  box-shadow: 0 15px 30px -10px rgba(40, 114, 250, 0.40) !important;
}

.bpc-support-text p {
  color: #d8ebff !important;
}

.bpc-faq-item:hover,
.bpc-faq-item[open] {
  border-color: #2872fa !important;
  box-shadow: 0 10px 15px -3px rgba(40, 114, 250, 0.10) !important;
}

.bpc-faq-item[open] > summary.bpc-faq-question::after {
  content: "−" !important;
  color: #2872fa !important;
}

/* Floating chat: match the local homepage on proxied pages. */
body .qlwapp,
body .qlwapp__container,
body .qlwapp__container.qlwapp__container--bottom-right {
  display: block !important;
}

body .qlwapp__container.qlwapp__container--bottom-right {
  position: fixed !important;
  right: 22px !important;
  bottom: 68px !important;
  width: 164px !important;
  z-index: 10001 !important;
}

body .qlwapp__container.qlwapp__container--bottom-right .qlwapp__button.qlwapp__button--button {
  width: 164px !important;
  min-width: 164px !important;
  height: 40px !important;
  min-height: 40px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 850 !important;
  gap: 7px !important;
  box-shadow: 0 18px 40px rgba(37, 211, 102, 0.32) !important;
}

body .qlwapp__container.qlwapp__container--bottom-right .qlwapp__button .qlwapp__icon {
  font-size: 18px !important;
}

body .qlwapp__container.qlwapp__container--bottom-right .qlwapp__modal {
  width: 430px !important;
  margin-right: 0 !important;
  transform: translateX(-246px) !important;
  margin-bottom: 12px !important;
}

.slp-tg-button {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10000 !important;
  width: 164px;
  min-width: 164px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 850;
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  background: linear-gradient(135deg, #2aa9ff, #1479e8);
  box-shadow: 0 18px 40px rgba(20, 121, 232, 0.30);
  transition: transform 0.24s ease, box-shadow 0.24s ease, filter 0.24s ease;
}

.slp-tg-button:hover {
  transform: translateY(-3px);
  filter: brightness(1.04);
}

.slp-tg-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 auto;
}

@media (max-width: 720px) {
  body .qlwapp__container.qlwapp__container--bottom-right {
    right: 14px !important;
    bottom: 66px !important;
    width: min(164px, calc(100vw - 28px)) !important;
  }

  body .qlwapp__container.qlwapp__container--bottom-right .qlwapp__button.qlwapp__button--button {
    width: min(164px, calc(100vw - 28px)) !important;
    min-width: 0 !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 10px !important;
    font-size: 12px !important;
  }

  body .qlwapp__container.qlwapp__container--bottom-right .qlwapp__modal {
    width: min(430px, calc(100vw - 28px)) !important;
    transform: translateX(calc(-1 * (min(430px, calc(100vw - 28px)) - min(164px, calc(100vw - 28px))))) !important;
  }

  .slp-tg-button {
    right: 14px;
    bottom: 22px;
    width: min(164px, calc(100vw - 28px));
    min-width: 0;
    min-height: 38px;
    padding: 0 10px;
    font-size: 11px;
  }

  .slp-tg-button svg {
    width: 17px;
    height: 17px;
  }
}

/* Verification report preview: keep wheel/touch scrolling inside the modal only. */
html.slp-preview-modal-open,
body.slp-preview-modal-open {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

body.slp-preview-modal-open {
  width: 100% !important;
}

#previewModal.modal-overlay {
  z-index: 2147483000 !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  height: 100dvh !important;
  background: #05070b !important;
  overflow: hidden !important;
  overscroll-behavior: contain !important;
  touch-action: none !important;
  padding: 16px !important;
  box-sizing: border-box !important;
  isolation: isolate !important;
}

#previewModal .modal-content {
  width: min(92vw, 920px) !important;
  height: min(92vh, 920px) !important;
  height: min(92dvh, 920px) !important;
  max-height: none !important;
  min-height: 0 !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
  position: relative !important;
  z-index: 1 !important;
}

#previewModal .modal-header,
#previewModal .modal-actions {
  flex: 0 0 auto !important;
}

#previewModal .preview-image-container {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: auto !important;
  overscroll-behavior: contain !important;
  touch-action: pan-y !important;
}

#previewModal .preview-image-container img {
  display: block !important;
  margin: 0 auto !important;
}

body.slp-preview-modal-open .qlwapp,
body.slp-preview-modal-open .qlwapp__container,
body.slp-preview-modal-open .slp-tg-button,
body.slp-preview-modal-open .ct-back-to-top {
  display: none !important;
}

@media (max-width: 720px) {
  #previewModal.modal-overlay {
    padding: 10px !important;
    align-items: stretch !important;
  }

  #previewModal .modal-content {
    width: 100% !important;
    height: calc(100dvh - 20px) !important;
    padding: 14px !important;
    max-width: none !important;
  }

  #previewModal .modal-header {
    margin-bottom: 10px !important;
    padding-bottom: 10px !important;
  }

  #previewModal .modal-actions {
    gap: 8px !important;
    margin-top: 10px !important;
    padding-top: 10px !important;
  }

  #previewModal .btn-cancel,
  #previewModal .btn-download {
    padding: 10px 12px !important;
    font-size: 13px !important;
  }
}
