/*
 * Rigat Hair & Nature
 * IMPORTANT: the WooCommerce purchase area is intentionally untouched.
 * Bridge owns the product gallery, summary, variations, cart and native tabs.
 * This stylesheet only formats the imported long-form content below them.
 */
.rhn-hair-nature-product .rhn-after-summary {
  --rhn-line: #dedede;
  --rhn-soft: #f7f7f7;
  --rhn-text: #222;
  clear: both;
  width: 100%;
  box-sizing: border-box;
  padding-top: 48px;
}

.rhn-hair-nature-product .rhn-content-section,
.rhn-hair-nature-product .rhn-video-section,
.rhn-hair-nature-product .rhn-faq-section {
  clear: both;
  width: 100%;
  box-sizing: border-box;
  margin-top: 52px;
}

.rhn-hair-nature-product .rhn-content-section:first-child {
  margin-top: 0;
}

.rhn-hair-nature-product .rhn-rich-content,
.rhn-hair-nature-product .rhn-accordion-content {
  color: var(--rhn-text);
  font: inherit;
  line-height: 1.7;
}

.rhn-hair-nature-product .rhn-rich-content > *:first-child,
.rhn-hair-nature-product .rhn-accordion-content > *:first-child {
  margin-top: 0;
}

.rhn-hair-nature-product .rhn-rich-content h1,
.rhn-hair-nature-product .rhn-rich-content h2,
.rhn-hair-nature-product .rhn-rich-content h3,
.rhn-hair-nature-product .rhn-rich-content h4,
.rhn-hair-nature-product .rhn-rich-content h5,
.rhn-hair-nature-product .rhn-rich-content h6 {
  font-family: inherit;
  line-height: 1.25;
  color: inherit;
  text-transform: none;
  max-width: none;
}

.rhn-hair-nature-product .rhn-rich-content h2 {
  margin: 44px 0 16px;
  font-size: 30px;
}

.rhn-hair-nature-product .rhn-rich-content h3 {
  margin: 32px 0 13px;
  font-size: 23px;
}

.rhn-hair-nature-product .rhn-rich-content h4 {
  margin: 26px 0 11px;
  font-size: 19px;
}

.rhn-hair-nature-product .rhn-rich-content p,
.rhn-hair-nature-product .rhn-rich-content ul,
.rhn-hair-nature-product .rhn-rich-content ol,
.rhn-hair-nature-product .rhn-rich-content blockquote {
  max-width: none;
  margin: 0 0 18px;
}

.rhn-hair-nature-product .rhn-rich-content ul,
.rhn-hair-nature-product .rhn-rich-content ol {
  padding-left: 24px;
}

.rhn-hair-nature-product .rhn-rich-content img,
.rhn-hair-nature-product .rhn-accordion-content img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  margin: 26px 0;
}

.rhn-hair-nature-product .rhn-rich-content figure {
  width: auto !important;
  max-width: 100%;
  margin: 28px 0;
}

.rhn-hair-nature-product .rhn-rich-content video,
.rhn-hair-nature-product .rhn-accordion-content video,
.rhn-hair-nature-product .rhn-video-item video {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  max-height: 520px;
  margin: 24px 0;
  object-fit: contain;
  background: #111;
}

.rhn-hair-nature-product .rhn-video-item,
.rhn-hair-nature-product .rhn-video-item .wp-video,
.rhn-hair-nature-product .rhn-video-item .mejs-container,
.rhn-hair-nature-product .rhn-accordion-video,
.rhn-hair-nature-product .rhn-accordion-video .wp-video,
.rhn-hair-nature-product .rhn-accordion-video .mejs-container {
  width: 100% !important;
  max-width: 720px !important;
}

.rhn-hair-nature-product .rhn-rich-content iframe,
.rhn-hair-nature-product .rhn-accordion-content iframe,
.rhn-hair-nature-product .rhn-video-item iframe {
  display: block;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 24px 0;
  border: 0;
}

.rhn-hair-nature-product .rhn-rich-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 26px 0;
}

.rhn-hair-nature-product .rhn-rich-content th,
.rhn-hair-nature-product .rhn-rich-content td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--rhn-line);
  text-align: left;
  vertical-align: top;
}

