html.is-spytech-product-collection-popup-open,
body.is-spytech-product-collection-popup-open {
  overflow: hidden;
}

.spytech-product-collection-popup[hidden] {
  display: none;
}

.spytech-product-collection-popup {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 0.5rem;
  box-sizing: border-box;
}

.spytech-product-collection-popup__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.spytech-product-collection-popup__dialog {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  width: min(calc(100vw - 1rem), /*72rem*/ 52rem);
  max-height: min(78vh, calc(100vh - 1rem));
  padding: 2rem 3.125rem 3rem;
  border-radius: 1.25rem;
  box-sizing: border-box;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 0 1.875rem rgba(0, 0, 0, 0.18);
}

.spytech-product-collection-popup__title {
  margin: 0;
  padding-right: 5.5rem;
  color: var(--black);
  font-size: 1.25rem;
  line-height: 1.15;
  font-weight: 600;
}

.spytech-product-collection-popup__close {
  position: absolute;
  top: 1.5rem;
  right: 3.125rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.8125rem;
  height: 2.8125rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.spytech-product-collection-popup__close-icon {
  display: block;
  width: 100%;
  height: 100%;
}

.spytech-product-collection-popup__notice {
  margin: 1rem 0 0;
  font-size: 0.75rem;
  line-height: 1rem;
  font-weight: 500;
}

.spytech-product-collection-popup__notice.is-info {
  color: var(--dark-gray);
}

.spytech-product-collection-popup__notice.is-error {
  color: var(--error-red);
}

.spytech-product-collection-popup__loading {
  margin: 1.9375rem 0 0;
  color: var(--medium-gray);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 500;
}

.spytech-product-collection-popup__items {
  display: grid;
  gap: 0;
  min-height: 0;
  margin-top: 1.9375rem;
  overflow: auto;
}

.spytech-product-collection-popup__item {
  display: grid;
  grid-template-columns: 3.75rem minmax(0, 1fr) 2.8125rem;
  column-gap: 1.5625rem;
  align-items: start;
  padding: 0 0 0.875rem;
  border-bottom: 0.0625rem solid var(--soft-gray);
}

.spytech-product-collection-popup__item + .spytech-product-collection-popup__item {
  padding-top: 0.875rem;
}

.spytech-product-collection-popup__item-media {
  width: 3.75rem;
  height: 3.75rem;
}

.spytech-product-collection-popup__item-media-link {
  display: block;
  width: 100%;
  height: 100%;
}

.spytech-product-collection-popup__item-image {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 0.625rem;
  background: var(--light-gray);
  object-fit: contain;
}

.spytech-product-collection-popup__item-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 3.75rem;
}

.spytech-product-collection-popup__item-title,
.spytech-product-collection-popup__item-sku,
.spytech-product-collection-popup__item-price {
  margin: 0;
}

.spytech-product-collection-popup__item-title {
  color: var(--black);
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 500;
}

.spytech-product-collection-popup__item-title-link {
  display: inline-block;
  color: inherit;
  text-decoration: none;
}

.spytech-product-collection-popup__item-sku {
  color: var(--black);
  font-size: 0.875rem;
  line-height: 1.25rem;
  font-weight: 400;
}

.spytech-product-collection-popup__item-price {
  color: var(--black);
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 700;
}

.spytech-product-collection-popup__item-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  width: 1.875rem;
  height: 1.875rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.spytech-product-collection-popup__item-remove-icon {
  display: block;
  width: 100%;
  height: 100%;
}

.spytech-product-collection-popup__empty {
  margin: 1.9375rem 0 0;
  color: var(--dark-gray);
  font-size: 1rem;
  line-height: 1.5rem;
  font-weight: 400;
}

.spytech-product-collection-popup__actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem;
  margin-top: 2.8125rem;
}

.spytech-product-collection-popup__action {
  width: 100%;
  min-width: 0;
  min-height: 3.75rem;
}

.spytech-product-collection-popup__action.is-disabled,
.spytech-product-collection-popup__action[aria-disabled="true"] {
  pointer-events: none;
  background: var(--soft-gray);
  color: var(--medium-gray);
}

@media (max-width: 767px) {
  .spytech-product-collection-popup {
    padding: 0.5rem;
  }

  .spytech-product-collection-popup__dialog {
    width: calc(100vw - 1rem);
    max-width: none;
    max-height: min(78vh, calc(100vh - 1rem));
    padding: 1.5625rem 1.25rem;
  }

  .spytech-product-collection-popup__title {
    padding-right: 4.5rem;
    font-size: 1.25rem;
  }

  .spytech-product-collection-popup__close {
    top: 1.25rem;
    right: 1.25rem;
  }

  .spytech-product-collection-popup__items {
    margin-top: 1.5625rem;
  }

  .spytech-product-collection-popup__loading {
    margin-top: 1.5625rem;
  }

  .spytech-product-collection-popup__item {
    grid-template-columns: 3.75rem minmax(0, 1fr) 2.8125rem;
    column-gap: 1rem;
    row-gap: 0;
    align-items: center;
  }

  .spytech-product-collection-popup__item-remove {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: center;
  }

  .spytech-product-collection-popup__actions {
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
    margin-top: 1.5625rem;
  }
}
