/* Use the supplied UMT logo palette in the existing Tripgo controls. */
:root {
  --umt-blue: #004A95;
  --umt-orange: #FD7501;
  --umt-black: #000000;
  --umt-footer-blue: #001B36;
  --primary: var(--umt-blue);
  --primary-hover: var(--umt-orange);
  --secondary: var(--umt-orange);
  --secondary-hover: var(--umt-blue);
}

/* Elementor caches shared footer HTML. The page's body class keeps the home
   exception correct even when another page warmed that shared cache. */
body:not(.home) :is(.elementor-222, .elementor-385, .elementor-448, .elementor-4708, .elementor-4948, .elementor-5142, .elementor-8997)
  .elementor-widget-ova_logo:is(.elementor-element-7ab4ffd, .elementor-element-eda07ae) .brand_el img {
  content: url('brand/umt-logo-white.svg');
  object-fit: contain;
}

/* Only the native footer's existing rows receive the darker background. */
body:not(.home) :is(.elementor-222, .elementor-385, .elementor-448, .elementor-4708, .elementor-4948, .elementor-5142, .elementor-8997)
  :is(.elementor-element-1b19b78, .elementor-element-0d94e51),
body:not(.home) .elementor-8997 .elementor-element-0198fb1 {
  background-color: var(--umt-footer-blue) !important;
}

body:not(.home) :is(.elementor-222, .elementor-385, .elementor-448, .elementor-4708, .elementor-4948, .elementor-5142, .elementor-8997)
  :is(.elementor-widget-text-editor, .elementor-widget-text-editor p, .elementor-heading-title,
  .ova-contact-info, .ova-contact-info .label, .ova-contact-info .info,
  .ova-contact-info a, .ova-contact-info .info .item, .ova-menu-footer .menu li > a, .umt-footer-credit) {
  color: #FFFFFF !important;
}

body:not(.home) :is(.elementor-222, .elementor-385, .elementor-448, .elementor-4708, .elementor-4948, .elementor-5142, .elementor-8997)
  :is(.ova-menu-footer .menu li > a:hover, .ova-contact-info a:hover, .umt-footer-credit:hover) {
  color: var(--umt-orange) !important;
}

/* Native list items and social glyphs have their own theme color rules. */
:is(.elementor-222, .elementor-385, .elementor-448, .elementor-4708, .elementor-4948, .elementor-5142, .elementor-8997)
  :is(.elementor-social-icon, .elementor-social-icon i, .elementor-social-icon svg) {
  color: #FFFFFF !important;
}

:is(.elementor-222, .elementor-385, .elementor-448, .elementor-4708, .elementor-4948, .elementor-5142, .elementor-8997)
  .elementor-social-icon svg {
  fill: #FFFFFF !important;
}

/* Keep white glyphs readable in the homepage's existing light footer. Its
   main rows and original logo stay light; only the existing bottom row is dark. */
body.home :is(.elementor-222, .elementor-385, .elementor-448, .elementor-4708, .elementor-4948, .elementor-5142, .elementor-8997)
  .elementor-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: var(--umt-blue) !important;
  border-radius: 50%;
}

body.home :is(.elementor-222, .elementor-385, .elementor-448, .elementor-4708, .elementor-4948, .elementor-5142, .elementor-8997)
  :is(.elementor-element-0d94e51, .elementor-element-931e5fc) {
  background-color: var(--umt-footer-blue) !important;
}

body.home :is(.elementor-222, .elementor-385, .elementor-448, .elementor-4708, .elementor-4948, .elementor-5142, .elementor-8997)
  .umt-footer-credit {
  color: #FFFFFF !important;
}

body.home :is(.elementor-222, .elementor-385, .elementor-448, .elementor-4708, .elementor-4948, .elementor-5142, .elementor-8997)
  .elementor-element-0d94e51 .ova-contact-info .info .item {
  color: #FFFFFF !important;
}

/* Keep WooCommerce's native actions and their validation/payment flow. */
.woocommerce :is(button.button, a.button, input.button),
.woocommerce-page :is(button.button, a.button, input.button) {
  background-color: var(--umt-blue);
  border-color: var(--umt-blue);
  color: #FFFFFF;
}

