.a-modal {
  display: none;
}
.a-modal.active {
  display: block;
  position: fixed;
  width: 100vw;
  height: 100vh;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.23);
  z-index: 99999;
}
.a-modal__inner {
  padding: 2rem;
  background-color: var(--color-white);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  height: auto;
  min-width: 35rem;
}
.a-modal .js-modal-close {
  text-align: right;
}
.a-modal .card__media {
  width: 100%;
  height: 50rem;
  position: relative;
}
.a-modal .card__media .media {
  width: 100%;
  height: 100%;
}
.a-modal .card__media .media img {
  object-fit: contain;
  width: 100%;
  height: 100%;
}
.a-modal .js-registry-add-product,
.a-modal .js-wishlist-add-product,
.a-modal .js-modal-close {
  cursor: pointer;
}

.o-received-product-modal .a-modal__inner,
.o-product-modal .a-modal__inner {
  padding: 3rem 0 2rem;
}
.o-received-product-modal .card__media,
.o-product-modal .card__media {
  background: #f1f0f4;
}
.o-received-product-modal .card__title,
.o-product-modal .card__title {
  margin-bottom: 1.3rem;
}
.o-received-product-modal .card__title a,
.o-product-modal .card__title a {
  color: var(--color-primary);
  text-decoration: none;
}
.o-received-product-modal .card__subtitle,
.o-product-modal .card__subtitle {
  font-family: "Avenir Next";
  text-transform: uppercase;
  color: #969696;
  font-size: 1.2rem;
  line-height: lh(18, 12);
  letter-spacing: 10%;
  margin-bottom: 0.3rem;
}
.o-received-product-modal .card__price,
.o-product-modal .card__price {
  font-family: "Avenir Next";
  font-weight: 500;
  font-size: 1.3rem;
  line-height: lh(18, 13);
  letter-spacing: 6%;
  margin-top: 1.3rem;
}
.o-received-product-modal__header,
.o-product-modal__header {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding: 0 2rem;
  align-items: center;
}
@media screen and (min-width: 768px) {
  .o-received-product-modal__header,
  .o-product-modal__header {
    display: flex;
    flex-direction: row;
  }
}
.o-received-product-modal__details,
.o-product-modal__details {
  grid-column: span 3;
  margin-bottom: 3.1rem;
  margin-top: 2.5rem;
}
.o-received-product-modal__details h4,
.o-product-modal__details h4 {
  margin-bottom: 0.5rem;
}
.o-received-product-modal__details p,
.o-product-modal__details p {
  margin: 0;
}
.o-received-product-modal__details .ordered-by,
.o-product-modal__details .ordered-by {
  margin-bottom: 2.1rem;
}
.o-received-product-modal__close-icon,
.o-product-modal__close-icon {
  position: absolute;
  top: 2rem;
  right: 1.4rem;
  cursor: pointer;
}
.o-received-product-modal__close-button,
.o-product-modal__close-button {
  border-top: 1px solid var(--color-primary-border);
  padding: 1.5rem 2rem 0;
}

.o-received-product-modal .card__media {
  height: auto;
  max-width: 30rem;
}
.o-received-product-modal .o-received-product-modal__header {
  padding-bottom: 2rem;
}
.o-received-product-modal .card__quantity {
  margin-top: 1rem;
  font-family: "Avenir Next";
  font-weight: 500;
  font-size: 1.3rem;
  letter-spacing: var(--letter-spacing);
  margin-top: 1.3rem;
}
.o-received-product-modal .card__price {
  margin-bottom: 1rem;
}

.o-registry-admin__product-list--received .m-product-card__quantity-price {
  display: block;
}
.o-registry-admin__product-list--received .m-product-card__quantity-price .m-price {
  text-align: left;
}
.o-registry-admin__product-list--received .o-product__quantity,
.o-registry-admin__product-list--received .o-product__innerbox--message {
  visibility: hidden;
  height: 0;
  margin: 0;
}

