/* Header utility rail (4C) + signed-out login dropdown (5A / 5B) */

.customheader .toplogobar {
  float: left;
  width: 100%;
  background: #f5f5f5;
  padding: 15px 0;
  position: relative;
  z-index: 20;
}

.customheader .toplogobar .hdr-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding-left: 22px;
  padding-right: 22px;
}

.customheader .hdr-topbar .headerlogo {
  flex: none;
  margin: 0;
}

.customheader .hdr-topbar .headerlogo img {
  max-height: 56px;
  width: auto;
  height: auto;
  display: block;
}

.hdr-rail {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.hdr-slot {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 20px;
  text-decoration: none;
  color: inherit;
  flex: none;
}

.hdr-slot:hover,
.hdr-slot:focus {
  background: #ebeff2;
  text-decoration: none;
  color: inherit;
}

.hdr-slot-chat {
  gap: 9px;
}

.hdr-avatar {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  border-radius: 50%;
  background: #dde3e8;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  overflow: hidden;
}

.customheader .hdr-avatar img,
.hdr-avatar .hdr-avatar-img {
  width: 34px !important;
  height: 34px !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center center;
  border-radius: 50%;
  display: block;
  border: 0;
}

.hdr-slot-copy {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hdr-slot-kicker {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #1d2429;
  text-transform: uppercase;
  line-height: 1.2;
}

.hdr-slot-sub {
  font-size: 11px;
  color: #6a747d;
  line-height: 1.2;
  white-space: nowrap;
}

.hdr-divider {
  width: 1px;
  height: 42px;
  background: #dcdcdc;
  flex: none;
}

.hdr-login-dd,
.acct-dd.profile-link-header {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  z-index: 1100;
  margin: 0;
  cursor: default;
}

.hdr-account-box {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: 14px;
  border: 1px solid #c9ced3;
  background: #fff;
  padding: 9px 14px;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  cursor: pointer;
  border-radius: 0;
  box-shadow: none;
  appearance: none;
  -webkit-appearance: none;
  line-height: 1.2;
}

.hdr-login-dd.is-open .hdr-account-box,
.hdr-account-box:hover,
.hdr-account-box:focus {
  border-color: #204e75;
  background: #eef3f8;
}

.hdr-login-label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #204e75;
  text-transform: uppercase;
}

.hdr-account-sep {
  font-size: 12.5px;
  color: #c9ced3;
  line-height: 1;
}

.hdr-login-chevron {
  display: flex;
  align-items: center;
  margin-left: 2px;
}

.hdr-cart {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-left: 8px;
  text-decoration: none;
  background: #204e75;
  padding: 10px 15px;
  flex: none;
}

.hdr-cart:hover,
.hdr-cart:focus {
  background: #163854;
  text-decoration: none;
}

.hdr-cart-icon {
  position: relative;
  display: flex;
}

.hdr-cart-badge {
  position: absolute;
  top: -6px;
  right: -9px;
  font-size: 9.5px;
  font-weight: 700;
  color: #fff;
  background: #e95d18;
  padding: 1px 5px;
  line-height: 1.3;
  border-radius: 0;
}

.hdr-cart-label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #fff;
  text-transform: uppercase;
}

.hdr-login-panel {
  position: absolute;
  top: 100%;
  right: 0;
  width: 320px;
  background: #fff;
  border: 1px solid #204e75;
  border-radius: 0;
  box-shadow: 0 10px 26px rgba(20, 40, 60, 0.24);
  z-index: 1101;
  text-align: left;
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-2px);
  transition: opacity 120ms ease-out, transform 120ms ease-out, visibility 120ms ease-out;
}

.hdr-login-dd.is-open .hdr-login-panel {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.hdr-login-strip {
  background: #204e75;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hdr-login-strip-title {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: #fff;
  text-transform: uppercase;
}

.hdr-login-form {
  padding: 16px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
}

.hdr-login-form.has-error {
  padding-top: 14px;
}

.hdr-login-error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #fdeceb;
  border-left: 3px solid #c8341c;
  padding: 9px 10px;
}

.hdr-login-error svg {
  flex: none;
  margin-top: 1px;
}

.hdr-login-error-text {
  font-size: 12px;
  line-height: 1.4;
  color: #8f2718;
}

.hdr-login-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin: 0;
}

.hdr-login-field .form-group {
  margin: 0;
}

.hdr-login-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #26313a;
}

.hdr-login-input,
.hdr-login-form input[type="email"],
.hdr-login-form input[type="password"],
.hdr-login-form input[type="text"] {
  font-family: inherit;
  font-size: 13.5px;
  color: #26313a;
  padding: 9px 10px;
  border: 1px solid #c9ced3;
  background: #fff;
  border-radius: 0;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  box-shadow: none;
  height: auto;
}

.hdr-login-input:focus,
.hdr-login-form input[type="email"]:focus,
.hdr-login-form input[type="password"]:focus,
.hdr-login-form input[type="text"]:focus {
  border-color: #204e75;
  box-shadow: 0 0 0 2px #eef3f8;
  outline: none;
}