.rhn-hair-nature-product .rhn-video-section,
.rhn-hair-nature-product .rhn-faq-section {
  padding-top: 42px;
  border-top: 1px solid var(--rhn-line);
}

.rhn-hair-nature-product .rhn-video-section > h2,
.rhn-hair-nature-product .rhn-faq-section > h2 {
  margin: 0 0 24px;
  font-family: inherit;
  font-size: 30px;
  line-height: 1.25;
  text-transform: none;
}

.rhn-hair-nature-product .rhn-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.rhn-hair-nature-product .rhn-video-item {
  min-width: 0;
}

.rhn-hair-nature-product .rhn-video-item video,
.rhn-hair-nature-product .rhn-video-item iframe {
  margin: 0;
}

.rhn-hair-nature-product .rhn-accordions {
  border-bottom: 1px solid var(--rhn-line);
}

.rhn-hair-nature-product .rhn-accordion {
  border-top: 1px solid var(--rhn-line);
}

.rhn-hair-nature-product .rhn-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  line-height: 1.45;
}

.rhn-hair-nature-product .rhn-accordion summary::-webkit-details-marker {
  display: none;
}

.rhn-hair-nature-product .rhn-accordion-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.rhn-hair-nature-product .rhn-accordion-icon::before,
.rhn-hair-nature-product .rhn-accordion-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}

.rhn-hair-nature-product .rhn-accordion-icon::before {
  width: 14px;
  height: 1px;
}

.rhn-hair-nature-product .rhn-accordion-icon::after {
  width: 1px;
  height: 14px;
}

.rhn-hair-nature-product .rhn-accordion[open] .rhn-accordion-icon::after {
  display: none;
}

.rhn-hair-nature-product .rhn-accordion-content {
  padding: 0 34px 22px 0;
}

@media (max-width: 768px) {
  .rhn-hair-nature-product .rhn-after-summary {
    padding-top: 34px;
  }

  .rhn-hair-nature-product .rhn-content-section,
  .rhn-hair-nature-product .rhn-video-section,
  .rhn-hair-nature-product .rhn-faq-section {
    margin-top: 38px;
  }

  .rhn-hair-nature-product .rhn-video-grid {
    grid-template-columns: 1fr;
  }

  .rhn-hair-nature-product .rhn-rich-content h2,
  .rhn-hair-nature-product .rhn-video-section > h2,
  .rhn-hair-nature-product .rhn-faq-section > h2 {
    font-size: 25px;
  }
}

/* -------------------------------------------------------------------------
 * Hair & Nature variable product controls
 * ---------------------------------------------------------------------- */
.rhn-hair-nature-product form.variations_form table.variations {
  width: 100%;
  margin: 12px 0 18px;
  border: 0;
}

.rhn-hair-nature-product form.variations_form table.variations tr,
.rhn-hair-nature-product form.variations_form table.variations th,
.rhn-hair-nature-product form.variations_form table.variations td {
  border: 0;
}

.rhn-hair-nature-product form.variations_form table.variations th.label,
.rhn-hair-nature-product form.variations_form table.variations td.label {
  width: 86px;
  padding: 0 14px 10px 0;
  vertical-align: middle;
  text-align: left;
}

.rhn-hair-nature-product form.variations_form table.variations .label label {
  margin: 0;
  font: inherit;
  font-weight: 500;
  color: #222;
}

.rhn-hair-nature-product form.variations_form table.variations td.value {
  position: relative;
  padding: 0 0 10px;
}

.rhn-hair-nature-product form.variations_form table.variations select {
  display: block;
  width: 100%;
  min-width: 220px;
  max-width: 360px;
  height: 44px;
  margin: 0;
  padding: 0 42px 0 14px;
  border: 1px solid #cfcfcf;
  border-radius: 0;
  background-color: #fff;
  color: #222;
  font: inherit;
  line-height: 42px;
  box-shadow: none;
}

.rhn-hair-nature-product form.variations_form .reset_variations {
  display: inline-block;
  margin-top: 8px;
  color: inherit;
  font-size: 12px;
  text-decoration: underline;
}

