/* Product Info Button Style */
.form__label:has(> .product-info-modal__button) {
  display: flex;
  flex-direction: row;
  gap: 4px;
}

/* Product Info Modal Styles */
.product-info-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.product-info-modal[open] {
  opacity: 1;
  visibility: visible;
}

.product-info-modal__button {
  margin-left: auto;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: #000;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-info-modal__button:hover {
  color: "#000";
}

.product-info-modal__icon {
  width: 2rem;
  height: auto; 
}

.product-info-modal__body {
  background: white;
  border-radius: 0.5rem;
  width: 512px;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  padding: 2rem;
  margin: 1rem;
  transform: scale(0.9);
  transition: transform 0.3s ease;
  text-align: center;
}

.product-info-modal[open] .product-info-modal__body {
  transform: scale(1);
}

.product-info-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  transition: color 0.2s ease;
}


.product-info-modal__title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 4rem;
}

.product-info-modal__description {
  margin-bottom: 1.5rem;
  line-height: 1.6;
  font-size: 1.4rem;
}

.product-info-modal__image {
  margin-bottom: 4rem;
  text-align: center;
}

.product-info-modal__image img {
  max-width: 100%;
  height: auto;
  border-radius: 0.375rem;
}

.product-info-modal__frames {
  display: grid;
  gap: 1rem;
}

.product-info-modal__frame-item {
  display: flex;
  align-items: start;
  gap: 1rem;
  padding: 1rem;
  border-radius: 0.375rem;
}

.product-info-modal__frame-image {
  flex-shrink: 0;
  width: 50%;
  position: relative;
  aspect-ratio: 1/1;
}

.product-info-modal__frame-image img {
  object-fit: cover;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.product-info-modal__frame-details {
  text-align: left;
}

.product-info-modal__frame-label {
  font-weight: 600;
  margin-bottom: 0.25rem;
  font-size: 2rem;
}

.product-info-modal__frame-description {
  font-size: 1.4rem;
  line-height: 1.2;
}

.product-info-modal__content > .metafield-rich_text_field {
  line-height: 1.1;
  text-align: left;

  & > * {
    font-size: 1.4rem;
  }

  & > h1,
  & > h2,
  & > h3,
  & > h4 {
    font-size: 2rem;

    & +p {
      margin-top: 0.8rem;
    }
  }

  & > p {
    margin-bottom: 1.6rem;
    margin-top: 0;

    &:has(+p) {
      margin-bottom: 0;
    }
  }
}