/* ==========================================================================
   TRUCKBEDSUSA STYLING ARCHITECTURE
   ========================================================================== */

:root {
  --tb-blue: #034c8c;
  --tb-amber: #f29f05;
  --tb-crimson: #bf3617;
  --tb-dark: #111827;
  --tb-text: #444444;
}

/* ==========================================================================
   FLATSOME LAYOUT RESET OVERRIDES
   ========================================================================== */
#header,
.header-wrapper,
.mobex-main-header,
.mobex-navigation-bar {
  width: 100% !important;
  max-width: 100% !important;
  left: 0 !important;
  right: 0 !important;
  box-sizing: border-box !important;
}

.header-wrapper {
  background: transparent !important;
  box-shadow: none !important;
}

.header-main {
  display: none !important;
}

/* Base Typographic Overrides */
body,
p,
.product-small .title {
  font-family: "Inter", sans-serif !important;
  font-size: 13px !important;
  line-height: 1.8em !important;
  color: var(--tb-text) !important;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Inter", sans-serif !important;
  color: #222222 !important;
  font-weight: 600 !important;
}

.mobex-container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

.flex-space-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-grid-three {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

/* ==========================================================================
   DESKTOP CORE INTERFACE ARCHITECTURE
   ========================================================================== */

/* Row 1: Promo Ticker */
.mobex-ticker-wrap {
  background-color: #f5f7fa;
  border-bottom: 1px solid #e5e7eb;
  color: #111827;
  font-size: 13px;
  padding: 8px 0;
  position: relative;
}
.mobex-ticker-wrap .mobex-container {
  display: flex;
  justify-content: center;
  align-items: center;
}
.mobex-ticker-wrap .code-badge {
  background: #111827;
  color: #fff;
  padding: 2px 6px;
  font-weight: bold;
  border-radius: 3px;
  margin: 0 4px;
}
.mobex-countdown {
  display: inline-flex;
  gap: 4px;
  margin-left: 6px;
  font-weight: 700;
}
.mobex-countdown .time-block {
  background: var(--tb-crimson);
  color: #fff;
  padding: 2px 5px;
  border-radius: 4px;
  font-size: 12px;
}
.ticker-close {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #666;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
}

/* Row 2: Top Bar */
.mobex-top-bar {
  background-color: var(--tb-blue);
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 13px;
}
.topbar-left {
  display: flex;
  gap: 24px;
  flex-wrap: nowrap;
  min-width: 0;
  align-items: center;
}
.topbar-left .utility-item {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.topbar-left .utility-item i,
.topbar-left .utility-item svg {
  color: var(--tb-amber);
  flex-shrink: 0;
}
.topbar-left a.accent-link {
  color: #ffffff;
  text-decoration: underline;
  font-weight: 500;
}
.topbar-locations a {
  color: #ffffff !important;
  text-decoration: none;
}
.topbar-locations a strong {
  text-decoration: underline;
}
.topbar-locations a:hover {
  color: #ffffff !important;
  opacity: 0.85;
}
.topbar-right {
  display: flex;
  gap: 20px;
  align-items: center;
  flex-shrink: 0;
}
.topbar-login-btn {
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 14px;
  border-radius: 4px;
  color: #fff !important;
  font-weight: 500;
  white-space: nowrap;
}

/* Row 3: Main Header */
.mobex-main-header {
  background-color: var(--tb-blue);
  padding: 18px 0;
}

/* Text-based logo fallback */
.tb-logo-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none !important;
  line-height: 1;
}
.tb-text-logo {
  display: block;
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.5px;
  color: #ffffff !important;
  white-space: nowrap;
}
.tb-text-logo span {
  color: var(--tb-amber);
}
.tb-tagline {
  display: block;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65) !important;
  white-space: nowrap;
}

.header-logo-zone {
  flex-shrink: 0;
}
.header-logo-zone img {
  max-height: 48px;
  width: auto;
}

.header-search-zone {
  flex-grow: 1;
  max-width: 680px;
  min-width: 0;
}

/* Reset Form Chrome inside search */
.mobex-searchform,
.mobex-searchform * {
  box-sizing: border-box;
}
.mobex-searchform select,
.mobex-searchform input,
.mobex-searchform button {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  background-image: none;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: normal;
}

