.htw-pyrex-announcement {
  position: relative;
  z-index: 31;
  display: flex;
  box-sizing: border-box;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 8px 48px;
  overflow: hidden;
  background: #da291c;
  color: #fff;
  font-family: "DM Sans", Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  letter-spacing: .01em;
}

.htw-pyrex-announcement-icon {
  flex: 0 0 auto;
  font-size: 14px;
}

.htw-pyrex-announcement-text {
  display: block;
  max-width: min(960px, 100%);
  opacity: 1;
  transform: translateY(0);
  transition: opacity .22s ease, transform .22s ease;
}

.htw-pyrex-announcement-text.is-changing {
  opacity: 0;
  transform: translateY(-4px);
}

body.admin-bar .htw-pyrex-announcement {
  z-index: 99998;
}

#header .header-wrapper,
#header .header-bg-color {
  background: #fff;
}

#header .header-top {
  display: none !important;
}

#header .header-main .nav > li > a,
#header #wide-nav .nav > li > a {
  color: #111 !important;
}

#header .header-search-form .search-field,
#header .searchform .search-field {
  color: #111 !important;
}

#header .header-search-form .search-field::placeholder,
#header .searchform .search-field::placeholder {
  color: #5f5f5f !important;
  opacity: 1;
}

@media (max-width: 849px) {
  .htw-pyrex-announcement {
    min-height: 42px;
    padding: 7px 18px;
    font-size: 11px;
  }

  #header .header-bottom.show-for-medium {
    display: none !important;
  }

  #header .header-main {
    height: 62px;
  }

  #header .header-main .header-inner {
    min-height: 62px;
  }
}

/* Keep the editable Site Module Importer footer consistent across all pages. */
.footer-2 .widget_custom_html .is-divider,
.footer-2 .widget_custom_html::after {
  display: none !important;
}

.footer-2 .widget_custom_html p {
  margin: 0 0 12px !important;
  border: 0 !important;
}

.footer-2 .widget_custom_html a {
  border: 0 !important;
  text-decoration: none !important;
}

/* Pyrex storefront color system and native WooCommerce controls. */
body.htw-source-site-shell .badge-inner.secondary.on-sale {
  background: #da291c !important;
  color: #fff !important;
}

body.htw-source-site-shell .badge-inner.secondary.on-sale .onsale {
  background: transparent !important;
  color: inherit !important;
}

/* Keep native Woo sale prices aligned with the approved Pyrex promotion color. */
body.htw-source-site-shell .price ins,
body.htw-source-site-shell .price ins .woocommerce-Price-amount,
body.htw-source-site-shell .product-price ins,
body.htw-source-site-shell .product-price ins .woocommerce-Price-amount {
  color: #da291c !important;
}

body.htw-source-site-shell.single-product form.cart {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
}

body.htw-source-site-shell.single-product form.cart .quantity,
body.htw-source-site-shell.single-product form.cart .button {
  margin: 0 !important;
}

body.htw-source-site-shell.single-product form.cart .single_add_to_cart_button {
  min-height: 44px;
  padding: 0 24px;
  border: 1px solid #111 !important;
  border-radius: 6px;
  background: #a5e2d6 !important;
  color: #111 !important;
  box-shadow: none !important;
}

body.htw-source-site-shell.single-product form.cart .single_add_to_cart_button:hover {
  background: #8fd5c7 !important;
}

body.htw-source-site-shell.single-product form.cart .ux-buy-now-button {
  min-height: 44px;
  padding: 0 30px;
  border: 1px solid #da291c !important;
  border-radius: 6px;
  background: #da291c !important;
  color: #fff !important;
  box-shadow: 0 7px 18px rgba(218, 41, 28, .24) !important;
  letter-spacing: .035em;
  transition: transform .18s ease, background-color .18s ease, box-shadow .18s ease;
}

body.htw-source-site-shell.single-product form.cart .ux-buy-now-button:hover {
  background: #b92318 !important;
  box-shadow: 0 9px 22px rgba(218, 41, 28, .32) !important;
  transform: translateY(-1px);
}

body.htw-source-site-shell.single-product form.cart .button:focus-visible {
  outline: 3px solid rgba(218, 41, 28, .35);
  outline-offset: 3px;
}

body.htw-source-site-shell.single-product .product-summary > img[src*="938012eefb2148178e971cbc3aba3353.webp"] {
  display: none !important;
}

.htw-pyrex-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 22px 0 0;
  padding: 16px 0;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  color: #333;
  font: 600 13px/1.35 "DM Sans", Arial, sans-serif;
}

.htw-pyrex-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.htw-pyrex-trust-row span::before {
  color: #da291c;
  content: "✓";
  font-weight: 800;
}

.htw-footer-accordion__toggle {
  display: block;
  width: 100%;
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: transparent !important;
  color: #111 !important;
  box-shadow: none !important;
  font: 400 15px/1.2 "DM Sans", Arial, sans-serif;
  text-align: left;
  pointer-events: none;
}

@media (max-width: 849px) {
  .footer-2 .htw-footer-accordion {
    width: 100% !important;
    max-width: none !important;
    padding: 0 15px !important;
  }

  .footer-2 .htw-footer-accordion__toggle {
    display: flex;
    width: 100%;
    min-height: 50px;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 0;
    border: 0;
    border-bottom: 1px solid #dedede;
    background: transparent !important;
    color: #111 !important;
    box-shadow: none !important;
    font: 500 15px/1.2 "DM Sans", Arial, sans-serif;
    text-align: left;
    pointer-events: auto;
  }

  .htw-footer-accordion__icon {
    position: relative;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
  }

  .htw-footer-accordion__icon::before,
  .htw-footer-accordion__icon::after {
    position: absolute;
    top: 7px;
    left: 2px;
    width: 12px;
    height: 1.5px;
    background: #111;
    content: "";
    transition: transform .18s ease;
  }

  .htw-footer-accordion__icon::after {
    transform: rotate(90deg);
  }

  .htw-footer-accordion__toggle[aria-expanded="true"] .htw-footer-accordion__icon::after {
    transform: rotate(0);
  }

  .footer-2 .htw-footer-accordion__panel {
    padding: 14px 0 5px;
  }

  .footer-2 .htw-footer-accordion__panel[hidden] {
    display: none !important;
  }

  body.htw-source-site-shell.single-product form.cart .quantity {
    flex: 0 0 auto;
  }

  body.htw-source-site-shell.single-product form.cart .single_add_to_cart_button {
    flex: 1 1 170px;
  }

  body.htw-source-site-shell.single-product form.cart .ux-buy-now-button {
    flex: 1 1 100%;
    min-height: 50px;
    font-size: 16px;
  }

  .htw-pyrex-trust-row {
    display: grid;
    gap: 9px;
    margin-top: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .htw-pyrex-announcement-text {
    transition: none;
  }

  body.htw-source-site-shell.single-product form.cart .ux-buy-now-button,
  .htw-footer-accordion__icon::before,
  .htw-footer-accordion__icon::after {
    transition: none;
  }
}