.hdr-login-field.is-invalid .hdr-login-input,
.hdr-login-form input.is-invalid {
  border-color: #c8341c;
}

.hdr-login-field.is-invalid .hdr-login-input:focus,
.hdr-login-form input.is-invalid:focus {
  border-color: #c8341c;
  box-shadow: 0 0 0 2px #fdeceb;
}

.hdr-login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hdr-login-remember {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #55606a;
  cursor: pointer;
  font-weight: 400;
  margin: 0;
}

.hdr-login-remember input {
  width: 14px;
  height: 14px;
  margin: 0;
  accent-color: #204e75;
  flex: none;
}

.hdr-login-forgot {
  font-size: 12px;
  font-weight: 700;
  color: #204e75;
  text-decoration: none;
  white-space: nowrap;
}

.hdr-login-forgot:hover,
.hdr-login-forgot:focus {
  color: #204e75;
  text-decoration: underline;
}

.hdr-login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  background: #e95d18;
  color: #fff;
  border: 0;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 12px;
  cursor: pointer;
  font-family: inherit;
  text-transform: uppercase;
  border-radius: 0;
  line-height: 1.2;
}

.hdr-login-submit:hover,
.hdr-login-submit:focus {
  background: #cf4d0d;
  color: #fff;
}

.hdr-login-submit.is-busy,
.hdr-login-submit:disabled {
  background: #f5b48f;
  color: #fff;
  cursor: wait;
}

.hdr-login-spinner {
  display: none;
  animation: hdr-login-spin 0.8s linear infinite;
}

.hdr-login-submit.is-busy .hdr-login-spinner {
  display: block;
}

.hdr-login-submit.is-busy .hdr-login-arrow {
  display: none;
}

@keyframes hdr-login-spin {
  to {
    transform: rotate(360deg);
  }
}

.hdr-login-register {
  border-top: 1px solid #e6e9ec;
  background: #f7f9fb;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.hdr-login-register-copy {
  font-size: 12.5px;
  color: #55606a;
  line-height: 1.45;
}

.hdr-login-register-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  text-decoration: none;
  background: #fff;
  border: 1px solid #c9ced3;
  color: #204e75;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 10px 12px;
  text-transform: uppercase;
}

.hdr-login-register-btn:hover,
.hdr-login-register-btn:focus {
  background: #204e75;
  border-color: #204e75;
  color: #fff;
  text-decoration: none;
}

.hdr-login-footer {
  border-top: 1px solid #e6e9ec;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hdr-login-footer svg {
  flex: none;
}

.hdr-login-footer-copy {
  font-size: 11.5px;
  color: #6a747d;
  line-height: 1.45;
}

.hdr-login-footer-copy a {
  color: #204e75;
  font-weight: 700;
}

.hdr-login-footer-copy a:hover,
.hdr-login-footer-copy a:focus {
  color: #163854;
}

.hdr-login-trigger:focus,
.hdr-slot:focus,
.hdr-cart:focus,
.hdr-login-submit:focus,
.hdr-login-register-btn:focus,
.hdr-login-forgot:focus,
.hdr-login-footer-copy a:focus {
  outline: 2px solid #204e75;
  outline-offset: 2px;
}

.customheader .customnavbar {
  background: #204e75;
  border-bottom: 2px solid #859fb3;
  min-height: 44px;
}

@media (max-width: 900px) {
  .customheader .toplogobar {
    padding: 10px 0;
  }

  .customheader .toplogobar .hdr-topbar {
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 0;
    padding-left: 12px;
    padding-right: 12px;
  }

  .customheader .hdr-topbar .headerlogo {
    flex: 1 1 100%;
    float: none;
    width: auto;
    max-width: 100%;
    text-align: center;
  }

  .customheader .hdr-topbar .headerlogo img {
    max-height: 48px;
    margin: 0 auto;
  }

  .customheader .hdr-topbar .hdr-rail {
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px;
  }

  .hdr-slot-copy {
    display: none;
  }

  .hdr-slot {
    padding: 0 10px;
    height: 42px;
  }

  .hdr-divider {
    display: none;
  }

  .hdr-account-box,
  .acct-dd-trigger {
    margin-left: 0;
  }

  .acct-dd-trigger-copy {
    display: none;
  }

  .acct-dd-trigger {
    padding: 7px 10px;
    gap: 6px;
  }

  .hdr-cart {
    margin-left: 0;
    padding: 9px 12px;
  }

  .hdr-login-panel {
    position: fixed;
    left: 8px;
    right: 8px;
    width: auto;
    top: 8px;
    max-height: calc(100dvh - 16px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .hdr-login-dd.is-open .hdr-login-panel {
    transform: none;
  }
}

@media (max-width: 480px) {
  .customheader .toplogobar .hdr-topbar {
    padding-left: 8px;
    padding-right: 8px;
  }

  .hdr-login-label,
  .hdr-account-sep,
  .hdr-login-chevron {
    display: none;
  }

  .hdr-account-box {
    padding: 8px 10px;
  }

  .hdr-cart-label {
    display: none;
  }

  .hdr-cart {
    padding: 10px 12px;
  }

  .hdr-slot {
    padding: 0 8px;
  }
}