.mobex-searchform {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  height: 46px;
  width: 100%;
  max-width: 100%;
  margin-bottom: 0;
  position: relative;
}
.search-cat-selector {
  border-right: 1px solid #eaeaea;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  align-self: stretch;
  flex: 0 0 160px;
  overflow: hidden;
}
.search-cat-selector select {
  background: transparent !important;
  color: #333;
  padding: 0 26px 0 15px !important;
  height: 100%;
  width: 100%;
  cursor: pointer;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.search-input-field {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
  padding: 0 15px !important;
  color: #333;
  align-self: center;
}
.search-input-field::placeholder {
  color: #8a8f98;
  opacity: 1;
}
.search-submit-btn {
  background-color: var(--tb-crimson) !important;
  color: #fff !important;
  flex: 0 0 54px;
  align-self: stretch;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-submit-btn:hover {
  background-color: var(--tb-dark) !important;
}

/* Actions & Cart */
.action-items-wrapper {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: flex-end;
  flex-shrink: 0;
}
.action-icon-link {
  color: #ffffff !important;
  font-size: 20px;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
}
.action-icon-link svg {
  display: block;
}
.action-icon-link:hover {
  color: var(--tb-amber) !important;
}
.mobex-cart-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff !important;
  text-decoration: none;
  white-space: nowrap;
}
.mobex-cart-link i {
  font-size: 24px;
}
.cart-meta-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2em;
}
.cart-label {
  font-size: 11px;
  opacity: 0.7;
  text-transform: uppercase;
}
.cart-count {
  font-size: 13px;
  font-weight: 700;
}

/* Row 4: Navigation Bar */
.mobex-navigation-bar {
  background: #ffffff;
  border-bottom: 1px solid #eaeaea;
  padding: 8px 0;
}
.mobex-cat-toggle {
  background: #ffffff !important;
  border: 2px solid var(--tb-amber) !important;
  color: #111827 !important;
  font-weight: 600 !important;
  padding: 10px 18px !important;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  white-space: nowrap;
}
.menu-burger {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.menu-burger span {
  width: 14px;
  height: 2px;
  background: #111827;
  display: block;
}

.mobex-desktop-menu {
  display: flex;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.mobex-desktop-menu > li {
  position: relative;
}
.mobex-desktop-menu > li > a {
  position: relative;
  color: #111827 !important;
  font-weight: 600;
  font-size: 14px;
  text-transform: none;
  padding: 10px 0;
  display: inline-block;
}
.mobex-desktop-menu > li > a:hover {
  color: var(--tb-crimson) !important;
}
.mobex-desktop-menu > li > a::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 2px;
  background: var(--tb-crimson);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.mobex-desktop-menu > li > a:hover::before {
  transform: scaleX(1);
}

/* Active Menu States */
.mobex-desktop-menu > li.current-menu-item > a,
.mobex-desktop-menu > li.current-menu-parent > a,
.mobex-desktop-menu > li.current-menu-ancestor > a {
  color: var(--tb-crimson) !important;
}
.mobex-desktop-menu > li.current-menu-item > a::before,
.mobex-desktop-menu > li.current-menu-parent > a::before,
.mobex-desktop-menu > li.current-menu-ancestor > a::before {
  transform: scaleX(1);
}

/* Desktop Dropdown Architecture */
.mobex-desktop-menu .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: #ffffff;
  border: 1px solid #eaeaea;
  border-top: 3px solid var(--tb-amber);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
  border-radius: 0 0 6px 6px;
  list-style: none;
  margin: 0;
  padding: 8px 0;
  z-index: 200;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s;
}
.mobex-desktop-menu > li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mobex-desktop-menu .sub-menu li {
  position: relative;
}
.mobex-desktop-menu .sub-menu li a {
  display: block;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 500;
  color: #333 !important;
  white-space: nowrap;
}
.mobex-desktop-menu .sub-menu li a:hover {
  background: #f7f8fa;
  color: var(--tb-crimson) !important;
}

/* 3rd Level Flyouts */
.mobex-desktop-menu .sub-menu .sub-menu {
  top: 0;
  left: 100%;
  transform: translateX(6px);
}
.mobex-desktop-menu .sub-menu li:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}
.mobex-desktop-menu > li.menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  opacity: 0.6;
}

/* Mobile structural triggers baseline hidden state */
.mobex-mobile-header-row,
.mobex-mobile-drawer,
.mobex-mobile-drawer-overlay {
  display: none;
}

/* ==========================================================================
   INTERMEDIATE BREAKPOINTS & UTILITIES
   ========================================================================== */

