


.product-modal {
  box-sizing: border-box;
  opacity: 0;
  position: fixed;
  visibility: hidden;
  z-index: -1;
  margin: 0 auto;
  top: 0;
  left: 0;
  width: 100%;
  padding: 70px 30px;
  background: rgba(var(--color-overlay-rgb), 0.7);
  height: 100%;
  transition: opacity 0.25s cubic-bezier(0.104, 0.204, 0.492, 1); }
  .product-modal[open] {
    opacity: 1;
    visibility: visible;
    z-index: 101; }

.product-modal__content {
  overflow: auto;
  max-height: 90vh;
  max-width: clamp(300px, 90vw, 800px);
  margin: 0 auto;
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
  width: 100%;
  position: absolute;
  top: 50%;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-body, #fff);
  border-radius: var(--general-border-radius, 3px); }

.product-modal__toggle {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 0;
  right: 0;
  z-index: 20; }
  @media only screen and (min-width: 768px) {
    .product-modal__toggle {
      top: 10px;
      right: 10px; } }

.product-modal__content {
  max-width: clamp(300px, 90vw, 1170px);
  padding: 15px; }
  @media only screen and (min-width: 768px) {
    .product-modal__content {
      padding: 30px; } }

.product-modal .thb-product-detail {
  margin: 0; }
