/* ============================================
   Real Estate Reels — Pixel-perfect Renderloop
   ============================================ */

/* Page background */
body.rer-custom-product,
body.rer-custom-product .site-content,
body.rer-custom-product .ast-woocommerce-container {
    background-color: #fefdfc !important;
}

/* Hide everything Astra/Woo renders by default */
body.rer-custom-product .woocommerce-product-gallery,
body.rer-custom-product .single-product div.product .summary,
body.rer-custom-product .single-product div.product .entry-summary,
body.rer-custom-product .single-product div.product .woocommerce-tabs,
body.rer-custom-product .related.products,
body.rer-custom-product .upsells.products,
body.rer-custom-product .ast-breadcrumbs-wrapper,
body.rer-custom-product .ast-breadcrumbs,
body.rer-custom-product nav.woocommerce-breadcrumb,
body.rer-custom-product .ast-woocommerce-container nav.woocommerce-breadcrumb,
body.rer-custom-product .product_meta,
body.rer-custom-product .woocommerce-message,
body.rer-custom-product .woocommerce-notices-wrapper,
body.rer-custom-product .single_add_to_cart_button,
body.rer-custom-product .add_to_cart_button {
    display: none !important;
}

/* Hide the original cart form visually but keep it functional for submission */
body.rer-custom-product .single-product div.product form.cart {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* Show our custom UI */
body.rer-custom-product .single-product div.product {
    display: block !important;
}
body.rer-custom-product #rer-app {
    display: block !important;
}

/* Reset any container width restrictions on our app */
body.rer-custom-product .ast-woocommerce-container,
body.rer-custom-product .ast-container {
    max-width: 1200px;
}

/* Show only our custom app */
#rer-app { display: block; }

/* ============================================
   App container
   ============================================ */

.rer-app {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px 16px 80px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: #0f172a;
    box-sizing: border-box;
}

.rer-app *, .rer-app *::before, .rer-app *::after { box-sizing: border-box; }

button { font-family: inherit; }

/* ============================================
   Hero
   ============================================ */
.rer-app button:hover{
    background-color: transparent;
    border-color: #15110d;
}

.rer-hero {
    margin-bottom: 56px;
}

.rer-hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

.rer-hero__media { display: flex; flex-direction: column; gap: 12px; }

.rer-hero__main {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #f1f5f9;
    border-radius: 16px;
    overflow: hidden;
}

.rer-hero__main img,
.rer-hero__main video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.rer-hero__main { cursor: pointer; }

/* Play button overlay — hints the active slide is a video. Clicking the main
   image (anywhere) opens the lightbox, so the overlay itself is click-through. */
.rer-hero__play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 72px;
    height: 72px;
    display: none;
    align-items: center;
    justify-content: center;
    color: #15110D;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.28);
    pointer-events: none;
    z-index: 4;
    transition: transform .18s ease, background .18s ease;
}
.rer-hero__play svg { margin-left: 3px; }
.rer-hero__main--video .rer-hero__play { display: flex; }
.rer-hero__main--video:hover .rer-hero__play {
    transform: translate(-50%, -50%) scale(1.06);
    background: #ffffff;
}

/* Small play badge on video thumbnails */
.rer-hero__thumb { position: relative; }
.rer-hero__thumb-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #15110D;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    pointer-events: none;
}
.rer-hero__thumb-play svg { margin-left: 1px; }

.rer-hero__badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(15, 17, 13, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    color: #ffffff;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 999px;
    pointer-events: none;
    letter-spacing: 0.01em;
}

.rer-hero__thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }

.rer-hero__thumb {
    aspect-ratio: 4 / 3;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    padding: 0;
    background: #f1f5f9;
}

.rer-hero__thumb img,
.rer-hero__thumb video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.rer-hero__thumb--active {
    border-color: #0f172a !important;
    background: #fff !important;
}
.rer-hero__thumb:focus,
.rer-hero__thumb:active { outline: none !important; box-shadow: none !important; }

.rer-hero__info { padding-top: 16px; }

.rer-hero__label {
    color: #2563eb;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    display: block;
}

h2.rer-hero__title {
    font-size: 40px;
    font-weight: 700 !important;
    line-height: 1.1;
    margin: 0 0 16px;
    color: #0f172a;
}

