@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100..900&display=swap");

.bby-pickup-selector {
  display: flex;
}

.bby-cart-pickup__box-row-button-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bby-pickup-selector__main-box {
  border: 1px solid rgba(0, 0, 0, 0.1);
  width: 100%;
  border-radius: 4px;
  padding: 16px;
  font-family: "Inter", sans-serif;
  background-color: #ffffff;
  position: relative;
  z-index: 5;
  border: 1px solid rgb(197, 200, 209);
  border-radius: 8px;
  gap: 16px;
  display: flex;
  flex-direction: column;
}

.bby-pickup-selector__main-box-top {
  display: flex;
  justify-content: space-between;
}

.bby-pickup-selector__main-box-heading {
  font-size: 16px;
  font-weight: 700;
  color: rgba(0, 61, 182, 1);
  margin-top: 0px;
  margin-bottom: 0px;
  letter-spacing: normal;
}

.bby-pickup-selector__main-box-subheading {
  letter-spacing: normal;
  letter-spacing: 0 !important;
  text-wrap: balance;
  display: block;
  line-height: 16px;
  color: #585858;
  font-family: Inter;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.bby-pickup-selector__main-box-button {
  background: #ffffff;
  border: 1px solid #003db6;
  border-radius: 4px;
  padding: 8px 16px;
  font-weight: 400;
  font-size: 14px;
  color: #003db6;
  cursor: pointer;
  transition:
    background-color 0.3s,
    color 0.3s,
    transform 0.1s;
  inline-size: max-content;
}

.bby-shipping-selector__main-box-button {
  background: #ffffff;
  border: 1px solid #003db6;
  border-radius: 4px;
  padding: 8px 16px;
  font-weight: 400;
  font-size: 14px;
  color: #003db6;
  cursor: pointer;
  transition:
    background-color 0.3s,
    color 0.3s,
    transform 0.1s;
  inline-size: max-content;
}

.bby-pickup-selector__main-box-button:hover {
  background-color: #003db6;
  color: white;
}

.bby-pickup-selector__main-box-button:focus {
  outline: none;
}

.bby-pickup-selector__main-box-button:active {
  background-color: #003db6;
  color: white;
  transform: scale(0.98);
}

.bby-pickup-selector__selected-store {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 5px;
  border-radius: 4px;
  border: 1px solid #e5e5e5;
}

.bby-pickup-selector__pickup-info {
  color: var(--Dark, #000);
  font-family: Inter;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: normal;
}

.bby-pickup-selector__store-pickup-time {
  color: var(--Dark, #000);
  font-family: Inter;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: normal;
}
.bby-pickup-selector__store-available-stock {
  color: var(--Foreground, #000);
  font-family: Inter;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  display: flex;
  padding: 4px 8px;
  align-items: flex-start;
  gap: 8px;
  border-radius: 500px;
  border: 1px solid #eddf4b;
  background: var(--Warning, #f5ee9e);
}

.bby-pickup-selector__pickup-intent-wrapper {
  margin-top: 10px;
}

.bb-hidden {
  display: none !important;
}

.bb-visibility-hidden {
  visibility: hidden;
  display: flex;
}

.bby-pickup-selector__modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bby-pickup-selector__modal-header-left {
  display: flex;
  gap: 16px;
  align-items: center;
}

.bby-pickup-selector__modal-title {
  margin-top: 0px;
  margin-bottom: 0px;
  font-size: 18px;
  font-weight: 500;
  font-family: "Inter", sans-serif;
  letter-spacing: normal;
}

.bby-pickup-selector__modal-close {
  background-color: inherit;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.bby-pickup-selector__modal-close:hover {
  background-color: #f0f0f0;
}

.bby-pickup-selector__modal-close:focus {
  outline: none;
}

.bby-pickup-selector__modal-close:active {
  background-color: #e0e0e0;
  transform: scale(0.95);
}

.bby-pickup-selector__modal-body {
  display: flex;
  position: relative;
  flex-direction: column;
  max-width: 350px;
  gap: 10px;
  height: 529px;
  margin-top: 15px;
}

.bby-pickup-selector__modal-stores {
  max-height: 404px;
  overflow-y: auto;
}

.bby-pickup-selector__modal-empty-stores {
  min-height: 292px;
  display: flex;
  align-items: center;
  word-break: break-all;
  text-align-last: center;
  text-align: justify;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  display: flex;
  height: 292px;
  flex-direction: column;
  justify-content: center;
  flex: 1 0 0;
  letter-spacing: normal;
}

.bby-pickup-selector__modal-empty-zip-code {
  min-height: 292px;
  display: flex;
  align-items: center;
  word-break: break-all;
  text-align-last: center;
  text-align: justify;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  display: flex;
  height: 292px;
  flex-direction: column;
  justify-content: center;
  flex: 1 0 0;
  letter-spacing: normal;
}

.bby-pickup-selector__modal-zip {
  height: 40px;
  padding-left: 16px;
  display: flex;
  width: 100%;
  outline: none;
  box-shadow: none;
  border-radius: 4px;
  border: 1px solid var(--Border, rgba(0, 0, 0, 0.1));
  color: var(--black-100, #000);
  font-family: Inter;
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;

  * ::placeholder {
    color: red;
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
  }
}

.bby-pickup-selector__modal-zip:focus {
  border-radius: 4px;
  border: 1px solid var(--Border, rgba(0, 0, 0, 0.1));
  background: var(--Background, #fff);
  box-shadow: 0px 0px 0px 2px rgba(0, 61, 182, 0.8);
  outline: none;
}

.bby-pickup-selector__modal-zip:focus
  + .bby-pickup-selector__modal-button-search {
  border-radius: 4px;
  background: var(--Accent, #003db6);
  justify-content: center;

  align-items: center;
}

.bby-pickup-selector__modal-zip:focus
  + .bby-pickup-selector__modal-button-search
  svg
  path {
  fill: white;
}

.bby-pickup-selector__modal-submit {
  width: 100%;
  min-height: 40px;
  color: #fff;
  background-color: #003db6;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 400;
  font-family: "Inter", sans-serif;
  transition:
    background-color 0.3s,
    transform 0.1s;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bby-pickup-selector__modal-submit:hover {
  background-color: #002f91;
}

.bby-pickup-selector__modal-submit:focus {
  outline: none;
}

.bb-brand-pickup-selector__modal-submit:active {
  background-color: #002f91;
  transform: scale(0.98);
}

.bby-pickup-selector__modal-store-item {
  display: flex;
  width: 100%;
  align-items: stretch;
  padding: 16px 16px 16px 0px;
  border-top: 1px solid transparent;
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.bby-pickup-selector__modal-store-item:has(input:checked) {
  box-sizing: border-box;
  border-radius: 8px;
  border: 1px solid var(--Border, rgba(0, 0, 0, 0.1));
  background: rgba(0, 61, 182, 0.05);
}

.bby-pickup-selector__radio {
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 8px;
  color: currentColor;
  border: 1px solid currentColor;
  margin: 0;
  padding: 0;
  display: grid;
  place-content: center;
  cursor: pointer;
  align-self: center;
}

.bby-pickup-selector__radio::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 4px;
  transform: scale(0);
  transition: 120ms transform ease-in-out;
  background-color: #003db6;
}

.bby-pickup-selector__radio:checked {
  border: 1px solid var(--Accent, #003db6);
}

.bby-pickup-selector__radio:checked::before {
  transform: scale(1);
}
.bby-pickup-selector__modal-store-details {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 4px;
}

.bby-pickup-selector__modal-store-address {
  font-size: 12px;
  color: #585858;
  font-family: "Inter", sans-serif;
  line-height: 1.7rem;
  letter-spacing: normal;
}
.bby-pickup-selector__modal-store-availability {
  font-size: 12px;
  color: #000;
  font-family: "Inter", sans-serif;
  line-height: normal;
  letter-spacing: normal;
}

.bby-pickup-selector__modal-store-name {
  font-size: 14px;
  font-weight: 600;
  font-family: "Inter", sans-serif;
  line-height: 1.7rem;
  letter-spacing: normal;
  text-wrap: balance;
}

.bby-pickup-selector__modal-store-title {
  display: flex;
  width: 100%;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.bby-pickup-selector__main-box-subheading-store-name {
  display: inline;
  padding: 0;
  margin: 0;
  color: #000;
  font-family: Inter;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.bby-pickup-selector__modal-store-tag-yellow {
  background-color: #f5ee9e;
  border-radius: 500px;
  font-size: 12px;
  font-weight: 400;
  font-family: "Inter", sans-serif;
  padding: 4px 6px;
  border: 1px solid #f5ee9e;
  text-wrap: nowrap;
  border: 1px solid #d8d181;
  line-height: normal;
  box-sizing: border-box;
  letter-spacing: normal;
}

.bby-pickup-selector__modal-store-tag-gray {
  background-color: #f2f2f2;
  border-radius: 500px;
  font-size: 12px;
  font-weight: 400;
  font-family: "Inter", sans-serif;
  padding: 4px 6px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  text-wrap: nowrap;
  line-height: normal;
  box-sizing: border-box;
  letter-spacing: normal;
}

.bby-pickup-selector__modal {
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0px 4px 12px 0px #00000026;
  animation: appear 0.25s ease-out forwards;
}

::backdrop {
  backdrop-filter: blur(5px);
  background-color: rgba(0, 0, 0, 0.8);
}

@keyframes appear {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}
.bby-pickup-selector__modal-powered {
  margin-left: auto;
  margin-right: auto;
}

.bby-cart-pickup-selector {
  display: flex;
  flex-direction: row;
  gap: 10px;
  position: absolute;
  z-index: 5;
  width: 100%;
  max-width: 1296px;
  align-items: center;
  justify-content: center;
  align-items: stretch;
}

.bby-cart-pickup-selector-box {
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 773px) {
  .bby-cart-pickup-selector {
    display: grid;
    grid-template-rows: auto 1fr;
    width: 100%;
    grid-template-columns: 1fr;
  }

  .bby-cart-pickup__box {
    width: 100% !important;
  }

  .bby-cart-pickup__shipping-box {
    width: 100% !important;
  }

  .bby-cart-pickup-selector-empty-box {
    flex-direction: column;
  }

  .bby-loader-container-box-cart {
    max-height: unset !important;
  }
}

.bby-cart-pickup-box-left {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bby-cart-pickup-box-right {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bby-cart-pickup-box__bby-row {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
}

.bby-cart-pickup-selector__radio-row {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
}

:not(.bby-cart-pickup__shipping-box).bby-cart-pickup__box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  background-color: #ffffff;
  width: 50vw;
  gap: 10px;
  border-radius: 8px;
  background: radial-gradient(
      130.68% 39.44% at 2.42% 92.52%,
      rgba(166, 196, 255, 0.2) 0%,
      rgba(255, 255, 255, 0.2) 100%
    ),
    var(--Background, #fff);
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.bby-cart-pickup__shipping-box {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px;
  background-color: #ffffff;
  width: 50vw;
  gap: 10px;
  border-radius: 8px;
  border: 1px solid var(--Border, rgba(0, 0, 0, 0.1));
}

.bby-cart-pickup__box-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
}

.bby-cart-pickup__pickup-info {
  display: flex;
  gap: 10px;
  font-size: 12px;
  font-family: "Inter", sans-serif;
  justify-content: end;
  transition: all 0.2s ease-in;
  text-wrap: nowrap;
  letter-spacing: normal;
}

.bby-cart-pickup__pickup-msg {
  color: #585858;
  font-family: Inter;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  transition: all 0.2s ease-in;
  letter-spacing: normal;
}

.bby-cart-pickup__shipping-msg {
  color: #585858;
  font-family: Inter;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
  letter-spacing: normal;
}

.bb-blue-text {
  color: #003db6;
}

.bb-bold-text {
  font-weight: 600;
}

.bby-cart-pickup__box-selected {
  border: 1px solid var(--Accent, #003db6) !important;
  box-shadow: 0px 0px 0px 4px rgba(0, 61, 182, 0.18);
}

.bby-loader-container {
  width: 384px;
  display: none;
  position: absolute;
  justify-content: center;
  align-items: center;
  left: -18px;
  top: 48px;
  z-index: 1;
  background: white;
  max-width: 350px;
  height: 412px;
}

.bby-loader-container-box {
  height: 100%;
  width: 100%;
  max-width: 500px;
  max-height: 148px;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2;
  padding: 16px;
  font-family: "Inter", sans-serif;
  position: absolute;
}

.bby-loader-container-box-cart {
  height: 100%;
  max-height: 122px;
  display: flex;
  visibility: hidden;
  justify-content: center;
  align-items: center;
  z-index: 2;
  padding: 16px;
  font-family: "Inter", sans-serif;
}

.bby-pickup-selector__empty-main-box {
  height: 100%;
  min-height: 148px;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1;
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  padding: 16px;
  font-family: "Inter", sans-serif;
  background-color: #ffffff;
  gap: 16px;
  display: flex;
  flex-direction: column;
}

.bby-alloy-spinner,
.bby-alloy-spinner-box {
  animation: spin 1.5s linear infinite; /* Adjust the speed of rotation */
  width: 32px;
  height: 32px;

  &.loader__blue {
    border-color: rgba(43, 46, 50, 0.2);
    border-top-color: rgba(43, 46, 50, 1);
  }
}

.bby-alloy-spinner-box {
  position: absolute;
}

@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}

.bby-pickup-selector__modal-button-search {
  position: absolute;
  width: 32px;
  height: 32px;
  display: flex;
  position: absolute;
  right: 0;
  align-items: center;
  margin-right: 4px;
  border: none;
  background: transparent;
  justify-content: center;
  cursor: pointer;
}

.bby-pickup-selector__modal-button-clear {
  display: flex;
  padding: 4px;
  align-items: flex-start;
  gap: 8px;
  position: absolute;
  width: 19px;
  height: 19px;
  display: flex;
  right: 0;
  align-items: center;
  margin-right: 8px;
  border: none;
  background: transparent;
  justify-content: center;
  cursor: pointer;
  border-radius: 500px;
  background: rgba(0, 0, 0, 0.1);
}

.bby-pickup-selector__modal-search-container {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.bby-pickup-selector__modal-search-container {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.bby-disabled-button {
  width: 100%;
  min-height: 40px;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 400;
  font-family: "Inter", sans-serif;
  transition:
    background-color 0.3s,
    transform 0.1s;
  background: #f2f2f2;
  color: rgba(88, 88, 88, 0.5);
  cursor: not-allowed;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: 1px solid var(--Border, rgba(0, 0, 0, 0.1));
  background: var(--Gray-Light, #f2f2f2);
  color: var(--Gray, #585858);
  font-family: Inter;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.bby-cart-pickup-selector__radio-row-empty {
  display: flex;
  flex-direction: row;
  gap: 10px;
  align-items: center;
}

.bby-pickup-selector__not-eligible {
  color: var(--Foreground, #000);
  font-family: Inter;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  display: flex;
  padding: 4px 8px;
  align-items: flex-start;
  gap: 8px;
  border-radius: 500px;
  border: 1px solid var(--Border, rgba(0, 0, 0, 0.1));
  background: var(--Gray-Light, #f2f2f2);
  letter-spacing: normal;
}

.bby-pickup-selector__radio-label {
  color: var(--Accent, #003db6);
  font-family: Inter;
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  letter-spacing: normal;
}

.bby-cart-pickup-selector__radio-row-content {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
}

@media screen and (max-width: 375px) {
  .bby-pickup-selector__main-box-button {
    max-width: 115px;
    max-height: 40px;
    white-space: nowrap;
  }
  .bby-cart-pickup__box-row {
    gap: 8px;
  }

  .bby-pickup-selector__modal-zip {
    height: 48px;
  }
}

.bby-cart-pickup__box-row-button-container {
  align-items: self-end !important;
}

@media screen and (max-width: 773px) {
  .bby-cart-pickup__box {
    gap: 24px;
    padding: 24px;
  }

  .bby-cart-pickup-selector__radio-row-content {
    flex-direction: column;
    align-items: self-start;
  }

  .bby-cart-pickup__box-row {
    gap: 10px;
    align-items: flex-start !important;
  }

  .bby-cart-pickup__box-row-button-container {
    align-self: self-end !important;
  }

  .bby-cart-shipping__box-row-data {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }
}

@media screen and (max-width: 847px) {
  .bby-cart-pickup__box-row-title {
    gap: 0 !important;
  }

  .bby-cart-pickup__box-row-data {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .bby-cart-shipping__box-row-data {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .bby-cart-pickup__box-row-button-container {
    display: flex;
    align-items: center;
    flex-direction: row-reverse;
    gap: 8px;
  }

  .bby-cart-pickup__box-row {
    gap: 10px;
  }

  .bby-cart-pickup-selector {
    align-items: stretch;
  }
}

.bby-cart-pickup__pickup-box-disabled {
  border-radius: 8px;
  border: 1px solid var(--Border, rgba(0, 0, 0, 0.1));
  background: #f4f4f4;
  pointer-events: none;
}

.bby-pickup-selector__radio-disabled {
  border-radius: 500px;
  border: 1px solid var(--Gray-Light, #f2f2f2);
  background: #ccc;
}

.bby-cart-pickup__pickup-msg-non-eligible {
  color: var(--Gray, #585858);
  font-family: Inter;
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  letter-spacing: normal;
  max-width: 364px;
}

.bby-cart-pickup__pickup-msg-box-non-eligible {
  max-width: 364px;
}

.bb-opacity-loading {
  opacity: 0.5;
  pointer-events: none;
}

.bby-pickup-selector__powered-by-container {
  display: flex;
  align-items: center;
  gap: 5px;
}

.bby-cart-pickup__powered-by {
  color: var(--Gray, #585858);
  font-family: Inter;
  font-size: 8px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.bby-pickup-selector__modal-powered-by-container {
  align-self: center;
  display: flex;
  align-items: center;
  gap: 5px;
}

.bby-pickup-selector__modal-store-item-wrapper {
  display: flex;
  width: 48px;
  cursor: pointer;
}

.bby-pickup-selector__modal-store-item-input-wrapper {
  display: flex;
  justify-content: center;
  width: 100%;
}

.bby-pickup-selector__modal {
  width: 100%;
  max-width: 350px;
}

.bby-pickup-selector__modal-content {
  max-width: 350px;
}

.bby-pickup-selector-search-danger {
  border-radius: 4px;
  border: 1px solid var(--accent-red-red, #f04242) !important;
  background: var(--Background, #fff) !important;
  box-shadow: none !important;
}

.bby-danger-text {
  color: var(--accent-red-red, #f04242);
  font-family: Inter;
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.bby-pickup-selector__modal-button-search:hover {
  border-radius: 4px;
  background: var(--Accent, #003db6);
  justify-content: center;
  align-items: center;
  & svg {
    path {
      fill: white;
    }
  }
}

.bby-pickup-selector__buy-now-button {
  width: 100%;
  min-height: 50px;
  color: #fff;
  background-color: #003db6;
  border: none;
  border-radius: 4px;
  font-size: 18px;
  font-weight: 500;
  font-family: "Inter", sans-serif;
  transition:
    background-color 0.3s,
    transform 0.1s;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bby-pickup-selector__buy-now-button:hover {
  background-color: #002f91;
}

.bby-pickup-selector__buy-now-button:focus {
  outline: none;
}

.bby-pickup-selector__buy-now-button-disabled {
  background: #f2f2f2 !important;
  color: rgba(88, 88, 88, 0.5) !important;
  cursor: not-allowed !important;
  border: 1px solid var(--Border, rgba(0, 0, 0, 0.1)) !important;
  background: var(--Gray-Light, #f2f2f2) !important;
  color: var(--Gray, #585858) !important;
}

.bb-pickup-selector__link-btn {
  padding: 0;
  border: 0;
  border-color: transparent;
}

.bb-pickup-selector__link-btn:hover {
  border-color: transparent;
  border: 0;
  color: #002c83;
  background: transparent;
}
