/* Welco GM top bar — isolated component styles */
.wgm-topbar {
  --wgm-topbar-bg: #12364f;
  --wgm-topbar-bg-deep: #12364f;
  --wgm-topbar-text: #f8fbfd;
  --wgm-topbar-muted: #bcd0de;
  --wgm-topbar-accent: #ffc815;
  --wgm-topbar-border: rgba(255, 255, 255, 0.16);
  position: relative;
  z-index: 1100;
  min-height: 58px;
  padding: 9px 0;
  color: var(--wgm-topbar-text);
  background: var(--wgm-topbar-bg);
  border-bottom: 1px solid rgba(5, 22, 34, 0.25);
  box-shadow: 0 5px 20px rgba(9, 31, 47, 0.14);
}

/*
 * Legacy-collision guard.
 * The existing site uses highly specific selectors under
 * `.header .top-header`; keep these component-scoped overrides stronger.
 */
.header .top-header.wgm-topbar {
  min-height: 58px;
  padding: 9px 0;
  color: var(--wgm-topbar-text);
  background: var(--wgm-topbar-bg);
  border-bottom: 1px solid rgba(5, 22, 34, 0.25);
}

.header .top-header.wgm-topbar .wgm-topbar__phone-item {
  position: static;
  display: flex;
  align-items: center;
  min-height: 40px;
  margin: 0;
  padding: 0;
  gap: 10px;
}

.header .top-header.wgm-topbar .wgm-topbar__phone-icon i {
  position: static;
  display: inline-block;
  width: auto;
  height: auto;
  margin: 0;
  color: #173b54;
  font-size: 17px;
  line-height: 1;
}

.header .top-header.wgm-topbar .wgm-topbar__search {
  width: 100%;
  height: 40px;
  padding: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--wgm-topbar-border);
  border-radius: 5px;
}

.header .top-header.wgm-topbar .wgm-topbar__search-button {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 45px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--wgm-topbar-accent);
  border-radius: 0 5px 5px 0;
}

.header .top-header.wgm-topbar .wgm-topbar__login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  height: 40px;
  padding: 0 15px;
  color: #fff !important;
  line-height: 1;
  background: transparent;
  border: 1px solid rgba(242, 181, 68, 0.9);
  border-radius: 5px;
}

.header .top-header.wgm-topbar .wgm-topbar__login-link i {
  position: static;
  margin: 0;
  color: var(--wgm-topbar-accent);
  font-size: 20px;
}

.wgm-topbar::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  pointer-events: none;
  content: "";
  background: rgba(255, 200, 21, 0.72);
  opacity: 0.65;
}

.wgm-topbar .wgm-topbar__row {
  min-height: 40px;
  margin-right: -8px;
  margin-left: -8px;
}

.wgm-topbar .wgm-topbar__contact-column,
.wgm-topbar .wgm-topbar__tools-column {
  padding-right: 8px;
  padding-left: 8px;
}

.wgm-topbar .wgm-topbar__contact,
.wgm-topbar .wgm-topbar__phone-list,
.wgm-topbar .wgm-topbar__phone-item,
.wgm-topbar .wgm-topbar__network,
.wgm-topbar .wgm-topbar__search-form {
  margin: 0;
  padding: 0;
}

.wgm-topbar .wgm-topbar__phone-list,
.wgm-topbar .wgm-topbar__phone-item {
  list-style: none;
}

.wgm-topbar .wgm-topbar__phone-item {
  display: flex;
  align-items: center;
  min-height: 40px;
  gap: 10px;
}

.wgm-topbar .wgm-topbar__phone-icon {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  color: #173b54;
  font-size: 17px;
  background: var(--wgm-topbar-accent);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(5, 24, 37, 0.2);
}

