/* Header "Deliver to" ZIP picker (inc/header-zip.php, assets/js/header-zip.js). */
.bwo-hzip,
.bwo-hzip-pop {
  font-family: Outfit, sans-serif;
}
/* Astra styles every <button>; this one is a header link, not a filled button. */
.bwo-hzip,
.bwo-hzip:hover,
.bwo-hzip:focus {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 4px 8px;
  border: 1px solid transparent !important;
  border-radius: 8px;
  background: transparent !important;
  box-shadow: none !important;
  color: #111 !important;
  font-size: inherit;
  text-align: left;
  text-transform: none;
  letter-spacing: normal;
  line-height: 1.2;
  cursor: pointer;
}
.bwo-hzip:hover,
.bwo-hzip:focus-visible {
  border-color: #e0e0e0 !important;
  background: #fafafa !important;
}
.bwo-hzip.is-open {
  border-color: #d01010 !important;
  background: #fff5f5 !important;
}
.bwo-hzip__pin,
.bwo-hzip__chev {
  flex: none;
  display: inline-block;
  background-color: currentColor;
  -webkit-mask: var(--bwo-icon) center / contain no-repeat;
  mask: var(--bwo-icon) center / contain no-repeat;
}
.bwo-hzip__pin { --bwo-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 22s7-6.1 7-12a7 7 0 1 0-14 0c0 5.9 7 12 7 12z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E"); width: 18px; height: 22px; color: #d01010; }
.bwo-hzip__chev { --bwo-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); width: 12px; height: 12px; color: #333; transition: transform .15s; }
.bwo-hzip.is-open .bwo-hzip__chev { transform: rotate(180deg); }
.bwo-hzip__text { display: flex; flex-direction: column; min-width: 0; }
.bwo-hzip__label { font-size: 12px; font-weight: 400; color: #666; }
.bwo-hzip__value { display: flex; min-width: 0; font-size: 16px; font-weight: 500; white-space: nowrap; }
.bwo-hzip:hover .bwo-hzip__value { text-decoration: underline; }

/* #zip-location keeps its id for older scripts; reset the old header rules on it. */
.bwo-hzip #zip-location,
.bwo-hzip .bwo-hzip__city {
  display: inline-block;
  max-width: 150px !important;
  margin: 0;
  top: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bwo-hzip__empty { display: none; color: #d01010; }
.bwo-hzip.is-empty .bwo-hzip__city,
.bwo-hzip.is-empty .bwo-hzip__zip { display: none !important; }
.bwo-hzip.is-empty .bwo-hzip__empty { display: inline; }

/* Popover (desktop) */
.bwo-hzip-pop {
  position: absolute;
  z-index: 100000;
  width: 320px;
  max-width: calc(100vw - 32px);
  padding: 16px 18px;
  border: 1px solid #ececec;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  color: #111;
}
.bwo-hzip-pop[hidden],
.bwo-hzip-backdrop[hidden] { display: none !important; }
.bwo-hzip-pop__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bwo-hzip-pop__head h3 { margin: 0; font-family: Outfit, sans-serif; font-size: 18px; font-weight: 500; color: #111; }
.bwo-hzip-pop__close {
  padding: 0 4px;
  border: 0;
  background: none;
  color: #111;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}
.bwo-hzip-pop__close:hover,
.bwo-hzip-pop__close:focus { background: none; color: #d01010; }
.bwo-hzip-pop__note { margin: 4px 0 10px; color: #555; font-size: 14px; line-height: 1.4; }
.bwo-hzip-pop__current {
  margin: 0 0 10px;
  padding: 6px 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border: 0;
  border-radius: 6px;
  background: #f1f9f3;
  font-size: 14px;
}
.bwo-hzip-pop strong 
{
	font-weight: 500;
}
.bwo-hzip-pop__current::before { content: "\2713"; margin-right: 6px; color: #1a8a3c; font-weight: 700; }
.bwo-hzip-pop__form label { display: block; margin-bottom: 6px; font-size: 16px; font-weight: 500; }
.bwo-hzip-pop__row { display: flex; gap: 8px; }
.bwo-hzip-pop__row input {
    min-width: 0;
    height: 40px;
    padding: 0 16px;
    border: 1px solid #d6d6d6;
    border-radius: 30px;
    font-family: inherit;
    font-size: 14px;
}
.bwo-hzip-pop__row input:focus,
.bwo-hzip-pop__row input:focus-visible {
  outline: none !important;
  border: 1px solid #d01010 !important;
  box-shadow: 0 0 0 3px rgba(208, 16, 16, .12);
}
.bwo-hzip-pop__submit {
  flex: none;
  height: 40px;
  min-height: 0;
  padding: 0 16px !important; /* Astra's button padding made it twice the field's height */
  border-radius: 999px;
  color: #fff;
  font-family: inherit;
  font-size: 14px !important;
  font-weight: 500;
  line-height: 1 !important;
  text-transform: none;
  cursor: pointer;
}
.bwo-hzip-pop__msg { margin: 8px 0 0; color: #d01010; font-size: 14px; }
.bwo-hzip-pop__msg:empty { display: none; }
.bwo-hzip-pop__locate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 0;
  border: 0;
  background: none;
  color: #d01010;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  text-transform: none;
  cursor: pointer;
}
.bwo-hzip-pop__locate::before { content: "\2316"; font-size: 15px; text-decoration: none; }
.bwo-hzip-pop__locate:hover,
.bwo-hzip-pop__locate:focus { background: none; color: #a80c0c; }
.bwo-hzip-pop__locate:hover { text-decoration: underline; }
.bwo-hzip-pop button:disabled { opacity: .6; cursor: default; }

/* Phones and tablets: strip under the header, form as a bottom sheet. */
.bwo-hzip-strip { display: none; }
@media (max-width: 1023px) {
  .bwo-hzip--header { display: none !important; }
  .bwo-hzip-strip {
    display: block;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    background: #fff;
  }
  .bwo-hzip--strip {
    display: flex;
    width: 100%;
    padding: 8px 16px;
    border: 0;
    border-radius: 0;
  }
  .bwo-hzip--strip:hover,
  .bwo-hzip--strip.is-open { background: #fafafa; }
  .bwo-hzip--strip .bwo-hzip__text { flex: 1; flex-direction: row; align-items: baseline; gap: 6px; }
  .bwo-hzip--strip .bwo-hzip__label { font-size: 16px; color: #333; }
  .bwo-hzip--strip .bwo-hzip__city { max-width: 45vw !important; }
  .bwo-hzip--strip:hover .bwo-hzip__value { text-decoration: none; }

  .bwo-hzip-backdrop {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(17, 17, 17, .45);
  }
  .bwo-hzip-pop {
    position: fixed;
    top: auto !important;
    left: 0 !important;
    right: 0;
    bottom: 0;
    width: auto;
    max-width: none;
    padding: 24px 18px calc(18px + env(safe-area-inset-bottom, 0px));
    border: 0;
	z-index: 9999999999;
    border-radius: 20px 20px 0 0;
  }
  .bwo-hzip-pop::before {
    content: "";
    position: absolute;
    top: 10px;
    left: 50%;
    width: 40px;
    height: 4px;
    margin-left: -20px;
    border-radius: 2px;
    background: #d6d6d6;
  }
  .bwo-hzip-pop__row { flex-direction: column; }
  .bwo-hzip-pop__locate { display: flex; justify-content: center; width: 100%; }
}
@media screen and (max-width:767px)
{
	p.bwo-hzip-pop__current strong {
		font-weight: 500;
	}
}

/* Phones: page behind the open ZIP sheet doesn't scroll (header-zip.js). */
html.bwo-hzip-locked,
html.bwo-hzip-locked body {
  overflow: hidden !important;
  overscroll-behavior: none;
}