@media (min-width: 992px) {
  .header-wrapper {
    position: sticky;
    top: 0;
    z-index: 999;
    transition: all 0.25s ease-in-out;
  }
  .header-wrapper.is-stuck #mobex-promo-ticker,
  .header-wrapper.is-stuck .mobex-top-bar {
    display: none !important;
  }
  .header-wrapper.is-stuck .mobex-main-header {
    padding: 10px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  }
  .header-wrapper.is-stuck .tb-text-logo {
    font-size: 22px;
  }
}

@media (max-width: 1100px) {
  .topbar-locations {
    display: none;
  }
}

@media (max-width: 1023px) {
  .mobex-top-bar {
    display: none;
  }
}

@media (max-width: 767px) {
  .flex-grid-three {
    flex-wrap: wrap;
    gap: 12px;
  }
  .header-search-zone {
    order: 3;
    flex-basis: 100%;
    max-width: 100%;
  }
  .cart-meta-text {
    display: none;
  }
  .mobex-navigation-bar .mobex-desktop-menu {
    display: none;
  }
}

/* ==========================================================================
   CONSOLIDATED MOBILE & TABLET CORE PATTERNS (MAX-WIDTH: 991px)
   ========================================================================== */

@media (max-width: 991px) {
  /* --- Structural Layout Adjustments --- */
  .mobex-desktop-header-row,
  .mobex-navigation-bar {
    display: none !important;
  }
  .mobex-mobile-header-row {
    display: block;
  }
  .mobex-main-header {
    padding: 12px 0 16px 0 !important;
  }

  /* 1. Fix: Promo Ticker Dynamic Flex Wrapping */
  .mobex-ticker-wrap {
    padding: 10px 35px 10px 15px !important;
  }
  .mobex-ticker-wrap .mobex-container {
    display: block !important;
    text-align: center !important;
  }
  .ticker-content {
    display: inline-block !important;
    line-height: 1.5 !important;
    font-size: 12px !important;
  }
  .mobex-countdown {
    display: inline-flex !important;
    vertical-align: middle;
    margin-top: 4px;
  }

  /* 2. Fix: Logo & Action Zone Precise Vertical Cross-Alignment */
  .mobile-top-bar {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    margin-bottom: 12px;
  }
  .mobile-action-zone {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    height: 100% !important;
  }
  .mobile-cart-trigger {
    position: relative;
    color: #ffffff !important;
    font-size: 24px;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 4px 0;
    line-height: 1 !important;
  }
  .mobile-cart-badge {
    position: absolute;
    top: -5px;
    right: -8px;
    background-color: var(--tb-amber);
    color: #111827;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .mobile-menu-hamburger {
    background: transparent !important;
    border: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    height: 24px !important;
    margin: 0 !important;
    padding: 4px 0;
  }
  .mobile-menu-hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background-color: #ffffff;
    border-radius: 2px;
  }

  /* --- Mobile Search Engine & Form Overrides --- */
  .mobile-search-bar-row {
    width: 100% !important;
    padding: 0 !important;
    margin: 4px 0 0 0 !important;
  }
  .mobex-mobile-searchform {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    background-color: #ffffff !important;
    border-radius: 30px !important;
    height: 44px !important;
    padding: 0 16px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    width: 100% !important;
    position: relative;
  }
  .search-lens-icon {
    color: var(--tb-amber) !important;
    font-size: 16px !important;
    margin-right: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 100% !important;
    flex-shrink: 0 !important;
  }
  .mobile-search-input {
    flex: 1 !important;
    width: 100% !important;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    color: #333333 !important;
    font-size: 14px !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-block !important;
    line-height: normal !important;
    align-self: center !important;
  }
  .mobile-search-input::placeholder {
    color: #888888 !important;
    line-height: normal !important;
  }

  /* 3. Fix: Search Box Icon and Filter Removal Elements Toggle */
  .mobile-filter-btn,
  .mobex-mobile-searchform .mobile-filter-btn {
    display: none !important;
  }

  /* --- Side Overlay Drawer Interface Architecture --- */
  .mobex-mobile-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.55);
    z-index: 99998;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  .mobex-mobile-drawer-overlay.active {
    display: block;
    opacity: 1;
  }
  .mobex-mobile-drawer {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -320px;
    width: 300px;
    height: 100%;
    background-color: #ffffff;
    z-index: 99999;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.15);
    transition: right 0.3s ease-in-out;
  }
  .mobex-mobile-drawer.open {
    right: 0;
  }
  .drawer-header-profile {
    background-color: var(--tb-blue);
    padding: 24px 20px;
    position: relative;
    color: #ffffff;
  }
  .drawer-close-btn {
    position: absolute;
    left: -15px;
    top: 24px;
    background: var(--tb-blue) !important;
    color: #ffffff !important;
    border: none !important;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: -2px 2px 6px rgba(0, 0, 0, 0.1);
  }
  .drawer-user-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
    margin-bottom: 15px;
  }
  .user-avatar-placeholder {
    width: 44px;
    height: 44px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
  }
  .user-welcome-info h3 {
    color: #ffffff !important;
    font-size: 15px !important;
    margin: 0 !important;
    font-weight: 700 !important;
  }
  .user-welcome-info p {
    color: rgba(255, 255, 255, 0.75) !important;
    font-size: 11px !important;
    margin: 0 !important;
  }
  .drawer-login-btn {
    display: inline-block;
    border: 1px solid #ffffff;
    color: #ffffff !important;
    padding: 5px 20px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
  }
  .drawer-tabs-navigation {
    display: flex;
    background-color: #f4f6f9;
    border-bottom: 1px solid #e5e7eb;
  }
  .drawer-tab-trigger {
    flex: 1;
    background: transparent !important;
    border: none !important;
    padding: 12px 5px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    color: #666666 !important;
    cursor: pointer;
    text-align: center;
    border-bottom: 3px solid transparent;
  }
  .drawer-tab-trigger.active {
    color: #111827 !important;
    border-bottom-color: var(--tb-blue);
    background-color: #ffffff;
  }
  .drawer-tabs-content-viewport {
    flex: 1;
    overflow-y: auto;
  }
  .drawer-tab-panel {
    display: none;
    padding: 10px 0;
  }
  .drawer-tab-panel.active {
    display: block;
  }

  /* --- Accordion Dropdown Submenu Layout --- */
  .mobex-mobile-vertical-menu,
  .mobex-mobile-vertical-menu ul.sub-menu {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .mobex-mobile-vertical-menu li {
    border-bottom: 1px solid #f3f4f6;
  }
  .mobex-mobile-vertical-menu li.menu-item-has-children {
    position: relative;
  }
  .mobex-mobile-vertical-menu li a {
    display: block;
    padding: 14px 20px;
    color: #333333 !important;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
  }
  .mobex-mobile-vertical-menu li a:hover {
    background-color: #f9fafb;
    color: var(--tb-blue) !important;
  }
  .mobex-mobile-vertical-menu li.menu-item-has-children > a::after {
    content: "\e5c5";
    font-family: "flatsome-icons", sans-serif;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%) rotate(0deg);
    transition: transform 0.2s ease-in-out;
    opacity: 0.6;
    font-size: 14px;
  }
  .mobex-mobile-vertical-menu li.menu-item-has-children.is-expanded > a::after {
    transform: translateY(-50%) rotate(180deg);
  }
  .mobex-mobile-vertical-menu ul.sub-menu {
    display: none;
    background-color: #f9fafb;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
  }
  .mobex-mobile-vertical-menu ul.sub-menu li a {
    padding-left: 35px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #555555 !important;
  }
}

