html.tqv-open {
  overflow: hidden;
}

.tqv {
  width: min(920px, 100vw - 48px);
  max-width: none;
  max-height: min(640px, 100svh - 48px);
  margin: auto;
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.22), 0 0 0 0.5px rgba(0, 0, 0, 0.06);
  color: #1d1d1f;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
.tqv[open] {
  animation: tqv-in 0.38s cubic-bezier(0.32, 0.72, 0, 1);
}
.tqv::backdrop {
  background: rgba(0, 0, 0, 0.32);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: tqv-fade 0.3s ease;
}

.tqv-sheet {
  position: relative;
  height: 100%;
  max-height: inherit;
}

.tqv-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(245, 245, 247, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-size: 0.8rem;
  color: #424245;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s;
}
.tqv-close:hover {
  background: #e8e8ed;
}
.tqv-close:active {
  transform: scale(0.94);
}
.tqv-close:focus-visible {
  outline: 2px solid #0071e3;
  outline-offset: 2px;
}

.tqv-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  height: 100%;
  max-height: min(640px, 100svh - 48px);
}

.tqv-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 32px;
  background: #f5f5f7;
}

.tqv-frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 260px;
  max-height: 560px;
  overflow: hidden;
  border-radius: 20px;
  background: #ececf0;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
}
.tqv-frame img,
.tqv-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tqv-frame-empty {
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 2.4rem;
  color: #c7c7cc;
}

.tqv-info {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 36px 36px 28px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.tqv-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding-right: 40px;
}

.tqv-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  background: #f5f5f7;
  font-size: 0.75rem;
  font-weight: 600;
  color: #424245;
}
.tqv-chip--premium {
  background: #fbf4e4;
  color: #8a5a00;
}

.tqv-rating {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1d1d1f;
}
.tqv-rating i {
  font-size: 0.72rem;
  color: #f5a623;
}

.tqv-rating-count {
  font-weight: 400;
  color: #6e6e73;
}

.tqv-title {
  margin: 14px 0 0;
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.5rem, 2.4vw, 1.9rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #1d1d1f;
}

.tqv-desc {
  display: -webkit-box;
  margin: 12px 0 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #6e6e73;
}

.tqv-label {
  margin: 24px 0 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6e6e73;
}

.tqv-features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.tqv-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-size: 0.86rem;
  line-height: 1.3;
  color: #1d1d1f;
}
.tqv-features i {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: #f5f5f7;
  font-size: 0.9rem;
  color: #1d1d1f;
}

.tqv-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 20px;
}
.tqv-tags span {
  padding: 4px 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  font-size: 0.75rem;
  color: #424245;
}

.tqv-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 24px;
}

.tqv-price {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.tqv-price-amount {
  font-family: "Poppins", sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #1d1d1f;
}

.tqv-price-note {
  font-size: 0.75rem;
  color: #6e6e73;
}

.tqv-create {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  background: #1d1d1f;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}
.tqv-create:hover {
  background: #000;
  color: #fff;
}
.tqv-create:active {
  transform: scale(0.98);
}
.tqv-create:focus-visible {
  outline: 2px solid #0071e3;
  outline-offset: 3px;
}
.tqv-create i {
  font-size: 0.9rem;
  transition: transform 0.2s cubic-bezier(0.32, 0.72, 0, 1);
}
.tqv-create:hover i {
  transform: translateX(3px);
}

.tqv-line {
  display: block;
  height: 14px;
  margin-top: 14px;
  border-radius: 7px;
}
.tqv-line--short {
  width: 30%;
  margin-top: 0;
}
.tqv-line--wide {
  width: 80%;
}
.tqv-line--title {
  width: 65%;
  height: 30px;
}
.tqv-line--cta {
  height: 50px;
  margin-top: auto;
  border-radius: 999px;
}

.tqv-grid--loading .tqv-info {
  min-height: 420px;
}

.tqv-shimmer {
  background: linear-gradient(90deg, #ececf0 0%, #f5f5f7 50%, #ececf0 100%);
  background-size: 200% 100%;
  animation: tqv-shimmer 1.2s linear infinite;
}

@media (max-width: 767.98px) {
  .tqv {
    width: 100vw;
    max-height: 92svh;
    margin: auto 0 0;
    border-radius: 26px 26px 0 0;
  }
  .tqv[open] {
    animation-name: tqv-up;
  }
  .tqv-grid {
    display: flex;
    flex-direction: column;
    max-height: 92svh;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .tqv-media {
    flex: 0 0 auto;
    padding: 22px 22px 18px;
  }
  .tqv-frame {
    height: 38svh;
    min-height: 200px;
    border-radius: 16px;
  }
  .tqv-info {
    flex: 0 0 auto;
    padding: 20px 20px 0;
    overflow: visible;
  }
  .tqv-meta {
    padding-right: 0;
  }
  .tqv-features {
    gap: 10px 12px;
  }
  .tqv-cta {
    position: sticky;
    bottom: 0;
    margin: 24px -20px 0;
    padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
  }
  .tqv-create {
    height: 48px;
    padding: 0 22px;
  }
  .tqv-grid--loading .tqv-info {
    min-height: 260px;
    padding-bottom: 20px;
  }
}
@keyframes tqv-in {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes tqv-up {
  from {
    transform: translateY(100%);
  }
  to {
    transform: none;
  }
}
@keyframes tqv-fade {
  from {
    opacity: 0;
  }
}
@keyframes tqv-shimmer {
  to {
    background-position: -200% 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tqv[open],
  .tqv::backdrop,
  .tqv-shimmer {
    animation: none;
  }
}
