/* #12.8 — Header location slot */
.ldb-header-location-col {
  position: relative;
}

#ldb-header-location-slot {
  display: flex;
  align-items: center;
  min-height: 36px;
}

.ldb-header-location__trigger {
  display: inline-flex;
  align-items: flex-start;
  gap: 7px;
  max-width: 100%;
  padding: 4px 8px;
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
  transition: background-color 0.15s ease;
}

.ldb-header-location__trigger:hover,
.ldb-header-location__trigger:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.ldb-header-location__trigger.is-empty {
  align-items: center;
  color: rgba(255, 255, 255, 0.96);
}

.ldb-header-location__trigger .fa {
  color: var(--ldb-gold, #d4af68);
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 14px;
}

.ldb-header-location__trigger.is-empty .fa {
  margin-top: 0;
}

.ldb-header-location__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
  max-width: 240px;
}

.ldb-header-location__line {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.ldb-header-location__line--primary {
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.ldb-header-location__line--city {
  color: rgba(255, 255, 255, 0.92);
  font-size: 11px;
  font-weight: 500;
}

.ldb-header-location__trigger:hover .ldb-header-location__line--primary,
.ldb-header-location__trigger:focus-visible .ldb-header-location__line--primary,
.ldb-header-location__trigger:hover .ldb-header-location__line--city,
.ldb-header-location__trigger:focus-visible .ldb-header-location__line--city {
  color: #fff;
}

.ldb-header-location__trigger:hover .fa,
.ldb-header-location__trigger:focus-visible .fa {
  color: #fff;
}

.ldb-header-location__panel {
  position: absolute;
  z-index: 1200;
  left: 0;
  top: calc(100% + 8px);
  min-width: 292px;
}

.ldb-header-location__panel::before {
  content: "";
  position: absolute;
  top: -6px;
  left: 18px;
  width: 12px;
  height: 12px;
  background: #fcfefc;
  border-top: 1px solid #e3ebe6;
  border-left: 1px solid #e3ebe6;
  transform: rotate(45deg);
}

.ldb-header-location__panel-inner {
  position: relative;
  padding: 16px;
  background: linear-gradient(180deg, #fcfefc 0%, #f6faf7 100%);
  border: 1px solid #e3ebe6;
  border-radius: 14px;
  box-shadow: 0 10px 28px rgba(30, 57, 42, 0.14);
}

.ldb-header-location__panel-title {
  margin: 0 0 12px;
}

.ldb-header-location__form {
  margin: 0;
}

.ldb-header-location__form-row.ldb-pdp__shipping-form {
  margin-bottom: 0;
}

header#site-header .ldb-header-location__panel .ldb-pdp__shipping-input {
  flex: 1 1 auto;
  max-width: none;
  min-width: 0;
  width: auto;
  height: 44px;
  border-color: #cfd9d3;
}

header#site-header .ldb-header-location__panel .ldb-pdp__shipping-btn {
  flex: 0 0 auto;
  min-width: 64px;
  height: 44px;
  padding: 0 18px;
  border: 0 !important;
  background: var(--ldb-gold, #d4af68) !important;
  color: #fff !important;
  box-shadow: none !important;
  -webkit-appearance: none;
  appearance: none;
}

header#site-header .ldb-header-location__panel .ldb-pdp__shipping-btn:hover,
header#site-header .ldb-header-location__panel .ldb-pdp__shipping-btn:focus-visible {
  background: #c4a058 !important;
  color: #fff !important;
}

header#site-header .ldb-header-location__panel .ldb-pdp__shipping-btn-icon {
  display: none;
}

header#site-header .ldb-header-location__panel .ldb-pdp__shipping-btn-label {
  display: inline;
}

.ldb-header-location__form.has-error .ldb-pdp__shipping-input {
  border-color: #c95c5c !important;
  box-shadow: 0 0 0 3px rgba(201, 92, 92, 0.12) !important;
}

.ldb-header-location__error {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.35;
  color: #9b2c2c;
}

.ldb-header-location__backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000045;
  border: 0;
  margin: 0;
  padding: 0;
  background: rgba(15, 28, 21, 0.42);
}

.ldb-header-location__backdrop[hidden] {
  display: none !important;
}

@media (max-width: 991px) {
  .ldb-header-location-col {
    display: none !important;
  }
}

@media (max-width: 767px) {
  header#site-header,
  header#site-header > .container,
  header#site-header .row.flexwrap991,
  .ldb-header-location-col,
  #ldb-header-location-slot {
    overflow: visible !important;
  }

  .ldb-header-location-col {
    display: flex !important;
    order: 10;
    flex: 1 1 100%;
    width: 100%;
    max-width: none;
    min-height: 0;
    padding: 0 2px 2px !important;
    margin: 0;
  }

  #ldb-header-location-slot {
    position: relative;
    min-height: 0;
    width: 100%;
  }

  #ldb-header-location-slot:not(.is-ready) {
    display: none !important;
  }

  .ldb-header-location__trigger {
    align-items: center;
    width: 100%;
    padding: 2px 6px;
    gap: 6px;
  }

  .ldb-header-location__trigger .fa {
    font-size: 12px;
    margin-top: 0;
  }

  .ldb-header-location__text {
    flex-direction: row;
    align-items: center;
    gap: 0;
    max-width: none;
    flex: 1 1 auto;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .ldb-header-location__line {
    display: inline;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
  }

  .ldb-header-location__line--primary,
  .ldb-header-location__line--city {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
  }

  .ldb-header-location__line--city::before {
    content: " · ";
    font-weight: 500;
    opacity: 0.9;
  }

  .ldb-header-location__panel {
    position: absolute;
    z-index: 1000040;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    bottom: auto;
    min-width: 0;
  }

  .ldb-header-location__panel.is-mobile-portal {
    position: fixed;
    z-index: 1000050;
    right: auto;
    bottom: auto;
  }

  body.ldb-header-location-panel-open header#site-header {
    z-index: 1000048 !important;
  }

  header#site-header .ldb-header-location__panel .ldb-pdp__shipping-btn-icon {
    display: inline-block;
  }

  header#site-header .ldb-header-location__panel .ldb-pdp__shipping-btn-label {
    display: none;
  }

  header#site-header .ldb-header-location__panel .ldb-pdp__shipping-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
  }

  .ldb-header-location__panel::before {
    display: block;
    left: 16px;
  }
}