.rhn-hair-nature-product form.variations_form .single_variation_wrap {
  margin-top: 4px;
}

/* -------------------------------------------------------------------------
 * Variation-aware gallery. The outer WooCommerce gallery keeps Bridge's
 * original column width; only its internal media renderer is replaced.
 * ---------------------------------------------------------------------- */
.rhn-hair-nature-product .woocommerce-product-gallery.rhn-managed-gallery {
  opacity: 1 !important;
}

.rhn-hair-nature-product .rhn-gallery-stage {
  width: 100%;
  overflow: hidden;
  background: #fff;
}

.rhn-hair-nature-product .rhn-gallery-main-link {
  display: block;
  width: 100%;
  line-height: 0;
}

.rhn-hair-nature-product .rhn-gallery-main-image {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  object-fit: contain;
}

.rhn-hair-nature-product .rhn-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin-top: 12px;
}

.rhn-hair-nature-product .rhn-gallery-thumb {
  display: block;
  width: 100%;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  line-height: 0;
  box-shadow: none;
}

.rhn-hair-nature-product .rhn-gallery-thumb:hover,
.rhn-hair-nature-product .rhn-gallery-thumb.is-active {
  border-color: #222;
}

.rhn-hair-nature-product .rhn-gallery-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  margin: 0;
}

@media (max-width: 768px) {
  .rhn-hair-nature-product form.variations_form table.variations th.label,
  .rhn-hair-nature-product form.variations_form table.variations td.label,
  .rhn-hair-nature-product form.variations_form table.variations td.value {
    display: block;
    width: 100%;
    padding-right: 0;
  }

  .rhn-hair-nature-product form.variations_form table.variations select {
    max-width: none;
  }
}

/* 0.5: separate editorial details, readable FAQ and managed videos. */
.rhn-hair-nature-product .rhn-details-section,
.rhn-hair-nature-product .rhn-faq-section {
  clear: both;
  width: 100%;
  box-sizing: border-box;
  margin-top: 52px;
  padding-top: 42px;
  border-top: 1px solid var(--rhn-line, #dedede);
}

.rhn-hair-nature-product .rhn-details-section > h2,
.rhn-hair-nature-product .rhn-faq-section > h2 {
  margin: 0 0 24px;
  font-family: inherit;
  font-size: 30px;
  line-height: 1.25;
  text-transform: none;
}

.rhn-hair-nature-product .rhn-video-section {
  display: grid;
  gap: 36px;
}

.rhn-hair-nature-product .rhn-video-title {
  margin: 0 0 16px;
  font-family: inherit;
  font-size: 28px;
  line-height: 1.25;
  text-transform: none;
}

.rhn-hair-nature-product .rhn-video-item .wp-video,
.rhn-hair-nature-product .rhn-video-item .mejs-container,
.rhn-hair-nature-product .rhn-video-item video.wp-video-shortcode {
  width: 100% !important;
  max-width: 100% !important;
}

.rhn-hair-nature-product .rhn-video-caption {
  margin: 10px 0 0;
  color: #666;
  font-size: 14px;
}

.rhn-hair-nature-product .rhn-accordion-video {
  margin-top: 22px;
}

.rhn-hair-nature-product .rhn-faq-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rhn-line, #dedede);
}