@media screen and (max-width: 1100px) {
  .o-product-modal .o-product__media {
    padding: 0 5rem;
  }
  .o-product-modal .o-product__media .m-product-media {
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .o-product-modal .o-product__media .m-product-media .swiper-pagination {
    position: absolute;
  }
}
.o-product-modal .a-modal__inner {
  max-width: 90%;
  top: 52%;
  transform: translateX(-50%) translateY(-50%);
  max-height: 85%;
  overflow: scroll;
  position: relative;
}
@media screen and (min-width: 990px) {
  .o-product-modal .a-modal__inner {
    top: 55%;
    max-height: 75%;
    display: flex;
    flex-direction: row;
    width: 100rem;
    align-items: center;
    padding: 0 5rem 0 0;
    overflow: auto;
  }
}
.o-product-modal .a-modal__inner .m-product-media {
  margin-bottom: 2rem;
  padding: 0;
}
@media screen and (min-width: 990px) {
  .o-product-modal .a-modal__inner .m-product-media {
    margin-right: 5rem;
    margin-bottom: 0rem;
  }
}
.o-product-modal .a-modal__inner .m-product-media.swiper .m-swiper__pagination {
  position: absolute;
  margin-top: -2rem;
}
.o-product-modal .js-modal-close {
  text-align: right;
  position: absolute;
  right: 1.6rem;
  top: 1.6rem;
  z-index: 2;
}
.o-product-modal__heading h3 {
  margin-bottom: 0.6rem;
}
.o-product-modal__heading a {
  color: var(--color-primary);
}
.o-product-modal .card__media {
  margin: 0 1.6rem 3rem;
  width: calc(100% - 3.2rem);
  height: auto;
}
@media screen and (min-width: 768px) {
  .o-product-modal .card__media {
    height: 50rem;
  }
}
@media screen and (min-width: 990px) {
  .o-product-modal__content {
    margin: 0 1.6rem;
  }
}
.o-product-modal .o-product__quantity {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}
.o-product-modal .o-product__quantity .o-product__select--container {
  width: 11rem;
}
.o-product-modal .o-product__quantity .ts-control {
  padding: 0.8rem;
}
.o-product-modal__price {
  margin-bottom: 2rem;
}
.o-product-modal .m-product-form__submit {
  margin-top: 1.5rem;
}

.js-share-modal .a-modal__inner {
  padding: 2rem 3rem;
}
.js-share-modal .js-modal-close {
  position: absolute;
  right: 3rem;
  top: 2rem;
}
.js-share-modal .o-share {
  display: flex;
  margin-top: 3rem;
  margin-bottom: 3rem;
}
.js-share-modal .o-share .m-list-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  width: 100%;
}
.js-share-modal .o-share .m-list-social__item {
  padding: 0;
  flex: 1 1 0px;
}
.js-share-modal .o-share .m-list-social__item.copy-link {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  margin-top: 1rem;
  flex-basis: 100%;
}
@media screen and (min-width: 768px) {
  .js-share-modal .o-share .m-list-social__item.copy-link {
    flex-direction: row;
  }
}
.js-share-modal .o-share .m-list-social__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  margin-bottom: 0;
}
.js-share-modal .o-share .m-list-social__link:hover {
  background-color: var(--color-primary);
  color: var(--color-white);
}
@media screen and (min-width: 768px) {
  .js-share-modal .o-share .m-list-social__link.copy-link__button {
    width: 20rem;
  }
}
.js-share-modal .o-share .m-list-social__link.copy-link__button:focus, .js-share-modal .o-share .m-list-social__link.copy-link__button:active, .js-share-modal .o-share .m-list-social__link.copy-link__button:hover, .js-share-modal .o-share .m-list-social__link.copy-link__button.active {
  background-color: var(--color-white);
  color: var(--color-primary);
}
.js-share-modal .js-modal-close {
  display: flex;
  justify-content: flex-end;
}

.o-manage-list-modal .js-modal-close {
  position: absolute;
  right: 1.6rem;
}