/* ==========================================================================
   COMPACT FOOTER MOBEX BRAND & NEWSLETTER ARCHITECTURE
   ========================================================================== */
.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 10px; /* Drastically reduced macro-spacing */
  max-width: 100%;
  box-sizing: border-box;
}

/* Header-style Text Logo Implementation */
.tb-footer-logo-block {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none !important;
  line-height: 1;
  margin-bottom: 4px;
}

.tb-footer-text-logo {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.5px;
  color: #ffffff !important;
}

.tb-footer-text-logo span {
  color: var(--tb-amber);
}

.tb-footer-tagline {
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65) !important;
}

/* Description Prose Layout */
.footer-contact-info .footer-bio-text {
  color: #ffffff !important;
  font-size: 13px !important;
  line-height: 1.6 !important;
  margin: 0 !important;
  opacity: 0.9 !important;
}

.footer-contact-info .footer-bio-text strong {
  color: #ffffff !important;
  font-weight: 600 !important;
}

/* Call to Action Text Spacing Reset */
.footer-contact-info .newsletter-pitch-title {
  color: #ffffff !important;
  font-family: "Inter", sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  margin: 6px 0 2px 0 !important;
  padding: 0 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

/* Inline Newsletter Form Structural Adjustments */
.footer-inline-newsletter {
  width: 100%;
  margin: 0 !important;
  padding: 0 !important;
}

.newsletter-field-group {
  display: flex;
  align-items: center;
  background-color: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  padding: 3px;
  box-sizing: border-box;
  width: 100%;
}

.newsletter-input-field {
  flex: 1 !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
  color: #111827 !important;
  font-size: 13.5px !important;
  padding: 8px 12px !important;
  margin: 0 !important;
  height: 36px !important;
  box-shadow: none !important;
}

.newsletter-input-field::placeholder {
  color: #888888 !important;
  opacity: 1 !important;
}

.newsletter-submit-btn {
  background-color: var(--tb-blue) !important;
  color: #ffffff !important;
  border: none !important;
  outline: none !important;
  border-radius: 4px !important;
  width: 38px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  padding: 0 !important;
  margin: 0 !important;
  transition: background-color 0.2s ease !important;
}

.newsletter-submit-btn:hover {
  background-color: var(--tb-crimson) !important;
}

.newsletter-submit-btn svg {
  display: block;
  stroke: #ffffff;
}

/* ==========================================================================
   SHARED LOCATION MAP STRUCTURAL ELEMENTS
   ========================================================================== */
.tb-map-section {
  background-color: #ffffff;
  margin-bottom: 60px;
}

.tb-map-wrapper {
  position: relative;
  width: 100%;
  height: 500px;
  border: 3px solid #446084; /* Flatsome Blue border framing matching your visual */
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.tb-satellite-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  filter: saturate(
    1.1
  ); /* Slightly pops the colors of the fields and landscape */
}

/* Floating Action Trigger Design Override */
.tb-map-overlay-btn {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 10;
  background-color: #ffffff;
  color: #0066cc;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 4px;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  border: 1px solid #dcdcdc;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease;
}

.tb-map-overlay-btn:hover {
  background-color: #f4f4f4;
  color: #004499;
  transform: translateY(-1px);
}

/* Fallback protection sizing adjustments across standard layouts */
@media (max-width: 767px) {
  .tb-map-wrapper {
    height: 350px;
  }
}

/* ==========================================================================
   GLOBAL FLOATING MAP PIN SHORTCUT EFFECT
   ========================================================================== */
.tb-floating-map-pin {
  position: fixed;
  bottom: 25px;
  left: 25px;
  z-index: 9999; /* Higher stack depth than chat buttons or footers */
  background-color: #ffffff;
  color: #446084; /* Your Flatsome Theme primary blue uniform */
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  cursor: pointer;
}

/* Hover Action Feedback Engine Override */
.tb-floating-map-pin:hover {
  background-color: #446084;
  color: #ffffff;
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 6px 20px rgba(68, 96, 132, 0.35);
}

/* Fluid design support for mobile devices so it stays clear of screen borders */
@media (max-width: 767px) {
  .tb-floating-map-pin {
    bottom: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
  }
  .tb-floating-map-pin svg {
    width: 20px;
    height: 20px;
  }
}

/* ==========================================================================
   GLOBAL BREADCRUMB BANNER VISIBILITY TUNING
   ========================================================================== */

/* 1. Target the Specific Dynamic Title Layer */
.custom-banner-content .custom-dynamic-title {
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6) !important; /* Maximum legibility pop */
  font-weight: 700 !important;
}

/* 2. Target the WooCommerce/Flatsome Nav Wrapper */
.custom-banner-content .woocommerce-breadcrumb.breadcrumbs {
  color: #ffffff !important;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}

/* 3. Highlight the Inactive "Home" or Root Anchor Links */
.custom-banner-content .woocommerce-breadcrumb.breadcrumbs a {
  color: #ffb703 !important; /* Warm accent matching your desktop setup */
  transition: color 0.2s ease !important;
  text-decoration: none !important;
}

.custom-banner-content .woocommerce-breadcrumb.breadcrumbs a:hover {
  color: #ffffff !important;
  text-decoration: underline !important;
}

/* 4. Soften the Separator Slash (/) Color */
.custom-banner-content .woocommerce-breadcrumb.breadcrumbs .divider {
  color: rgba(255, 255, 255, 0.6) !important;
  padding: 0 6px !important;
}
