/* Header and contact repair: native dropdowns and banner mega menus remain distinct. */
body .f-header__menu .f-menu__link--main,
body .f-header__menu .f-menu__link--main:hover {text-decoration:none;text-underline-offset:6px}
body .f-header__menu .f-menu__item > .f-menu__link--main:after {display:none}
body .f-header__menu .f-menu__item:not(:last-child) > .f-menu__link--main:hover,
body .f-header__menu .f-menu__item:not(:last-child) > .f-menu__link--main:focus-visible {color:#087b85;background:#eef6f7;border-radius:5px}
body .f-header__menu :is(a,button):focus-visible {outline:2px solid #147d87;outline-offset:3px}
@media(min-width:1024px){
 body .f-header__desktop .f-menu__item--mega {padding-block:17px;margin-block:-17px}
 body .f-header__desktop .f-menu__item--mega > .f-mega-menu {top:100%;left:0;right:0;width:100%;border-radius:0;border:0;border-top:1px solid #e0e8ec;box-shadow:0 18px 28px #15324816;max-height:calc(100dvh - var(--f-header-height) - var(--f-topbar-height));transform:none}
 body .f-header__desktop .f-menu__item--mega:is(.f-menu__item--active,.rb-nav-open,:focus-within) > .f-mega-menu {visibility:visible;opacity:1;pointer-events:auto}
 body .f-header__desktop .f-menu__item--mega .f-mega-menu__inner {display:flex;gap:28px;padding-block:30px;align-items:flex-start}
 body .f-header__desktop .f-menu__item--mega .f-sub-menu--level-1 {display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;flex:1;min-width:0;width:auto;margin:0}
 body .f-header__desktop .f-menu__item--mega .f-sub-menu__item--level-1 {width:auto;min-width:0;margin:0;padding:0;border:0}
 body .f-header__desktop .f-menu__item--mega .f-sub-menu__item--level-1 > .f-menu__link {padding:8px 8px 12px;font-size:13px;line-height:1.4;font-weight:650;border-bottom:1px solid #dce7eb;color:#153248}
 body .f-header__desktop .f-menu__item--mega .f-mega-menu__column {position:static;display:block;margin:10px 0 0;padding:0;width:auto;min-width:0;border:0;border-radius:0;box-shadow:none;background:transparent;transform:none;visibility:inherit;opacity:1;pointer-events:inherit}
 body .f-header__desktop .f-menu__item--mega .rb-nav-child-button {display:none}
 body .f-header__desktop .f-menu__item--mega .f-sub-menu--level-2 .f-menu__link {padding:8px;font-size:13px;line-height:1.5;border-radius:4px;text-decoration:none}
 body .f-header__desktop .f-menu__item--mega .f-mega-menu__content {flex:0 0 23%;width:23%;min-width:200px;padding:0}
 body .f-header__desktop .f-menu__item--mega .f-mega-banner__image {border-radius:8px;overflow:hidden}
 body .f-header__desktop .f-menu__item--mega .f-mega-banner__title {font-size:20px;line-height:1.3;margin-top:14px}
 body .f-header__desktop .f-menu__item--mega .f-mega-banner__button {margin-top:10px;text-underline-offset:6px}
 body .f-header__desktop .f-header__overlay {top:calc(var(--f-header-height) + var(--f-topbar-height));background:#15324840}

 /* A closed mega menu must not leave its flattened child columns over the page. */
 body .f-header__desktop .f-menu__item--mega:not(.f-menu__item--active):not(.rb-nav-open):not(:focus-within) > .f-mega-menu,
 body .f-header__desktop .f-menu__item--mega:not(.f-menu__item--active):not(.rb-nav-open):not(:focus-within) > .f-mega-menu * {pointer-events:none!important}
 body .f-header__desktop .f-menu__item--mega:not(.f-menu__item--active):not(.rb-nav-open):not(:focus-within) > .f-mega-menu,
 body .f-header__desktop .f-menu__item--mega:not(.f-menu__item--active):not(.rb-nav-open):not(:focus-within) > .f-mega-menu .f-mega-menu__column {visibility:hidden!important}
}
@media(min-width:1024px) and (max-width:1199px){
 body .f-header__desktop .f-menu__item--mega .f-sub-menu--level-1 {grid-template-columns:repeat(3,minmax(0,1fr));row-gap:20px}
}
/* Restore the configured language component without maintaining a separate language list. */
body .f-topbar__inner {gap:24px}
body .f-header .f-topbar {height:auto;max-height:none;padding-block:0;min-height:36px}
body .f-topbar__right {flex:0 0 auto;width:auto;margin-left:auto}
body .f-topbar .f-language-switcher {display:block;color:#fff;min-width:108px}
body .f-topbar .f-language-switcher select {color:inherit;background:transparent;border:0;font-size:12px;min-height:34px;min-width:108px}
body .f-topbar .f-language-switcher select option {color:#153248;background:#fff}
body .f-topbar .f-select-custom--trigger {min-height:34px;font-size:12px;gap:10px}
body .f-topbar .f-select-custom--trigger-icon {display:block;width:9px;height:9px}
body .f-topbar .f-select-custom--options {top:100%;bottom:auto;right:0;left:auto;min-width:160px;max-height:340px;overflow:auto;background:#fff;color:#153248;border:1px solid #dce7eb;border-radius:6px;box-shadow:0 10px 25px #15324820;z-index:100}
body .f-topbar .f-select-custom--option {color:#153248;padding:9px 14px;line-height:1.5;font-size:13px}
body .f-topbar .f-select-custom--option:is(:hover,.isActive) {color:#087c87;background:#eef6f7}
@media(max-width:1023px){
 body .f-header .f-topbar {display:block!important}
 body .f-topbar .f-topbar__inner {display:flex;min-height:36px;padding-block:0;gap:8px}
 body .f-topbar .f-topbar__left {display:none}
 body .f-topbar .f-topbar__center {display:block;font-size:10px;letter-spacing:.025em;line-height:1.3;flex:1;min-width:0;text-align:left;white-space:normal}
 body .f-topbar .f-topbar__right {display:flex;flex:none;width:auto}
}
/* Contact methods: a consistent icon, label and value in each card. */
body#f-theme :is(.rb-home-contact,.rbp-contact-form) .f-info-box-frid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:26px}
body#f-theme :is(.rb-home-contact,.rbp-contact-form) .f-info-box-frid .f-info-box--style-2 {position:relative;display:block;width:auto;min-width:0;padding:18px 14px 18px 58px;margin:0;background:#f5f9fa;border:1px solid #dde8ec;border-radius:10px;transition:background .2s,border-color .2s;min-height:94px}
body#f-theme :is(.rb-home-contact,.rbp-contact-form) .f-info-box-frid .f-info-box--style-2:hover {background:#eef6f7;border-color:#9dc5ca}
body#f-theme :is(.rb-home-contact,.rbp-contact-form) .f-info-box-frid .f-info-box__step {display:none}
body#f-theme :is(.rb-home-contact,.rbp-contact-form) .f-info-box-frid .f-info-box__step-title {font-size:12px;font-weight:500;line-height:1.4;color:#58717d;margin:0 0 6px;padding:0}
body#f-theme :is(.rb-home-contact,.rbp-contact-form) .f-info-box-frid .f-info-box__content {font-size:14px;line-height:1.5;margin:0}
body#f-theme :is(.rb-home-contact,.rbp-contact-form) .f-info-box-frid .rb-contact-line {display:block;margin:0;line-height:1.5}
body#f-theme :is(.rb-home-contact,.rbp-contact-form) .f-info-box-frid .rb-contact-icon {position:absolute;top:20px;left:16px;width:28px;height:28px;padding:4px;color:#087c87;margin:0;box-sizing:content-box;background:#e4f0f2;border-radius:9px}
body#f-theme :is(.rb-home-contact,.rbp-contact-form) .f-info-box-frid .rb-contact-line a {color:#153248;text-decoration:none;font-family:inherit;font-size:14px;font-weight:550;line-height:1.5;overflow-wrap:anywhere}
body#f-theme :is(.rb-home-contact,.rbp-contact-form) .f-info-box-frid .rb-contact-line a::before,
body#f-theme :is(.rb-home-contact,.rbp-contact-form) .f-info-box-frid .rb-contact-line a::after {display:none}
body#f-theme :is(.rb-home-contact,.rbp-contact-form) .f-info-box-frid .rb-contact-line a:hover {color:#087c87;text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:1px}
body#f-theme :is(.rb-home-contact,.rbp-contact-form) .f-info-box-frid .rb-contact-line a:focus-visible {outline:2px solid #147d87;outline-offset:4px;border-radius:2px}
@media(max-width:1199px){
 body#f-theme :is(.rb-home-contact,.rbp-contact-form) .f-info-box-frid {grid-template-columns:minmax(0,1fr)}
}
@media(max-width:767px){
 body#f-theme :is(.rb-home-contact,.rbp-contact-form) .f-info-box-frid {gap:10px}
 body#f-theme :is(.rb-home-contact,.rbp-contact-form) .f-info-box-frid .f-info-box--style-2 {padding:15px 16px 15px 64px;min-height:82px}
 body#f-theme :is(.rb-home-contact,.rbp-contact-form) .f-info-box-frid .rb-contact-icon {left:16px;top:19px}
 body .f-topbar .f-topbar__center {max-width:160px}
}

/* ReliaBulkBag header polish: keep label and disclosure arrow in one visual hit area. */
@media (min-width: 1024px) {
  body .f-header__menu .f-menu__item--has-submenu > .rb-nav-parent-link {
    padding-right: 6px;
    border-radius: 5px 0 0 5px;
  }

  body .f-header__menu .f-menu__item--has-submenu > .rb-nav-arrow-button {
    align-self: stretch;
    min-height: 0;
    margin-left: 0;
    padding: 0 10px 0 4px;
    border-radius: 0 5px 5px 0;
    transition: color .18s ease, background-color .18s ease;
  }

  body .f-header__menu .f-menu__item--has-submenu:is(.f-menu__item--active, .rb-nav-open, :focus-within) > :is(.rb-nav-parent-link, .rb-nav-arrow-button),
  body .f-header__menu .f-menu__item--has-submenu:has(> .rb-nav-parent-link:hover, > .rb-nav-arrow-button:hover) > :is(.rb-nav-parent-link, .rb-nav-arrow-button) {
    color: #087b85;
    background: #eef6f7;
  }
}

/* Let the language label and arrow size to their content instead of opposite edges of a 108px box. */
body .f-topbar .f-language-switcher,
body .f-topbar .f-language-switcher form,
body .f-topbar .f-language-switcher f-select-component,
body .f-topbar .f-language-switcher f-switch-language-form,
body .f-topbar .f-language-switcher .f-select-custom {
  width: auto;
  min-width: 0;
}

body .f-topbar .f-language-switcher select {
  min-width: 0;
}

body .f-topbar .f-language-switcher .f-select-custom--trigger {
  width: auto;
  min-width: 0;
  justify-content: flex-start;
  gap: 6px;
  padding-inline: 2px;
}
/* End ReliaBulkBag header polish. */
