/* Pouchlets frontend — matches clean Merto white theme */
.ad-section {
  --ad-cols: 3;
  --ad-ink: #111111;
  --ad-muted: #777777;
  --ad-line: #eeeeee;
  --ad-star: #c9a227;
  --ad-card: #ffffff;
  max-width: 980px;
  margin: 1.5rem auto 2.75rem;
  padding: 0 16px;
  color: var(--ad-ink);
  background: transparent;
  box-sizing: border-box;
  font-family: inherit;
}

.ad-section *,
.ad-section *::before,
.ad-section *::after {
  box-sizing: border-box;
}

.ad-section-head {
  margin: 0 auto 1.75rem;
  text-align: center;
  max-width: 34rem;
}

.ad-eyebrow {
  margin: 0 0 0.35rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #999;
}

.ad-section-head h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  font-weight: 600;
  color: #111;
}

.ad-section-head p {
  margin: 0;
  color: var(--ad-muted);
  line-height: 1.55;
  font-size: 0.95rem;
  font-weight: 400;
}

.ad-grid {
  display: grid;
  grid-template-columns: repeat(var(--ad-cols), minmax(0, 1fr));
  gap: 1.25rem;
}

.ad-review-card,
.ad-reel-card {
  background: var(--ad-card);
  border: 1px solid var(--ad-line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.ad-review-media img,
.ad-review-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.ad-review-avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background: #f5f5f5;
  color: #111;
  font-size: 2.25rem;
  font-weight: 500;
  border-bottom: 1px solid var(--ad-line);
}

.ad-review-body,
.ad-reel-body {
  padding: 1rem 1.05rem 1.15rem;
  flex: 1;
}

.ad-review-name,
.ad-reel-title {
  margin: 0.35rem 0 0.2rem;
  font-size: 1rem;
  font-weight: 600;
}

.ad-review-meta,
.ad-reel-excerpt {
  margin: 0 0 0.65rem;
  color: var(--ad-muted);
  font-size: 0.86rem;
}

.ad-review-text {
  font-size: 0.92rem;
  line-height: 1.6;
  color: #333;
}

.ad-review-text p {
  margin: 0 0 0.4rem;
}

.ad-stars {
  color: #e0e0e0;
  letter-spacing: 0.04em;
  font-size: 1rem;
  line-height: 1;
}

.ad-star.is-on {
  color: var(--ad-star);
}

.ad-reel-media {
  position: relative;
  aspect-ratio: 9 / 16;
  background: #111;
  overflow: hidden;
}

.ad-reel-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ad-reel-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 600;
  background: #1a1a1a;
}

.ad-reel-placeholder--tiktok { background: #111; }
.ad-reel-placeholder--facebook { background: #1877f2; }
.ad-reel-placeholder--instagram { background: #833ab4; }
.ad-reel-placeholder--youtube { background: #c4302b; }

.ad-reel-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.ad-reel-play-icon {
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 9px 0 9px 14px;
  border-color: transparent transparent transparent #111;
  margin-left: 3px;
}

.ad-reel-badge {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.45rem;
}

.ad-reel-media.is-playing .ad-reel-play,
.ad-reel-media.is-playing .ad-reel-badge,
.ad-reel-media.is-playing .ad-reel-thumb,
.ad-reel-media.is-playing .ad-reel-placeholder {
  display: none;
}

.ad-reel-media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.ad-reel-open {
  font-size: 0.84rem;
  color: #111;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ad-empty {
  max-width: 520px;
  margin: 0 auto 1.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: center;
  color: var(--ad-muted);
  line-height: 1.6;
  font-size: 0.95rem;
}

.ad-review-form-wrap {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--ad-line);
}

.ad-form-card {
  max-width: 640px;
  margin: 0 auto;
  background: transparent;
  border: 0;
  padding: 0;
}

.ad-review-form {
  display: grid;
  gap: 1.05rem;
}

.ad-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.ad-review-form label,
.ad-rating-field {
  display: grid;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: #222;
}

.ad-review-form label em,
.ad-rating-field em {
  color: #c00;
  font-style: normal;
}

.ad-review-form input[type="text"],
.ad-review-form input[type="number"],
.ad-review-form textarea {
  width: 100%;
  padding: 0.78rem 0.9rem;
  border: 1px solid #e2e2e2;
  background: #fff;
  font: inherit;
  font-weight: 400;
  color: #111;
  border-radius: 0;
  transition: border-color 0.15s ease;
}

.ad-review-form input:focus,
.ad-review-form textarea:focus {
  outline: none;
  border-color: #111;
}

.ad-file-wrap {
  border: 1px dashed #ddd;
  padding: 0.75rem 0.9rem;
  background: #fafafa;
}

.ad-file-wrap input[type="file"] {
  width: 100%;
  font-size: 0.88rem;
}

.ad-rating-field {
  border: 0;
  margin: 0;
  padding: 0;
  min-height: 100%;
}

.ad-rating-field legend {
  padding: 0;
  margin-bottom: 0.35rem;
}

.ad-star-picker {
  display: inline-flex;
  flex-direction: row-reverse;
  gap: 0.1rem;
  align-items: center;
  min-height: 42px;
}

.ad-star-picker input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ad-star-picker label {
  font-size: 1.55rem;
  line-height: 1;
  color: #ddd;
  cursor: pointer;
  display: block;
  transition: color 0.12s ease;
}

.ad-star-picker label:hover,
.ad-star-picker label:hover ~ label,
.ad-star-picker input:checked ~ label {
  color: var(--ad-star);
}

.ad-btn {
  justify-self: start;
  margin-top: 0.25rem;
  background: #111;
  color: #fff;
  border: 0;
  padding: 0.9rem 1.75rem;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.ad-btn:hover {
  background: #000;
  opacity: 0.92;
}

.ad-form-msg {
  max-width: 640px;
  margin: 0 auto 1.1rem;
  padding: 0.85rem 1rem;
  line-height: 1.5;
  font-size: 0.92rem;
  text-align: left;
}

.ad-form-msg.is-ok {
  background: #f3faf5;
  color: #1b5e20;
  border-left: 3px solid #2e7d32;
}

.ad-form-msg.is-err {
  background: #fff5f5;
  color: #8a1f1f;
  border-left: 3px solid #c62828;
}

.ad-hp {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

@media (max-width: 900px) {
  .ad-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .ad-section {
    margin: 0.5rem auto 1.5rem;
    padding: 0 12px;
    max-width: 100%;
  }

  .ad-section-head {
    margin-bottom: 1.1rem;
    max-width: 100%;
  }

  .ad-section-head h2 {
    font-size: 1.25rem;
  }

  .ad-section-head p {
    font-size: 0.88rem;
  }

  .ad-grid {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .ad-form-row {
    grid-template-columns: 1fr;
  }

  .ad-review-avatar {
    font-size: 1.6rem;
  }

  .ad-review-body,
  .ad-reel-body {
    padding: 0.85rem 0.9rem 1rem;
  }

  .ad-review-form-wrap {
    margin-top: 1.4rem;
    padding-top: 1.2rem;
  }

  .ad-form-card {
    max-width: 100%;
  }

  .ad-review-form input[type="text"],
  .ad-review-form input[type="number"],
  .ad-review-form textarea {
    padding: 0.65rem 0.75rem;
    font-size: 16px; /* prevents iOS zoom */
  }

  .ad-star-picker label {
    font-size: 1.35rem;
  }

  .ad-btn {
    width: 100%;
    text-align: center;
    padding: 0.8rem 1rem;
  }

  .ad-reel-media {
    max-height: 70vh;
  }

  .ad-reels-grid .ad-reel-card {
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
}