.rer-hero__desc { font-size: 16px; color: #64748b; margin: 0 0 24px; line-height: 1.5; }

.rer-hero__body { font-size: 15px; color: #475569; line-height: 1.6; margin: 0 0 24px; }
.rer-hero__body p { margin: 0 0 12px; }
.rer-hero__body p:last-child { margin-bottom: 0; }
.rer-hero__body ul, .rer-hero__body ol { margin: 0 0 12px; padding-left: 20px; }
.rer-hero__body li { margin: 0 0 6px; }
.rer-hero__body a { color: #2563eb; text-decoration: underline; }

.rer-hero__price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 24px; }
.rer-hero__price { font-size: 32px; font-weight: 700; color: #0f172a; }
.rer-hero__meta { font-size: 14px; color: #64748b; }

.rer-hero__cta, .rer-sidebar__cta-btn , .rer-cta__btn{
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 20px !important;
    background-color: #15110d !important;
    color: #ffffff !important;
    border: none;
    border-radius: 60px !important;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer !important;
}
.rer-hero__cta:hover, .rer-sidebar__cta-btn:hover, .rer-cta__btn:hover {
    background-color: #2C2825 !important;
}

/* ============================================
   Main two-column layout
   ============================================ */

.rer-main {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    align-items: start;
}

.rer-main__col { min-width: 0; }

/* ============================================
   Sections
   ============================================ */

.rer-section { margin-bottom: 32px; }

.rer-section__header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.rer-section__num {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #0f172a;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rer-section__title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #0f172a;
    line-height: 1.3;
}

.rer-app .rer-section__subtitle,
.rer-app .rer-section__subtitle * {
    font-size: 13px;
    color: #64748b !important;
    margin: 0;
    line-height: 1.4;
}

/* ============================================
   Generic grid for cards
   ============================================ */

.rer-grid { display: grid; gap: 12px; }
.rer-grid--2 { grid-template-columns: 1fr 1fr; }
.rer-grid--3 { grid-template-columns: repeat(3, 1fr); }

/* ============================================
   Cards (length + format)
   ============================================ */

.rer-card {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.rer-card--active { border-color: #0f172a; }

.rer-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.rer-card__title { font-size: 15px; font-weight: 700; color: #0f172a; }

.rer-card__check {
    width: 20px;
    height: 20px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    background: #ffffff;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.rer-card--active .rer-card__check { background: #0f172a; border-color: #0f172a; }

.rer-card__desc { font-size: 12px; color: #64748b; line-height: 1.4; }
.rer-card__price { font-size: 13px; font-weight: 600; color: #0f172a; margin-top: 2px; }

/* Format card — image fills top edge-to-edge, label below */
.rer-card--format {
    padding: 0;
    gap: 0;
    overflow: hidden;
}

/* Uniform 16:9 image frame for all three formats */
.rer-format-visual {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 0;
    margin: 0;
}

/* Landscape fills the full frame */
.rer-format-visual--landscape img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}

/* Square: natural 1:1 crop centred in the 16:9 frame */
.rer-format-visual--square img {
    height: 80%; width: auto;
    aspect-ratio: 1 / 1;
    object-fit: cover; display: block;
    border-radius: 6px;
}

/* Vertical: natural 9:16 crop centred in the 16:9 frame */
.rer-format-visual--vertical img {
    height: 100%; width: auto;
    aspect-ratio: 9 / 16;
    object-fit: cover; display: block;
    border-radius: 6px;
}

/* Padding lives on the label / checkbox row, not the card */
.rer-card--format .rer-card__head { padding: 10px 14px 0; }
.rer-card--format .rer-card__desc { padding: 2px 14px 14px; }

.rer-format-notice {
    margin: 10px 0 0;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    min-height: 1em;
}

/* ============================================
   Typography section
   ============================================ */

.rer-typo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

.rer-typo__controls { display: flex; flex-direction: column; gap: 12px; }

.rer-color-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
}

.rer-color-row__info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.rer-color-row__label { font-size: 13px; font-weight: 600; color: #0f172a; }
.rer-color-row__hex { font-size: 12px; color: #64748b; font-family: ui-monospace, monospace; }

.rer-color-row__swatch {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    background: #0f172a;
}
.rer-color-row__swatch--bordered { border: 1px solid #e2e8f0; }

.rer-color-row__input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.rer-font-row {
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.rer-font-row__label { display: block; font-size: 13px; font-weight: 600; color: #0f172a; margin-bottom: 10px; }

.rer-font-row__pills { display: flex; flex-wrap: wrap; gap: 8px; }

.rer-font-pill {
    padding: 6px 14px;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    color: #0f172a;
    border-radius: 999px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.rer-font-pill--active {
    background: #0f172a !important;
    color: #ffffff !important;
    border-color: #0f172a !important;
}

.rer-font-pill[data-font="Inter"]   { font-family: 'Inter', sans-serif; }
.rer-font-pill[data-font="Serif"]   { font-family: 'Playfair Display', serif; }
.rer-font-pill[data-font="Mono"]    { font-family: 'JetBrains Mono', monospace; }
.rer-font-pill[data-font="Display"] { font-family: 'Bebas Neue', sans-serif; letter-spacing: 0.05em; }
.rer-font-pill[data-font="Light"]   { font-family: 'Inter', sans-serif; font-weight: 300; }

/* Live preview */
.rer-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 10;
    padding: 24px;
    background: #0f172a;
    border-radius: 14px;
    transition: background-color 0.2s ease, color 0.2s ease;
    min-height: 200px;
}

.rer-preview__text {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    line-height: 1.2;
    transition: font-family 0.2s ease, color 0.2s ease;
}

/* ============================================
   Shots upload grid
   ============================================ */

.rer-shots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.rer-shot-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.rer-shot-card--filled { border-color: #0f172a; }

.rer-shot-card__head { display: flex; align-items: center; gap: 8px; }

.rer-shot-card__num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #0f172a;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.rer-shot-card__label { font-size: 13px; font-weight: 600; color: #0f172a; }

.rer-shot-card__drop {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    aspect-ratio: 4 / 3;
    background: #f8fafc;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
}

.rer-shot-card__icon { color: #94a3b8; }
.rer-shot-card__hint { font-size: 12px; color: #64748b; }

.rer-shot-card__preview { width: 100%; height: 100%; object-fit: cover; }

.rer-shot-card__remove {
    position: absolute;
    top: 6px;
    right: 6px;
    color: #fff !important;
    background-color: #15110d !important;
    border: none;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 4px;
    height: 30px;
    width: 30px;
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rer-shot-card__remove:hover {
    color: #fff !important;
    background-color: #15110d !important;
}

.rer-shot-card--uploading .rer-shot-card__drop {
    background: #f1f5f9;
    cursor: default;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.rer-shot-card__spinner {
    width: 28px;
    height: 28px;
    border: 3px solid #e2e8f0;
    border-top-color: #0f172a;
    border-radius: 50%;
    animation: rer-spin 0.7s linear infinite;
    flex-shrink: 0;
}
@keyframes rer-spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   Title cards
   ============================================ */

.rer-titles { display: flex; flex-direction: column; gap: 12px; }

.rer-title-card {
    padding: 16px 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.rer-title-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.rer-title-card__label { font-size: 14px; font-weight: 700; color: #0f172a; }
.rer-title-card__shot { font-size: 12px; color: #64748b; }
.rer-title-card__shot a.rer-title-card__link,
.rer-title-card__link { font-size: 14px !important; font-weight: 500; line-height: 1.4; color: #2563eb; text-decoration: underline; }

/* Optional per-shot instruction line (renders only when set — no spacing otherwise) */
.rer-shot-card__help { font-size: 12px; color: #64748b; line-height: 1.4; margin: 2px 0 0; }

/* Optional link under the shots-step subtitle */
.rer-section__sublink { margin: 4px 0 0; font-size: 14px; }
.rer-section__sublink a { color: #2563eb; text-decoration: underline; }

/* "No titles needed" toggle */
.rer-titles-toggle { margin-bottom: 14px; }
.rer-no-titles-btn {
    background: #fff !important;
    color: #15110d !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    padding: 10px 20px !important;
    border: 2px solid #15110d !important;
    border-radius: 30px !important;
    cursor: pointer !important;
}
button.rer-no-titles-btn:hover { background-color: #2c2825 !important; border-color: #2c2825 !important; color: #ffffff !important; }
.rer-no-titles-btn--active {
    background: #2c2825 !important;
    color: #fff !important;
    border-color: #2c2825 !important;
}
.rer-no-titles-note { font-size: 14px; color: #64748b; margin: 0; }

/* Logo white-background warning note */
.rer-logo-note { font-size: 12px; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-radius: 6px; padding: 8px 10px; margin: 10px 0 0; line-height: 1.4; }

/* Extras (Step 7) — priced add-on checkboxes */
.rer-extras-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.rer-extra-card {
    display: flex; align-items: flex-start; gap: 12px;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 12px;
    padding: 14px 16px; cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s;
}
.rer-extra-card:hover { border-color: #cbd5e1; }
.rer-extra-card--active { border-color: #0f172a; box-shadow: 0 0 0 1px #0f172a; }
.rer-extra-card__check {
    flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%;
    border: 2px solid #cbd5e1; display: inline-flex; align-items: center; justify-content: center; color: #fff;
}
.rer-extra-card--active .rer-extra-card__check { background: #0f172a; border-color: #0f172a; }
.rer-extra-card__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.rer-extra-card__title { font-size: 15px; font-weight: 700; color: #0f172a; }
.rer-extra-card__desc { font-size: 13px; color: #64748b; line-height: 1.4; }
.rer-extra-card__link { font-size: 12px; color: #2563eb; text-decoration: underline; width: max-content; }
.rer-extra-card__price { flex: 0 0 auto; font-size: 14px; font-weight: 700; color: #0f172a; }

.rer-title-card__field { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }

.rer-title-card__line { font-size: 12px; color: #64748b; }
.rer-title-card__opt { color: #94a3b8; }

.rer-title-card__input {
    padding: 10px 12px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 14px;
    color: #0f172a;
    background: #ffffff;
    font-family: inherit;
    width: 100%;
}

.rer-title-card__input:focus { outline: none; border-color: #0f172a; }

.rer-title-card__counter { font-size: 11px; color: #94a3b8; }

/* ============================================
   Final touches (logo + music)
   ============================================ */

.rer-final {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    align-items: start;
}

.rer-final__col {
    padding: 16px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.rer-final__head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 12px; }
.rer-final__title { font-size: 14px; font-weight: 700; color: #0f172a; }
.rer-final__sub { font-size: 12px; color: #64748b; }

.rer-logo-card {
    aspect-ratio: 4 / 3;
    background: #f8fafc;
    border-radius: 8px;
    overflow: hidden;
}

.rer-logo-card__drop {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.rer-logo-card__icon { color: #94a3b8; }
.rer-logo-card__hint { font-size: 12px; color: #64748b; }

.rer-logo-card__filled { position: relative; width: 100%; height: 100%; }
.rer-logo-card__filled img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }

.rer-logo-card__remove {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 30px;
    height: 30px;
    border-radius: 100%;
    background-color: #15110d !important;
    color: #fff !important;
    border: none;
    cursor: pointer;
    font-size: 16px;
    line-height: 1;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.rer-logo-card--uploading {
    pointer-events: none;
    cursor: default;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: #f1f5f9;
}

/* Music cards */
.rer-music-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.rer-music-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s ease;
}

.rer-music-card--active { border-color: #0f172a; }

.rer-music-card__play {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f1f5f9;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rer-music-card__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.rer-music-card__title { font-size: 13px; font-weight: 700; color: #0f172a; display: inline-flex; align-items: center; gap: 4px; }
.rer-music-card__desc { font-size: 11px; color: #64748b; line-height: 1.3; }

.rer-music-card__check {
    width: 18px;
    height: 18px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    background: #ffffff;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.rer-music-card--active .rer-music-card__check { background: #0f172a; border-color: #0f172a; }

/* ============================================
   Sidebar
   ============================================ */

.rer-sidebar {
    position: sticky;
    top: 80px;
}

.rer-sidebar__inner {
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.rer-sidebar__title { font-size: 14px; font-weight: 700; color: #0f172a; margin: 0 0 12px; }

.rer-sidebar__rows { display: flex; flex-direction: column; gap: 10px; }

.rer-sidebar__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

.rer-sidebar__k { color: #64748b; }
.rer-sidebar__v { color: #0f172a; font-weight: 600; text-align: right; }

.rer-sidebar__divider {
    border: none;
    border-top: 1px solid #e2e8f0;
    margin: 16px 0;
}

.rer-sidebar__price-rows { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }

.rer-sidebar__price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
}

.rer-sidebar__price-k { color: #64748b; }
.rer-sidebar__price-v { color: #0f172a; font-weight: 500; }

.rer-sidebar__total-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 16px;
}

.rer-sidebar__total-label { font-size: 14px; font-weight: 600; color: #0f172a; }
.rer-sidebar__total-value { font-size: 28px; font-weight: 700; color: #0f172a; }

/* .rer-sidebar__cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
} */

/* ============================================
   Final CTA
   ============================================ */

.rer-cta {
    margin-top: 40px;
    padding: 24px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
}

.rer-cta__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.rer-cta__title { font-size: 22px; font-weight: 700; margin: 0 0 6px; line-height: 1.2; color: #0f172a; }
.rer-cta__recap { font-size: 13px; color: #64748b; margin: 0; }

.rer-cta__action { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.rer-cta__price { font-size: 26px; font-weight: 700; color: #0f172a; }

/* .rer-cta__btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
} */

/* ============================================
   Responsive
   ============================================ */

@media (max-width: 900px) {
    .rer-main { grid-template-columns: 1fr; }
    .rer-sidebar { position: static; }
    .rer-hero__inner { grid-template-columns: 1fr; gap: 24px; }
    .rer-hero__title { font-size: 30px; }
    .rer-typo { grid-template-columns: 1fr; }
    .rer-final { grid-template-columns: 1fr; }
    .rer-shots-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
    .rer-grid--2, .rer-grid--3 { grid-template-columns: 1fr; }
    .rer-shots-grid { grid-template-columns: 1fr; }
    .rer-music-grid { grid-template-columns: 1fr; }
    .rer-cta__inner { flex-direction: column; align-items: stretch; }
}

/* ============================================
   Alert Modal
   ============================================ */

body.rer-no-scroll {
    overflow: hidden !important;
}

/* ============================================
   Gallery lightbox slider (images + videos)
   ============================================ */
#rer-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8, 10, 14, 0.86);
    opacity: 0;
    transition: opacity .2s ease;
}
#rer-lightbox.rer-lightbox--visible { opacity: 1; }
.rer-lightbox__inner {
    position: relative;
    width: 100%;
    max-width: 960px;
    transform: scale(.97);
    transition: transform .2s ease;
}
#rer-lightbox.rer-lightbox--visible .rer-lightbox__inner { transform: scale(1); }
.rer-lightbox__video {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}
.rer-lightbox__video iframe,
.rer-lightbox__video video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: #000;
}
.rer-lightbox__img {
    display: block;
    max-width: 100%;
    max-height: 86vh;
    margin: 0 auto;
    border-radius: 12px;
}

/* Shared circular button — close + both arrows are identical.
   White circle, black icon, locked across hover/focus/active so the theme's
   default button styling can't turn it blue when clicked. */
.rer-lightbox__btn,
.rer-lightbox__btn:hover,
.rer-lightbox__btn:focus,
.rer-lightbox__btn:active,
.rer-lightbox__btn:focus-visible {
    color: #15110D !important;
    fill: #15110D !important;
    background: #ffffff !important;
    border: none !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22) !important;
    outline: none !important;
}
.rer-lightbox__btn {
    position: absolute;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    transition: transform .18s ease;
}
.rer-lightbox__btn:hover { transform: scale(1.06); }
.rer-lightbox__nav--prev:hover { transform: translateY(-50%) scale(1.06); }
.rer-lightbox__nav--next:hover { transform: translateY(-50%) scale(1.06); }
.rer-lightbox__btn svg { display: block; }

.rer-lightbox__close { top: -56px; right: 0; }
.rer-lightbox__nav { top: 50%; transform: translateY(-50%); }
.rer-lightbox__nav--prev { left: -64px; }
.rer-lightbox__nav--next { right: -64px; }
.rer-lightbox__count {
    position: absolute;
    bottom: -34px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    letter-spacing: 0.03em;
}
@media (max-width: 900px) {
    .rer-lightbox__nav--prev { left: 6px; }
    .rer-lightbox__nav--next { right: 6px; }
}
@media (max-width: 600px) {
    .rer-lightbox__close { top: -52px; }
}

/* Upload toast */
#rer-upload-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%) translateY(16px);
    opacity: 0;
    background: #0f172a;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 60px;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 9999;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}
#rer-upload-toast.rer-upload-toast--visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.rer-upload-toast__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    flex-shrink: 0;
    animation: rer-dot-pulse 1.2s ease-in-out infinite;
}
@keyframes rer-dot-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.7); }
}

#rer-alert-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(15, 23, 42, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s ease;
    pointer-events: none;
}
#rer-alert-overlay.rer-alert--visible {
    background: rgba(15, 23, 42, 0.45);
    pointer-events: all;
}
#rer-alert-modal {
    background: #fff;
    border-radius: 20px;
    padding: 36px 32px 28px;
    max-width: 380px;
    width: calc(100% - 40px);
    text-align: center;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.18);
    transform: translateY(24px) scale(0.96);
    opacity: 0;
    transition: transform 0.28s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.22s ease;
}
#rer-alert-overlay.rer-alert--visible #rer-alert-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}
.rer-alert__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fef3c7;
    color: #d97706;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.rer-alert__message {
    font-size: 15px;
    font-weight: 500;
    color: #0f172a;
    line-height: 1.55;
    margin: 0 0 24px;
}
.rer-alert__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0f172a !important;
    color: #fff !important;
    border: none !important;
    border-radius: 60px !important;
    padding: 10px 20px !important;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.01em;
    transition: background 0.18s ease, transform 0.12s ease;
}
.rer-alert__btn:hover {
    background: #1e293b;
    transform: translateY(-1px);
}