.product-variant-modal__variant-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.product-variant-modal__toggle-wrap {
  display: contents;
}

.product-variant-modal__toggle-content {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: fit-content;
  max-height: 100%;
  z-index: 12;
  transform: translateY(100%);
  transition: 0.5s;
  background-color: rgba(var(--color-background));
  overflow: auto;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
[dir=ltr] .product-variant-modal__toggle-content {
  left: 0;
}
[dir=rtl] .product-variant-modal__toggle-content {
  right: 0;
}

.product-variant-modal__toggle-wrap[xo-active] .product-variant-modal__toggle-content {
  transform: translateY(0);
}

.product-variant-modal__close {
  cursor: pointer;
  position: absolute;
  top: 1rem;
}
[dir=ltr] .product-variant-modal__close {
  right: 1rem;
}
[dir=rtl] .product-variant-modal__close {
  left: 1rem;
}
.product-variant-modal__close button {
  all: unset;
  width: 2.8rem;
  height: 2.8rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  transition: 0.3s;
}
.product-variant-modal__close svg {
  color: rgba(var(--color-foreground));
  line-height: 0;
}

.product-variant-modal__close:hover button {
  background-color: rgba(var(--color-foreground));
  rotate: 180deg;
}
.product-variant-modal__close:hover svg {
  color: rgba(var(--color-background));
}

.product-variant-modal__variant-list {
  padding-bottom: 1.5rem;
}

.xo-product-variant-modal__quantity {
  padding-bottom: 1rem;
}

.product-variant-modal__modal-content {
  width: 35rem;
  background-color: rgba(var(--color-background));
  padding: 2rem;
  border-radius: var(--modal-corner-radius);
}