.woocommerce :is(button.button:hover, a.button:hover, input.button:hover),
.woocommerce-page :is(button.button:hover, a.button:hover, input.button:hover) {
  background-color: var(--umt-orange);
  border-color: var(--umt-orange);
  color: var(--umt-black);
}

/* Give every native product-category description room below the site header. */
body.tax-product_cat #woo_main #primary #main > .woocommerce-products-header {
  padding-top: clamp(32px, 3.5vw, 48px);
}

/* Restyle the existing YITH control inside Tripgo cards, retaining its native
   label, loading state and add/remove handlers. No extra card markup is needed. */
.ova_head_product > .ova-product-wishlist {
  --add-to-wishlist-icon-color: var(--umt-orange);
  --added-to-wishlist-icon-color: var(--umt-orange);
  top: 12px;
  right: 12px;
  max-width: calc(100% - 24px);
  padding: 0;
  background: transparent;
}

.ova_head_product > .ova-product-wishlist .yith-add-to-wishlist-button-block {
  margin: 0;
}

.ova_head_product > .ova-product-wishlist .yith-wcwl-add-to-wishlist-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-sizing: border-box;
  min-height: 44px;
  max-width: 100%;
  margin: 0;
  padding: 10px 13px;
  border: 1px solid rgba(0, 74, 149, 0.12);
  border-radius: 999px;
  background: #FFFFFF;
  box-shadow: 0 4px 16px rgba(0, 27, 54, 0.18);
  color: var(--umt-blue);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.ova_head_product > .ova-product-wishlist .yith-wcwl-add-to-wishlist-button__label {
  color: inherit;
  font-size: inherit;
  line-height: inherit;
}

.ova_head_product > .ova-product-wishlist .yith-wcwl-add-to-wishlist-button-icon {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  color: var(--umt-orange);
}

.ova_head_product > .ova-product-wishlist .yith-wcwl-add-to-wishlist-button:is(:hover, :focus-visible) {
  --add-to-wishlist-icon-color: #FFFFFF;
  --added-to-wishlist-icon-color: #FFFFFF;
  background: var(--umt-blue);
  color: #FFFFFF;
  box-shadow: 0 6px 20px rgba(0, 27, 54, 0.24);
}

.ova_head_product > .ova-product-wishlist .yith-wcwl-add-to-wishlist-button:focus-visible {
  outline: 3px solid var(--umt-orange);
  outline-offset: 3px;
}

.ova_head_product > .ova-product-wishlist .yith-wcwl-add-to-wishlist-button:is(:hover, :focus-visible) .yith-wcwl-add-to-wishlist-button-icon {
  color: #FFFFFF;
}

@media (prefers-reduced-motion: reduce) {
  .ova_head_product > .ova-product-wishlist .yith-wcwl-add-to-wishlist-button {
    transition: none;
  }
}

/* The native product-category empty-state wrapper is distinct from ordinary
   WooCommerce notices, including cart and checkout validation messages. */
body.tax-product_cat #woo_main #primary #main > .woocommerce-no-products-found > .woocommerce-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  box-sizing: border-box;
  width: calc(100% - 32px);
  max-width: 860px;
  min-height: 224px;
  margin: clamp(40px, 6vw, 72px) auto clamp(56px, 7vw, 88px);
  padding: 40px clamp(24px, 5vw, 64px);
  border: 1px solid #DBE5EF;
  border-top: 4px solid var(--umt-blue);
  border-radius: 18px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F9FD 100%);
  box-shadow: 0 12px 30px rgba(0, 74, 149, 0.09);
  color: var(--umt-footer-blue);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 500;
  line-height: 1.6;
  text-align: center;
}

body.tax-product_cat #woo_main #primary #main > .woocommerce-no-products-found > .woocommerce-info::before {
  content: "i";
  position: static;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #CCD9EA;
  border-radius: 50%;
  background-color: #E6EEF7;
  color: var(--umt-blue);
  font-family: inherit;
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
}