.wgm-topbar .wgm-topbar__phone-label {
  color: var(--wgm-topbar-muted);
  font-family: "Lato", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.wgm-topbar .wgm-topbar__phone-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.wgm-topbar .wgm-topbar__phone-links a {
  color: var(--wgm-topbar-text) !important;
  font-family: "Lato", Arial, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color 160ms ease;
}

.wgm-topbar .wgm-topbar__phone-links a:hover,
.wgm-topbar .wgm-topbar__phone-links a:focus {
  color: var(--wgm-topbar-accent) !important;
  text-decoration: none;
}

.wgm-topbar .wgm-topbar__separator {
  width: 1px;
  height: 15px;
  background: rgba(255, 255, 255, 0.3);
}

.wgm-topbar .wgm-topbar__tools {
  min-height: 40px;
  gap: 12px;
}

.wgm-topbar .wgm-topbar__network {
  flex: 1 1 auto;
  max-width: 355px;
}

.wgm-topbar .wgm-topbar__search {
  position: relative;
  display: flex;
  overflow: visible;
  width: 100%;
  height: 40px;
  padding: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--wgm-topbar-border);
  border-radius: 5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.wgm-topbar .wgm-topbar__search:focus-within {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(242, 181, 68, 0.85);
  box-shadow: 0 0 0 3px rgba(242, 181, 68, 0.14);
}

.wgm-topbar .wgm-topbar__search-input {
  width: 100%;
  height: 38px;
  padding: 0 50px 0 15px;
  color: #fff;
  font-family: "Lato", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  background: transparent;
  border: 0;
  outline: 0;
}

.wgm-topbar .wgm-topbar__search-input::placeholder {
  color: #d3e0e8;
  opacity: 0.88;
}

.wgm-topbar .wgm-topbar__search-button {
  position: absolute;
  top: -1px;
  right: -1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 40px;
  padding: 0;
  color: #173b54;
  font-size: 15px;
  cursor: pointer;
  background: var(--wgm-topbar-accent);
  border: 1px solid var(--wgm-topbar-accent);
  border-radius: 0 5px 5px 0;
  transition: background 160ms ease, color 160ms ease;
}

.wgm-topbar .wgm-topbar__search-button:hover,
.wgm-topbar .wgm-topbar__search-button:focus {
  color: #fff;
  background: #d79620;
  border-color: #d79620;
  outline: 0;
}

.wgm-topbar .wgm-topbar__suggestions {
  top: calc(100% + 6px);
  overflow: hidden;
  background: #fff;
  border: 1px solid #d9e1e7;
  border-radius: 5px;
  box-shadow: 0 16px 36px rgba(7, 28, 43, 0.2);
}

.wgm-topbar .wgm-topbar__login {
  flex: 0 0 auto;
}

.wgm-topbar .wgm-topbar__login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 108px;
  height: 40px;
  padding: 0 15px;
  color: #fff !important;
  font-family: "Lato", Arial, sans-serif;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  background: transparent;
  border: 1px solid rgba(242, 181, 68, 0.9);
  border-radius: 5px;
  gap: 8px;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease;
}

.wgm-topbar .wgm-topbar__login-link i {
  color: var(--wgm-topbar-accent);
  font-size: 20px;
}

.wgm-topbar .wgm-topbar__login-link:hover,
.wgm-topbar .wgm-topbar__login-link:focus {
  color: #173b54 !important;
  background: var(--wgm-topbar-accent);
  border-color: var(--wgm-topbar-accent);
  text-decoration: none;
}

.wgm-topbar .wgm-topbar__login-link:hover i,
.wgm-topbar .wgm-topbar__login-link:focus i {
  color: #173b54;
}

.wgm-topbar a:focus-visible,
.wgm-topbar button:focus-visible,
.wgm-topbar input:focus-visible {
  outline: 3px solid rgba(242, 181, 68, 0.55);
  outline-offset: 2px;
}

@media (max-width: 1199px) {
  .wgm-topbar .wgm-topbar__phone-label {
    display: none;
  }

  .wgm-topbar .wgm-topbar__phone-links {
    gap: 7px;
  }

  .wgm-topbar .wgm-topbar__phone-links a {
    font-size: 12px;
  }

  .wgm-topbar .wgm-topbar__network {
    max-width: 290px;
  }
}

@media (max-width: 991px) {
  .wgm-topbar .wgm-topbar__phone-links a:last-child,
  .wgm-topbar .wgm-topbar__phone-links .wgm-topbar__separator:last-of-type {
    display: none;
  }

  .wgm-topbar .wgm-topbar__network {
    max-width: 230px;
  }
}

@media (max-width: 767px) {
  .wgm-topbar {
    padding: 8px 0;
  }

  .wgm-topbar .wgm-topbar__row {
    gap: 8px;
  }

  .wgm-topbar .wgm-topbar__phone-item,
  .wgm-topbar .wgm-topbar__tools {
    justify-content: center;
  }

  .wgm-topbar .wgm-topbar__phone-icon {
    width: 30px;
    height: 30px;
    font-size: 15px;
  }

  .wgm-topbar .wgm-topbar__phone-links a {
    font-size: 12px;
  }

  .wgm-topbar .wgm-topbar__network {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .wgm-topbar .wgm-topbar__phone-links a:nth-of-type(2),
  .wgm-topbar .wgm-topbar__phone-links .wgm-topbar__separator {
    display: none;
  }

  .wgm-topbar .wgm-topbar__search-input {
    font-size: 13px;
  }

  .wgm-topbar .wgm-topbar__login-link {
    min-width: 82px;
    padding: 0 11px;
  }
}
