/* RTA vanity visualizer: sits inside the Elementor RTA page, on top of visualizer.css + visualizer-bold.css */
.ccv.ccv--rta { background: transparent; padding: 8px 0 40px; overflow: visible; }
.ccv.ccv--rta::before { content: none; }
.ccv.ccv--rta .ccv__wrap { max-width: none; }

/* Photo stage: product renders shown whole on a light ground */
.ccv.ccv--rta .ccv__scene { aspect-ratio: 4 / 3; background: #FFFFFF; }
.ccv.ccv--rta .ccv__scene.is-photo img { object-fit: contain; padding: 4%; }

/* 01 Layout: text cards instead of swatches */
.ccv.ccv--rta .rtav-layouts { gap: 10px; }
.ccv.ccv--rta .rtav-layouts .ccv-swatch label {
  width: auto;
  height: auto;
  min-width: 112px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: #F3F0EB;
  border-radius: 8px;
  outline-offset: 0;
}
.ccv.ccv--rta .rtav-layouts .ccv-swatch input:checked + label { background: #FFFFFF; outline: 2px solid #B4480B; outline-offset: 2px; }
.ccv.ccv--rta .rtav-layout__title { font-size: 15px; font-weight: 500; color: #242220; line-height: 20px; }
.ccv.ccv--rta .rtav-layout__range { font-size: 13px; color: #6A645C; line-height: 18px; font-variant-numeric: tabular-nums; }
.ccv.ccv--rta .rtav-layouts .ccv-swatch label:hover { transform: translateY(-2px); }

/* What's included (layout description) */
.ccv.ccv--rta .rtav-about { margin-top: 16px; padding-top: 16px; border-top: 1px solid #E7E1D8; }
.ccv.ccv--rta .rtav-about[hidden] { display: none; }
.ccv.ccv--rta .rtav-about h3 { margin: 0 0 6px; font-family: "Figtree", sans-serif; font-size: 16px; line-height: 22px; font-weight: 500; color: #242220; }
.ccv.ccv--rta .rtav-about p { margin: 0 0 8px; font-size: 13.5px; line-height: 20px; color: #6A645C; }
.ccv.ccv--rta .rtav-about ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.ccv.ccv--rta .rtav-about li { position: relative; padding-left: 18px; font-size: 13.5px; line-height: 20px; color: #3F3B37; }
.ccv.ccv--rta .rtav-about li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px; border-radius: 50%; background: #B4480B; }

/* Quote drawer preview */
.ccv-sheet .rtav-sheet-preview { aspect-ratio: 4 / 3; background: #FFFFFF; }
.ccv-sheet .rtav-sheet-preview img { object-fit: contain; padding: 16px; }

@media (max-width: 1024px) {
  .ccv.ccv--rta .ccv__stage { background: transparent; }
}
@media (max-width: 640px) {
  .ccv.ccv--rta { padding: 0 0 24px; }
  .ccv.ccv--rta .rtav-layouts .ccv-swatch label { min-width: 0; flex: 1; }
  .ccv.ccv--rta .rtav-layouts .ccv-swatch { flex: 1 1 30%; }
}

/* ---------- Compact sizing ---------- */
.ccv.ccv--rta .ccv__wrap { max-width: 1040px; margin: 0 auto; }
.ccv.ccv--rta .ccv__config { grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; }
.ccv.ccv--rta .ccv__stage { top: 96px; }
.ccv.ccv--rta .ccv__scene { max-height: 68vh; }
.ccv.ccv--rta .ccv__caption-title { font-size: 20px; line-height: 26px; }
.ccv.ccv--rta .ccv__caption { padding-bottom: 12px; }
.ccv.ccv--rta .ccv__disclaimer { padding: 12px 16px; }
.ccv.ccv--rta .ccv__disclaimer p { font-size: 12px; line-height: 18px; }

.ccv.ccv--rta .ccv__panel { gap: 10px; }
.ccv.ccv--rta fieldset.ccv-group, .ccv.ccv--rta fieldset.ccv-group:first-child { padding: 18px 18px 20px; }
.ccv.ccv--rta fieldset.ccv-group legend.ccv-group__head { margin-bottom: 14px; }
.ccv.ccv--rta fieldset.ccv-group .ccv-group__head { grid-template-columns: 40px 1fr auto; }
.ccv.ccv--rta .ccv-group__num { width: 30px; height: 30px; font-size: 13px; }
.ccv.ccv--rta .ccv-group__label { font-size: 15px; }
.ccv.ccv--rta .ccv-group__value { font-size: 13px; }
.ccv.ccv--rta fieldset.ccv-group .ccv-swatches { padding-left: 40px; gap: 10px; }
.ccv.ccv--rta .ccv-swatches[data-surface="door-style"] .ccv-swatch label { width: 50px; height: 50px; }
.ccv.ccv--rta .ccv-swatches[data-surface="cabinet-finish"] .ccv-swatch label { width: 40px; height: 60px; }
.ccv.ccv--rta .rtav-layouts .ccv-swatch label { min-width: 0; padding: 10px 12px; }
.ccv.ccv--rta .rtav-layout__title { font-size: 14px; }
.ccv.ccv--rta .rtav-layout__range { font-size: 12px; }
.ccv.ccv--rta .ccv__spec { margin-top: 10px; padding: 18px; }
.ccv.ccv--rta dl.ccv__spec-list > div { padding: 5px 10px; }
.ccv.ccv--rta .ccv__actions { padding-top: 14px; }
.ccv.ccv--rta button.ccv-btn--primary { min-height: 50px; font-size: 15px; }
.ccv.ccv--rta .ccv-swatch input:checked + label::after { width: 16px; height: 16px; top: -7px; right: -7px; background-size: 13px; }

/* Tablet: stack, photo pinned on top at a limited height */
@media (max-width: 1024px) {
  .ccv.ccv--rta .ccv__config { grid-template-columns: 1fr; gap: 0; }
  .ccv.ccv--rta .ccv__stage { position: sticky; top: 0; z-index: 5; margin: 0; padding: 10px 0 10px; background: #F3F0EB; }
  .ccv.ccv--rta .ccv__scene { aspect-ratio: auto !important; height: 40vh; max-height: 420px; border-radius: 12px; }
  .ccv.ccv--rta .ccv__caption { padding: 0 0 8px; }
  .ccv.ccv--rta .ccv__caption-title { font-size: 16px; line-height: 22px; }
  .ccv.ccv--rta .ccv__stage .ccv__disclaimer { display: none; }
  .ccv.ccv--rta .ccv__disclaimer--mobile { display: flex; margin-top: 16px; }
  .ccv.ccv--rta .ccv__side { padding-top: 8px; }
  .ccv.ccv--rta .ccv-live { top: 10px; left: 10px; padding: 5px 10px 5px 8px; font-size: 11px; }
}

/* Phones */
@media (max-width: 640px) {
  .ccv.ccv--rta .ccv__stage { margin: 0 -16px; padding: 8px 16px 10px; }
  .ccv.ccv--rta .ccv__scene { height: 34vh; max-height: 300px; border-radius: 10px; box-shadow: none; }
  .ccv.ccv--rta .ccv__caption { padding: 0 0 6px; }
  .ccv.ccv--rta .ccv__caption-title { font-size: 15px; line-height: 20px; }
  .ccv.ccv--rta fieldset.ccv-group, .ccv.ccv--rta fieldset.ccv-group:first-child { padding: 16px 14px 18px; border-radius: 12px; }
  .ccv.ccv--rta fieldset.ccv-group .ccv-group__head { grid-template-columns: 34px 1fr auto; }
  .ccv.ccv--rta .ccv-group__num { width: 26px; height: 26px; font-size: 12px; }
  .ccv.ccv--rta fieldset.ccv-group .ccv-swatches { padding-left: 0; gap: 10px; }
  .ccv.ccv--rta .rtav-layouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .ccv.ccv--rta .rtav-layouts .ccv-swatch label { padding: 10px 8px; text-align: center; align-items: center; }
  .ccv.ccv--rta .ccv-swatches[data-surface="door-style"] .ccv-swatch label { width: 48px; height: 48px; }
  .ccv.ccv--rta .ccv-swatches[data-surface="cabinet-finish"] .ccv-swatch label { width: 38px; height: 57px; }
  .ccv.ccv--rta .ccv__spec { padding: 16px 14px; border-radius: 12px; }
  .ccv.ccv--rta .ccv-swatch label:hover { transform: none; box-shadow: none; }
  .ccv.ccv--rta fieldset.ccv-group:hover { transform: none; }
}
/* Placeholder when a finish has no photo for a layout yet */
.ccv.ccv--rta .ccv__scene .rtav-ph {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .45s cubic-bezier(.2, .7, .2, 1);
}
.ccv.ccv--rta .ccv__scene .rtav-ph.is-current { opacity: 1; }
.rtav-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 24px;
  text-align: center;
  background: #F7F5F1;
}
.rtav-ph__door { width: 22%; max-width: 150px; min-width: 70px; aspect-ratio: 2 / 3; margin-bottom: 12px; border-radius: 3px; overflow: hidden; box-shadow: 0 18px 36px -18px rgba(36, 34, 32, .45); }
.rtav-ph__door img, .rtav-ph__door span { display: block; width: 100%; height: 100%; object-fit: cover; padding: 0 !important; }
.rtav-ph__title { margin: 0; font-family: "Figtree", sans-serif; font-size: 18px; line-height: 24px; font-weight: 500; color: #242220; }
.rtav-ph__sub { margin: 0; font-size: 13px; line-height: 19px; color: #6A645C; }
.ccv-sheet .rtav-sheet-preview .rtav-ph { position: absolute; inset: 0; }
@media (max-width: 640px) {
  .rtav-ph { padding: 12px; gap: 2px; }
  .rtav-ph__door { width: 18%; min-width: 48px; margin-bottom: 6px; }
  .rtav-ph__title { font-size: 15px; line-height: 20px; }
  .rtav-ph__sub { font-size: 12px; line-height: 17px; }
}
.ccv.ccv--rta .ccv__scene .rtav-ph__door img, .ccv-sheet .rtav-sheet-preview .rtav-ph__door img { position: static; inset: auto; opacity: 1; transition: none; animation: none; width: 100%; height: 100%; max-width: none; object-fit: cover; padding: 0; }