.rhn-hair-nature-product .rhn-faq-item {
  padding: 22px 0;
  border-bottom: 1px solid var(--rhn-line, #dedede);
}

.rhn-hair-nature-product .rhn-faq-item h3 {
  margin: 0 0 10px;
  font-family: inherit;
  font-size: 17px;
  line-height: 1.45;
  text-transform: none;
}

.rhn-hair-nature-product .rhn-faq-answer {
  line-height: 1.7;
}

.rhn-hair-nature-product .rhn-faq-answer > *:first-child { margin-top: 0; }
.rhn-hair-nature-product .rhn-faq-answer > *:last-child { margin-bottom: 0; }

@media (max-width: 768px) {
  .rhn-hair-nature-product .rhn-details-section,
  .rhn-hair-nature-product .rhn-faq-section {
    margin-top: 38px;
    padding-top: 32px;
  }
  .rhn-hair-nature-product .rhn-details-section > h2,
  .rhn-hair-nature-product .rhn-faq-section > h2,
  .rhn-hair-nature-product .rhn-video-title {
    font-size: 25px;
  }
}


/* v0.5.1: videos are supporting content, not full-width hero elements. */
.rhn-hair-nature-product .rhn-video-section .rhn-video-item,
.rhn-hair-nature-product .rhn-accordion-video {
  width: 100%;
  max-width: 760px;
}

.rhn-hair-nature-product .rhn-video-section .wp-video,
.rhn-hair-nature-product .rhn-accordion-video .wp-video,
.rhn-hair-nature-product .rhn-video-section iframe,
.rhn-hair-nature-product .rhn-accordion-video iframe {
  width: 100% !important;
  max-width: 760px !important;
}

.rhn-hair-nature-product .rhn-video-section video,
.rhn-hair-nature-product .rhn-accordion-video video {
  width: 100% !important;
  max-width: 760px !important;
  max-height: 520px;
  object-fit: contain;
}

/* v0.5.3: stable native video frame + accordion FAQ. */
.rhn-hair-nature-product .rhn-video-item,
.rhn-hair-nature-product .rhn-accordion-video {
  width: 100%;
  max-width: 760px;
}

.rhn-hair-nature-product .rhn-video-frame {
  position: relative;
  width: 100%;
  max-width: 760px;
  aspect-ratio: 16 / 9;
  margin: 18px 0 0;
  overflow: hidden;
  background: #111;
}

.rhn-hair-nature-product .rhn-video-frame .rhn-native-video,
.rhn-hair-nature-product .rhn-video-frame iframe,
.rhn-hair-nature-product .rhn-video-frame-external > * {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  margin: 0 !important;
  border: 0;
  object-fit: contain;
  background: #111;
}

.rhn-hair-nature-product .rhn-video-title {
  margin: 0 0 14px;
  font-size: 28px;
}

.rhn-hair-nature-product .rhn-faq-list.rhn-accordions {
  display: block;
  gap: 0;
  border-top: 0;
}

.rhn-hair-nature-product .rhn-faq-item {
  padding: 0;
  border-bottom: 0;
}

.rhn-hair-nature-product .rhn-faq-item summary {
  font-size: 17px;
}

.rhn-hair-nature-product .rhn-faq-answer {
  padding-bottom: 22px;
}

@media (max-width: 768px) {
  .rhn-hair-nature-product .rhn-video-frame {
    max-width: 100%;
  }

  .rhn-hair-nature-product .rhn-video-title {
    font-size: 25px;
  }
}

/* v0.5.4: full supplier gallery stays visible; variation selection only swaps the main stage. */
.rhn-hair-nature-product .rhn-gallery-video-wrap {
  width: 100%;
  background: #111;
  line-height: 0;
}

.rhn-hair-nature-product .rhn-gallery-video-wrap video,
.rhn-hair-nature-product .rhn-gallery-video-wrap iframe {
  display: block;
  width: 100%;
  height: auto;
  min-height: 280px;
  max-height: 720px;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  margin: 0;
  border: 0;
  background: #111;
}

.rhn-hair-nature-product .rhn-gallery-thumb-video {
  position: relative;
  min-height: 72px;
  background: #111;
  color: #fff;
  overflow: hidden;
}

.rhn-hair-nature-product .rhn-gallery-thumb-video img {
  opacity: .88;
}

.rhn-hair-nature-product .rhn-gallery-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 50%;
  background: rgba(0,0,0,.48);
  color: #fff;
  font-size: 14px;
  line-height: 1;
  padding-left: 2px;
  z-index: 2;
}

.rhn-hair-nature-product .rhn-gallery-thumb-video-empty {
  aspect-ratio: 1 / 1;
}

.rhn-hair-nature-product .rhn-gallery-video-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  text-align: center;
  color: #fff;
  font-size: 11px;
  line-height: 1.2;
}

@media (max-width: 768px) {
  .rhn-hair-nature-product .rhn-gallery-video-wrap video,
  .rhn-hair-nature-product .rhn-gallery-video-wrap iframe {
    min-height: 220px;
  }
}
