/* Rent&Go Dynamic Showroom — single avto only */
.rg-showroom-page,
.rg-showroom-page * {
    box-sizing: border-box;
}

body.single-avto {
    overflow-x: hidden;
}

.rg-showroom-page {
    --rg-accent: #b98b45;
    --rg-accent-strong: #d3aa67;
    --rg-stage: #171717;
    --rg-stage-2: #262626;
    --rg-panel: rgba(16, 16, 16, 0.86);
    --rg-panel-soft: rgba(255, 255, 255, 0.07);
    --rg-panel-border: rgba(255, 255, 255, 0.12);
    --rg-hero-text: #f8fafc;
    --rg-hero-muted: rgba(248, 250, 252, 0.66);
    --rg-page: #f4f5f6;
    --rg-ink: #15171a;
    --rg-muted: #697079;
    --rg-line: #e3e5e8;
    --rg-card: #ffffff;
    --rg-radius-xl: 30px;
    --rg-radius-lg: 22px;
    --rg-radius-md: 16px;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    color: var(--rg-ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.rg-showroom-page button,
.rg-showroom-page input,
.rg-showroom-page select,
.rg-showroom-page textarea {
    font: inherit;
}

.rg-showroom-page button {
    -webkit-tap-highlight-color: transparent;
}

/* Theme atmosphere */
.rg-theme-premium {
    --rg-accent: #b99a62;
    --rg-accent-strong: #d8bd88;
    --rg-stage: #090909;
    --rg-stage-2: #1b1813;
    --rg-panel: rgba(10, 10, 10, 0.89);
    --rg-panel-soft: rgba(216, 189, 136, 0.08);
    --rg-panel-border: rgba(216, 189, 136, 0.16);
}

.rg-theme-hybrid {
    --rg-accent: #62bf8b;
    --rg-accent-strong: #8ad6a9;
    --rg-stage: #07120e;
    --rg-stage-2: #153126;
    --rg-panel: rgba(7, 22, 16, 0.9);
    --rg-panel-soft: rgba(98, 191, 139, 0.09);
    --rg-panel-border: rgba(98, 191, 139, 0.18);
}

.rg-theme-electric {
    --rg-accent: #7ed6e8;
    --rg-accent-strong: #b3edf7;
    --rg-stage: #071014;
    --rg-stage-2: #102b35;
    --rg-panel: rgba(5, 17, 23, 0.9);
    --rg-panel-soft: rgba(126, 214, 232, 0.09);
    --rg-panel-border: rgba(126, 214, 232, 0.18);
}

.rg-theme-suv {
    --rg-accent: #c4a778;
    --rg-accent-strong: #ddc79f;
    --rg-stage: #171712;
    --rg-stage-2: #3a3528;
    --rg-panel: rgba(25, 24, 18, 0.91);
    --rg-panel-soft: rgba(196, 167, 120, 0.09);
    --rg-panel-border: rgba(196, 167, 120, 0.17);
}

.rg-theme-business {
    --rg-accent: #9bb3cf;
    --rg-accent-strong: #c5d6e8;
    --rg-stage: #0b1018;
    --rg-stage-2: #1e3045;
    --rg-panel: rgba(9, 16, 26, 0.91);
    --rg-panel-soft: rgba(155, 179, 207, 0.09);
    --rg-panel-border: rgba(155, 179, 207, 0.17);
}

.rg-theme-sport {
    --rg-accent: #d86a66;
    --rg-accent-strong: #f1948e;
    --rg-stage: #10090a;
    --rg-stage-2: #3b1518;
    --rg-panel: rgba(20, 8, 10, 0.91);
    --rg-panel-soft: rgba(216, 106, 102, 0.09);
    --rg-panel-border: rgba(216, 106, 102, 0.18);
}

.rg-theme-economy {
    --rg-accent: #4f87a9;
    --rg-accent-strong: #6ba0c1;
    --rg-stage: #dfe6e9;
    --rg-stage-2: #b8c9d2;
    --rg-panel: rgba(245, 248, 250, 0.94);
    --rg-panel-soft: rgba(31, 76, 102, 0.07);
    --rg-panel-border: rgba(22, 50, 66, 0.13);
    --rg-hero-text: #14222b;
    --rg-hero-muted: rgba(20, 34, 43, 0.64);
}

.rg-theme-comfort {
    --rg-accent: #8ea0b2;
    --rg-accent-strong: #b6c3cf;
    --rg-stage: #151a1f;
    --rg-stage-2: #35414b;
    --rg-panel: rgba(18, 24, 29, 0.91);
    --rg-panel-soft: rgba(174, 193, 208, 0.08);
    --rg-panel-border: rgba(174, 193, 208, 0.16);
}

/* Full-bleed showroom hero */
.rg-showroom-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, 1.72fr) minmax(390px, 0.9fr);
    width: 100%;
    min-height: min(860px, calc(100svh - 64px));
    background: linear-gradient(135deg, var(--rg-stage), var(--rg-stage-2));
    background:
        radial-gradient(circle at 26% 20%, color-mix(in srgb, var(--rg-accent) 19%, transparent), transparent 34%),
        linear-gradient(135deg, var(--rg-stage), var(--rg-stage-2));
    color: var(--rg-hero-text);
    overflow: hidden;
}

.rg-showroom-media,
.rg-showroom-panel {
    min-width: 0;
}

.rg-showroom-media {
    position: relative;
    min-height: 720px;
}

.rg-showroom-panel {
    position: relative;
    z-index: 5;
    display: flex;
    background: var(--rg-panel);
    border-left: 1px solid var(--rg-panel-border);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.rg-showroom-panel-inner {
    width: min(100%, 540px);
    margin: auto;
    padding: clamp(34px, 4vw, 64px) clamp(26px, 3.2vw, 52px);
}

/* Gallery */
.rg-showroom-page .rg-gallery {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
}

.rg-gallery-stage {
    position: absolute;
    inset: 0;
    overflow: hidden;
    outline: none;
}

.rg-showroom-page .rg-main-photo {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    aspect-ratio: auto;
    object-fit: cover;
    object-position: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    transform: scale(1.002);
    transition: opacity 180ms ease, transform 560ms cubic-bezier(.2,.7,.2,1);
    cursor: zoom-in;
}

.rg-main-photo.is-changing {
    opacity: 0.68;
    transform: scale(1.012);
}

.rg-media-shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(0,0,0,.04) 0%, transparent 58%, rgba(0,0,0,.22) 100%),
        linear-gradient(0deg, rgba(0,0,0,.50) 0%, transparent 36%);
}

.rg-theme-economy .rg-media-shade {
    background:
        linear-gradient(90deg, rgba(25,42,52,.03) 0%, transparent 58%, rgba(25,42,52,.10) 100%),
        linear-gradient(0deg, rgba(18,35,45,.34) 0%, transparent 36%);
}

.rg-gallery-arrow,
.rg-gallery-fullscreen {
    position: absolute;
    z-index: 4;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(12, 13, 14, .36);
    color: #fff;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    cursor: pointer;
    transition: transform 180ms ease, background 180ms ease, opacity 180ms ease;
}

.rg-gallery-arrow:hover,
.rg-gallery-fullscreen:hover {
    background: rgba(12, 13, 14, .58);
    transform: translateY(-1px);
}

.rg-gallery-arrow {
    top: 50%;
    width: 46px;
    height: 46px;
    margin-top: -23px;
    border-radius: 50%;
    font-size: 23px;
    line-height: 1;
}

.rg-gallery-prev { left: 24px; }
.rg-gallery-next { right: 24px; }

.rg-gallery-fullscreen {
    top: 24px;
    right: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 760;
}

.rg-gallery-counter {
    position: absolute;
    right: 28px;
    bottom: 28px;
    z-index: 4;
    display: flex;
    gap: 5px;
    align-items: center;
    color: #fff;
    font-size: 13px;
    font-weight: 750;
    text-shadow: 0 1px 12px rgba(0,0,0,.55);
}

.rg-gallery-bottom {
    position: absolute;
    z-index: 4;
    left: 28px;
    right: 92px;
    bottom: 22px;
}

.rg-showroom-page .rg-gallery-thumbs {
    display: flex;
    gap: 8px;
    max-width: min(560px, 75%);
    margin: 0;
    padding: 0 0 4px;
    overflow-x: auto;
    scrollbar-width: none;
}

.rg-gallery-thumbs::-webkit-scrollbar { display: none; }

.rg-gallery-thumb {
    flex: 0 0 66px;
    width: 66px;
    height: 46px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 9px;
    background: rgba(0,0,0,.25);
    opacity: .58;
    cursor: pointer;
    transition: opacity 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.rg-gallery-thumb:hover,
.rg-gallery-thumb.is-active {
    opacity: 1;
    border-color: color-mix(in srgb, var(--rg-accent-strong) 86%, white 14%);
    transform: translateY(-1px);
}

.rg-gallery-thumb img,
.rg-showroom-page .rg-gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}

.rg-gallery-empty {
    display: grid;
    place-items: center;
    color: var(--rg-hero-muted);
}

/* Right-side conversion panel */
.rg-car-heading {
    margin-bottom: 26px;
}

.rg-car-eyebrow-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    align-items: center;
    margin-bottom: 12px;
}

.rg-car-eyebrow,
.rg-city-dot,
.rg-section-kicker {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: 11px;
    font-weight: 800;
}

.rg-car-eyebrow {
    color: var(--rg-accent-strong);
}

.rg-city-dot {
    color: var(--rg-hero-muted);
}

.rg-city-dot::before {
    content: "•";
    margin-right: 9px;
    color: var(--rg-accent);
}

.rg-showroom-page .rg-car-heading h1 {
    margin: 0;
    color: var(--rg-hero-text);
    font-size: clamp(38px, 4vw, 62px);
    line-height: .98;
    font-weight: 780;
    letter-spacing: -.045em;
}

.rg-from-price {
    display: flex;
    gap: 8px;
    align-items: baseline;
    margin: 18px 0 0;
    color: var(--rg-hero-muted);
    font-size: 15px;
}

.rg-from-price strong {
    color: var(--rg-hero-text);
    font-size: clamp(28px, 2.3vw, 38px);
    line-height: 1;
    font-weight: 820;
    letter-spacing: -.035em;
}

.rg-showroom-page .rg-pricing,
.rg-showroom-page .rg-booking {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.rg-rate-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 18px;
}

.rg-rate-option {
    min-width: 0;
    padding: 15px;
    border: 1px solid var(--rg-panel-border);
    border-radius: 16px;
    background: var(--rg-panel-soft);
    color: var(--rg-hero-text);
    text-align: left;
    cursor: pointer;
    transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.rg-rate-option:hover:not(.is-disabled) {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--rg-accent) 54%, transparent);
}

.rg-rate-option.is-active {
    border-color: color-mix(in srgb, var(--rg-accent) 74%, transparent);
    background: color-mix(in srgb, var(--rg-accent) 13%, var(--rg-panel-soft));
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--rg-accent) 15%, transparent);
}

.rg-rate-option.is-disabled {
    opacity: .38;
    cursor: not-allowed;
}

.rg-rate-option span,
.rg-rate-option strong,
.rg-rate-option small {
    display: block;
}

.rg-rate-label {
    min-height: 30px;
    color: var(--rg-hero-muted);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.rg-rate-option strong {
    margin-top: 6px;
    color: var(--rg-hero-text);
    font-size: 22px;
    line-height: 1;
    letter-spacing: -.025em;
}

.rg-rate-option small {
    margin-top: 8px;
    color: var(--rg-hero-muted);
    font-size: 11px;
}

.rg-showroom-page .rg-pricing-table {
    display: grid;
    gap: 0;
    margin: 0;
    border-top: 1px solid var(--rg-panel-border);
}

.rg-showroom-page .rg-pricing-table > div,
.rg-showroom-page .rg-booking-summary > div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 42px;
    padding: 9px 0;
    border-bottom: 1px solid var(--rg-panel-border);
}

.rg-showroom-page .rg-pricing-table span,
.rg-showroom-page .rg-booking-summary span {
    color: var(--rg-hero-muted);
    font-size: 13px;
}

.rg-showroom-page .rg-pricing-table strong,
.rg-showroom-page .rg-booking-summary strong {
    color: var(--rg-hero-text);
    font-size: 14px;
    font-weight: 780;
    white-space: nowrap;
}

.rg-deposit-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 12px;
    padding: 12px 14px;
    border: 1px solid color-mix(in srgb, var(--rg-accent) 24%, transparent);
    border-radius: 13px;
    background: color-mix(in srgb, var(--rg-accent) 8%, transparent);
    color: var(--rg-hero-muted);
    font-size: 13px;
}

.rg-deposit-line strong {
    color: var(--rg-accent-strong);
    font-size: 15px;
}

.rg-showroom-page .rg-booking {
    margin-top: 26px;
    padding-top: 24px;
    border-top: 1px solid var(--rg-panel-border);
}

.rg-booking-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 14px;
    margin-bottom: 15px;
}

.rg-booking-head .rg-section-kicker {
    display: block;
    margin-bottom: 4px;
    color: var(--rg-accent-strong);
}

.rg-showroom-page .rg-booking h2 {
    margin: 0;
    color: var(--rg-hero-text);
    font-size: 21px;
    line-height: 1.15;
    font-weight: 760;
    letter-spacing: -.02em;
}

.rg-fast-confirm {
    flex: 0 0 auto;
    padding: 6px 8px;
    border-radius: 999px;
    background: var(--rg-panel-soft);
    color: var(--rg-hero-muted);
    font-size: 11px;
    font-weight: 750;
}

.rg-showroom-page .wpcf7 form {
    max-width: none;
    margin: 0;
}

.rg-showroom-page .wpcf7 form p {
    margin: 0 0 9px;
}

.rg-showroom-page .rg-booking input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]),
.rg-showroom-page .rg-booking select,
.rg-showroom-page .rg-booking textarea {
    width: 100%;
    min-height: 43px;
    padding: 10px 12px;
    border: 1px solid var(--rg-panel-border);
    border-radius: 11px;
    background: rgba(255,255,255,.075);
    color: var(--rg-hero-text);
    outline: none;
    box-shadow: none;
    transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.rg-theme-economy .rg-booking input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]),
.rg-theme-economy .rg-booking select,
.rg-theme-economy .rg-booking textarea {
    background: rgba(255,255,255,.55);
}

.rg-showroom-page .rg-booking input::placeholder,
.rg-showroom-page .rg-booking textarea::placeholder {
    color: var(--rg-hero-muted);
}

.rg-showroom-page .rg-booking input:focus,
.rg-showroom-page .rg-booking select:focus,
.rg-showroom-page .rg-booking textarea:focus {
    border-color: color-mix(in srgb, var(--rg-accent) 72%, transparent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--rg-accent) 13%, transparent);
}

.rg-showroom-page .rg-booking .wpcf7-list-item {
    margin: 0 10px 6px 0;
    color: var(--rg-hero-text);
}

.rg-showroom-page .rg-booking .wpcf7-submit,
.rg-showroom-page .rg-booking input[type="submit"] {
    width: 100%;
    min-height: 48px;
    margin-top: 2px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    background: var(--rg-accent);
    color: #0b0d0f;
    font-weight: 820;
    cursor: pointer;
    transition: filter 160ms ease, transform 160ms ease;
}

.rg-showroom-page .rg-booking .wpcf7-submit:hover,
.rg-showroom-page .rg-booking input[type="submit"]:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
}

.rg-showroom-page .rg-booking-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
    margin-top: 12px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.rg-showroom-page .rg-booking-summary .rg-booking-total {
    border-bottom: 1px solid var(--rg-panel-border) !important;
}

.rg-showroom-page .rg-booking-summary .rg-booking-total strong {
    color: var(--rg-accent-strong);
    font-size: 16px;
}

.rg-showroom-page .wpcf7-response-output {
    margin: 10px 0 0 !important;
    padding: 9px 11px !important;
    border-radius: 10px;
    color: var(--rg-hero-text);
    font-size: 12px;
}

/* Light content */
.rg-showroom-content {
    position: relative;
    z-index: 2;
    background: var(--rg-page);
    padding: 0 20px 84px;
}

.rg-content-container {
    width: min(1240px, 100%);
    margin: 0 auto;
}

.rg-spec-strip {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    margin: 0 auto;
    transform: translateY(-34px);
    overflow: hidden;
    border: 1px solid rgba(19, 24, 31, .08);
    border-radius: 20px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 22px 60px rgba(20, 25, 31, .10);
}

.rg-spec-item {
    min-width: 0;
    padding: 18px 20px;
    border-right: 1px solid var(--rg-line);
}

.rg-spec-item:last-child { border-right: 0; }

.rg-spec-item span,
.rg-story-facts span {
    display: block;
    margin-bottom: 5px;
    color: var(--rg-muted);
    font-size: 11px;
    font-weight: 730;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.rg-spec-item strong {
    display: block;
    overflow-wrap: anywhere;
    color: var(--rg-ink);
    font-size: 16px;
    line-height: 1.25;
    font-weight: 760;
}

.rg-confidence-section,
.rg-story-section,
.rg-related {
    margin-top: 46px;
}

.rg-section-heading {
    max-width: 760px;
    margin-bottom: 24px;
}

.rg-section-heading .rg-section-kicker,
.rg-story-copy .rg-section-kicker {
    display: block;
    margin-bottom: 8px;
    color: #81715a;
}

.rg-section-heading h2,
.rg-story-copy h2,
.rg-related h2 {
    margin: 0;
    color: var(--rg-ink);
    font-size: clamp(30px, 4vw, 50px);
    line-height: 1.03;
    font-weight: 750;
    letter-spacing: -.045em;
}

.rg-confidence-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.rg-confidence-grid article {
    min-width: 0;
    min-height: 190px;
    padding: 22px;
    border: 1px solid var(--rg-line);
    border-radius: 18px;
    background: var(--rg-card);
}

.rg-confidence-number {
    display: block;
    margin-bottom: 34px;
    color: #a1a7ad;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}

.rg-confidence-grid h3 {
    margin: 0 0 8px;
    color: var(--rg-ink);
    font-size: 18px;
    line-height: 1.2;
    font-weight: 740;
}

.rg-confidence-grid p {
    margin: 0;
    color: var(--rg-muted);
    font-size: 14px;
    line-height: 1.55;
}

.rg-story-section {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(310px, .6fr);
    gap: 32px;
    align-items: start;
    padding: clamp(28px, 4vw, 52px);
    border-radius: 24px;
    background: #fff;
    border: 1px solid var(--rg-line);
}

.rg-story-copy {
    max-width: 790px;
}

.rg-story-copy p {
    max-width: 72ch;
    margin: 18px 0 0;
    color: #4d555e;
    font-size: 16px;
    line-height: 1.78;
}

.rg-story-copy > *:first-child { margin-top: 0; }
.rg-story-copy h2 + p { margin-top: 22px; }
.rg-story-copy h2:not(:first-of-type),
.rg-story-copy h3 {
    margin-top: 30px;
}

.rg-story-aside {
    position: sticky;
    top: 22px;
    padding: 20px;
    border-radius: 18px;
    background: #15191e;
    color: #fff;
}

.rg-story-aside-label {
    display: block;
    margin-bottom: 12px;
    color: #9ea5ad;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.rg-story-facts > div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.rg-story-facts span {
    margin: 0;
    color: #929aa3;
}

.rg-story-facts strong {
    color: #fff;
    font-size: 13px;
    text-align: right;
}

.rg-inline-booking-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    min-height: 48px;
    margin-top: 16px;
    padding: 0 15px;
    border: 0;
    border-radius: 12px;
    background: #fff;
    color: #15191e;
    font-weight: 800;
    cursor: pointer;
}

/* Related cars */
.rg-section-heading-row {
    max-width: none;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.rg-related-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.rg-showroom-page .related-item-card {
    overflow: hidden;
    border: 1px solid var(--rg-line);
    border-radius: 18px;
    background: #fff;
    box-shadow: none;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.rg-showroom-page .related-item-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 46px rgba(19, 24, 31, .10);
}

.related-item-card a {
    display: flex;
    height: 100%;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
}

.related-item-media {
    overflow: hidden;
    background: #e9ebed;
}

.rg-showroom-page .related-item-media img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    height: auto;
    object-fit: cover;
    transition: transform 400ms cubic-bezier(.2,.7,.2,1);
}

.related-item-card:hover .related-item-media img { transform: scale(1.025); }

.related-item-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 17px;
}

.rg-showroom-page .related-item-meta {
    margin: 0 0 7px;
    color: var(--rg-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.rg-showroom-page .related-item-card h3 {
    margin: 0;
    color: var(--rg-ink);
    font-size: 20px;
    line-height: 1.15;
    font-weight: 750;
    letter-spacing: -.025em;
}

.related-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
}

.rg-showroom-page .related-item-price {
    margin: 0;
    color: var(--rg-ink);
    font-size: 14px;
    font-weight: 760;
}

.rg-showroom-page .related-item-link {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    min-height: 0;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    background: #15191e;
    color: #fff;
    font-size: 18px;
}

.rg-related-empty {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--rg-muted);
}

/* Lightbox */
.rg-lightbox[hidden] { display: none !important; }

.rg-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 72px;
    align-items: center;
    padding: 28px;
    background: rgba(5, 6, 8, .95);
    color: #fff;
}

.rg-lightbox-stage {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: calc(100vh - 56px);
}

.rg-lightbox-img {
    display: block;
    max-width: 100%;
    max-height: 92%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.rg-lightbox-close,
.rg-lightbox-arrow {
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.rg-lightbox-close {
    position: absolute;
    top: 16px;
    right: 22px;
    z-index: 2;
    width: 44px;
    height: 44px;
    font-size: 36px;
    line-height: 1;
}

.rg-lightbox-arrow {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin: auto;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    background: rgba(255,255,255,.05);
    font-size: 24px;
}

.rg-lightbox-counter {
    position: absolute;
    right: 4px;
    bottom: 4px;
    font-size: 12px;
    font-weight: 750;
    color: rgba(255,255,255,.68);
}

body.rg-lightbox-open { overflow: hidden; }

/* Mobile conversion bar */
.rg-mobile-booking-bar {
    display: none;
}

@media (max-width: 1120px) {
    .rg-showroom-hero {
        grid-template-columns: minmax(0, 1.35fr) minmax(360px, .85fr);
    }

    .rg-confidence-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .rg-showroom-hero {
        display: block;
        min-height: 0;
        background: linear-gradient(135deg, var(--rg-stage), var(--rg-stage-2));
    }

    .rg-showroom-media {
        min-height: 0;
        height: clamp(360px, 54svh, 560px);
    }

    .rg-showroom-panel {
        border-left: 0;
        border-top: 1px solid var(--rg-panel-border);
        background: var(--rg-panel);
    }

    .rg-showroom-panel-inner {
        width: min(720px, 100%);
        padding: 28px 20px 36px;
    }

    .rg-showroom-page .rg-car-heading h1 {
        font-size: clamp(34px, 8vw, 48px);
    }

    .rg-story-section {
        grid-template-columns: 1fr;
    }

    .rg-story-aside {
        position: static;
    }

    .rg-related-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .rg-showroom-media {
        height: clamp(330px, 50svh, 480px);
    }

    .rg-gallery-prev { left: 12px; }
    .rg-gallery-next { right: 12px; }

    .rg-gallery-arrow {
        width: 40px;
        height: 40px;
        margin-top: -20px;
        font-size: 19px;
        opacity: .88;
    }

    .rg-gallery-fullscreen {
        top: 12px;
        right: 12px;
        min-height: 38px;
        padding: 0 11px;
    }

    .rg-gallery-bottom {
        left: 12px;
        right: 64px;
        bottom: 12px;
    }

    .rg-gallery-counter {
        right: 14px;
        bottom: 17px;
    }

    .rg-showroom-page .rg-gallery-thumbs {
        max-width: 100%;
    }

    .rg-gallery-thumb {
        flex-basis: 56px;
        width: 56px;
        height: 40px;
    }

    .rg-showroom-panel-inner {
        padding: 24px 14px 30px;
    }

    .rg-car-heading { margin-bottom: 20px; }

    .rg-from-price { margin-top: 14px; }

    .rg-rate-options { gap: 8px; }
    .rg-rate-option { padding: 13px; }
    .rg-rate-label { min-height: 28px; font-size: 10px; }

    .rg-showroom-page .rg-booking {
        margin-top: 22px;
        padding-top: 20px;
    }

    .rg-showroom-page .rg-booking-summary {
        grid-template-columns: 1fr;
    }

    .rg-showroom-content {
        padding: 0 12px 96px;
    }

    .rg-spec-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        transform: translateY(-20px);
        border-radius: 16px;
    }

    .rg-spec-item {
        padding: 14px;
        border-right: 1px solid var(--rg-line);
        border-bottom: 1px solid var(--rg-line);
    }

    .rg-confidence-section,
    .rg-story-section,
    .rg-related {
        margin-top: 30px;
    }

    .rg-section-heading h2,
    .rg-story-copy h2,
    .rg-related h2 {
        font-size: 31px;
    }

    .rg-confidence-grid,
    .rg-related-list {
        grid-template-columns: 1fr;
    }

    .rg-confidence-grid article {
        min-height: 0;
    }

    .rg-confidence-number { margin-bottom: 22px; }

    .rg-story-section {
        padding: 22px 18px;
        border-radius: 18px;
    }

    .rg-story-copy p {
        font-size: 15px;
        line-height: 1.7;
    }

    .rg-mobile-booking-bar {
        position: fixed;
        z-index: 9990;
        left: 10px;
        right: 10px;
        bottom: max(10px, env(safe-area-inset-bottom));
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 62px;
        padding: 8px 8px 8px 14px;
        border: 1px solid rgba(255,255,255,.16);
        border-radius: 16px;
        background: rgba(16, 19, 22, .94);
        color: #fff;
        box-shadow: 0 16px 50px rgba(0,0,0,.24);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        transition: opacity 180ms ease, transform 180ms ease;
    }

    .rg-mobile-booking-bar.is-hidden {
        opacity: 0;
        transform: translateY(14px);
        pointer-events: none;
    }

    .rg-mobile-booking-bar > div {
        display: flex;
        gap: 5px;
        align-items: baseline;
        min-width: 0;
    }

    .rg-mobile-booking-bar span,
    .rg-mobile-booking-bar small {
        color: rgba(255,255,255,.62);
        font-size: 11px;
    }

    .rg-mobile-booking-bar strong {
        font-size: 19px;
        line-height: 1;
    }

    .rg-mobile-booking-bar button {
        flex: 0 0 auto;
        min-height: 46px;
        padding: 0 16px;
        border: 0;
        border-radius: 12px;
        background: #fff;
        color: #101316;
        font-size: 13px;
        font-weight: 820;
        cursor: pointer;
    }

    .rg-lightbox {
        grid-template-columns: 1fr;
        padding: 12px;
    }

    .rg-lightbox-arrow {
        position: absolute;
        z-index: 2;
        top: 50%;
        transform: translateY(-50%);
    }

    .rg-lightbox-prev { left: 12px; }
    .rg-lightbox-next { right: 12px; }
    .rg-lightbox-stage { height: calc(100svh - 24px); }
}

@media (prefers-reduced-motion: reduce) {
    .rg-showroom-page *,
    .rg-lightbox * {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}


/* ==========================================================
   Dynamic Showroom v2 — visual corrections after real-page QA
   ========================================================== */

body.single-avto #content,
body.single-avto .site-content,
body.single-avto #primary,
body.single-avto .content-area {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.single-avto #content > .ast-container,
body.single-avto .site-content > .ast-container {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.single-avto .rg-showroom-page {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
}

/* Keep the old Polylang hook functional, but stop it looking like a full-width toolbar. */
body.single-avto .rentgo-language-block {
    display: inline-flex !important;
    align-items: center !important;
    width: max-content !important;
    max-width: none !important;
    margin: 8px 0 8px clamp(16px, 3vw, 42px) !important;
    padding: 7px 12px !important;
    border: 1px solid rgba(15, 23, 42, .10) !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.88) !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, .06) !important;
    font-size: 12px !important;
}

.rg-gallery-stage {
    background: linear-gradient(135deg, var(--rg-stage), var(--rg-stage-2));
}

.rg-backdrop-photo {
    position: absolute;
    z-index: 0;
    inset: -4%;
    display: block;
    width: 108%;
    height: 108%;
    max-width: none;
    object-fit: cover;
    object-position: center;
    filter: blur(28px) saturate(.78) brightness(.46);
    transform: scale(1.045);
    opacity: .72;
    pointer-events: none;
}

.rg-showroom-page .rg-main-photo {
    z-index: 2;
    object-fit: contain !important;
    object-position: center !important;
    padding: clamp(18px, 2.8vw, 44px) !important;
    transform: none !important;
    filter: drop-shadow(0 24px 42px rgba(0,0,0,.24));
}

.rg-main-photo.is-changing {
    opacity: .60;
    transform: scale(.992) !important;
}

.rg-media-shade { z-index: 3; }
.rg-gallery-arrow,
.rg-gallery-fullscreen,
.rg-gallery-counter,
.rg-gallery-bottom { z-index: 5; }

/* Hard reset for old SiteOrigin / legacy single-car selectors. */
.rg-showroom-page .rg-pricing-table > div {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    min-height: 40px !important;
    margin: 0 !important;
    padding: 8px 0 !important;
    border: 0 !important;
    border-bottom: 1px solid var(--rg-panel-border) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.rg-showroom-page .rg-pricing-table > div > span {
    color: var(--rg-hero-muted) !important;
}

.rg-showroom-page .rg-pricing-table > div > strong {
    color: var(--rg-hero-text) !important;
}

.rg-booking-launch {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 52px;
    margin-top: 16px;
    padding: 0 17px;
    border: 0;
    border-radius: 13px;
    background: var(--rg-accent);
    color: #0b0d0f;
    font-weight: 820;
    cursor: pointer;
    transition: transform 160ms ease, filter 160ms ease;
}

.rg-booking-launch:hover {
    transform: translateY(-1px);
    filter: brightness(1.07);
}

.rg-panel-note {
    margin: 10px 2px 0;
    color: var(--rg-hero-muted);
    font-size: 11px;
    line-height: 1.45;
}

.rg-booking-head-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.rg-booking-close {
    display: none;
    place-items: center;
    width: 38px;
    height: 38px;
    min-height: 0;
    padding: 0;
    border: 1px solid var(--rg-panel-border);
    border-radius: 50%;
    background: var(--rg-panel-soft);
    color: var(--rg-hero-text);
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

/* CF7 must visually belong to the showroom, not become a white plugin card. */
.rg-showroom-page .rg-booking .booking-form-wrapper,
.rg-showroom-page .rg-booking .wpcf7,
.rg-showroom-page .rg-booking .wpcf7 form,
.rg-showroom-page .rg-booking .wpcf7-form {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.rg-showroom-page .rg-booking label,
.rg-showroom-page .rg-booking .wpcf7-list-item-label,
.rg-showroom-page .rg-booking .wpcf7 form p,
.rg-showroom-page .rg-booking .wpcf7 form span {
    color: var(--rg-hero-text) !important;
}

.rg-showroom-page .rg-booking input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]),
.rg-showroom-page .rg-booking select,
.rg-showroom-page .rg-booking textarea {
    border: 1px solid var(--rg-panel-border) !important;
    background: rgba(255,255,255,.075) !important;
    color: var(--rg-hero-text) !important;
    box-shadow: none !important;
}

.rg-showroom-page .rg-booking .wpcf7-submit,
.rg-showroom-page .rg-booking input[type="submit"] {
    border: 0 !important;
    background: var(--rg-accent) !important;
    color: #0b0d0f !important;
    box-shadow: none !important;
}

/* Related cards: prevent global card/link styles from collapsing their internal width. */
.rg-showroom-page .rg-related-list > .related-item-card {
    width: 100% !important;
    min-width: 0 !important;
}

.rg-showroom-page .related-item-card > a {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
}

.rg-showroom-page .related-item-media,
.rg-showroom-page .related-item-body {
    width: 100% !important;
    max-width: none !important;
}

.rg-showroom-page .related-item-media {
    display: grid !important;
    place-items: center !important;
    min-height: 220px;
    padding: 18px;
    background: #f1f3f4 !important;
}

.rg-showroom-page .related-item-media img {
    width: 100% !important;
    height: 200px !important;
    max-width: none !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
}

/* Tighter trust section; real content, not oversized empty cards. */
.rg-confidence-grid article {
    min-height: 158px;
    padding: 20px;
}

.rg-confidence-number { margin-bottom: 16px; }

@media (min-width: 901px) {
    .rg-showroom-hero {
        height: clamp(680px, calc(100svh - 118px), 820px) !important;
        min-height: 680px !important;
        max-height: 820px !important;
        grid-template-columns: minmax(0, 1.82fr) minmax(410px, .94fr) !important;
    }

    .rg-showroom-media {
        min-height: 0 !important;
        height: 100% !important;
    }

    .rg-showroom-panel {
        position: relative;
        height: 100%;
        overflow: hidden;
    }

    .rg-showroom-panel-inner {
        width: min(100%, 540px);
        height: 100%;
        margin: 0 auto;
        padding: clamp(28px, 3.1vw, 46px) clamp(24px, 2.8vw, 42px);
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        scrollbar-color: color-mix(in srgb, var(--rg-accent) 35%, transparent) transparent;
    }

    .rg-showroom-panel-inner::-webkit-scrollbar { width: 5px; }
    .rg-showroom-panel-inner::-webkit-scrollbar-track { background: transparent; }
    .rg-showroom-panel-inner::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: color-mix(in srgb, var(--rg-accent) 35%, transparent);
    }

    .rg-showroom-page .rg-car-heading h1 {
        font-size: clamp(36px, 3.7vw, 56px);
    }

    .rg-showroom-page .rg-booking {
        position: absolute !important;
        z-index: 30;
        inset: 0;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: clamp(28px, 3.1vw, 46px) clamp(24px, 2.8vw, 42px) 42px !important;
        overflow-y: auto;
        overscroll-behavior: contain;
        border: 0 !important;
        background: linear-gradient(135deg, var(--rg-stage), var(--rg-stage-2)) !important;
        opacity: 0;
        transform: translateX(102%);
        pointer-events: none;
        transition: transform 260ms cubic-bezier(.2,.75,.25,1), opacity 180ms ease;
    }

    .rg-showroom-panel.is-booking-open .rg-booking {
        opacity: 1;
        transform: translateX(0);
        pointer-events: auto;
    }

    .rg-booking-close { display: grid; }

    .rg-showroom-page .rg-booking h2 { font-size: 25px; }
    .rg-showroom-page .rg-booking .wpcf7 form p { margin-bottom: 10px !important; }

    .rg-showroom-content { padding-top: 0; }
}

@media (max-width: 900px) {
    .rg-backdrop-photo {
        filter: blur(22px) saturate(.82) brightness(.50);
        opacity: .66;
    }

    .rg-showroom-page .rg-main-photo {
        padding: 14px 12px 40px !important;
    }

    .rg-booking-launch,
    .rg-panel-note,
    .rg-booking-close {
        display: none !important;
    }

    .rg-showroom-page .rg-booking {
        position: static !important;
        width: 100% !important;
        height: auto !important;
        margin-top: 22px !important;
        padding-top: 20px !important;
        overflow: visible !important;
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
        border-top: 1px solid var(--rg-panel-border) !important;
        background: transparent !important;
    }
}

@media (max-width: 640px) {
    body.single-avto .rentgo-language-block {
        margin-left: 12px !important;
        margin-top: 6px !important;
        margin-bottom: 6px !important;
    }

    .rg-showroom-media {
        height: clamp(300px, 46svh, 420px) !important;
    }

    .rg-showroom-page .rg-main-photo {
        padding: 10px 8px 44px !important;
    }

    .rg-related-list { gap: 12px; }
    .rg-showroom-page .related-item-media { min-height: 180px; }
    .rg-showroom-page .related-item-media img { height: 164px !important; }
}

/* ==========================================================
   Dynamic Showroom v3 — mobile conversion + refined sections
   ========================================================== */

/* Business theme gets a more deliberate steel/navy showroom atmosphere. */
.rg-theme-business {
    background:
        radial-gradient(circle at 30% 36%, rgba(115, 151, 190, .20), transparent 34%),
        radial-gradient(circle at 68% 5%, rgba(66, 93, 125, .16), transparent 28%),
        linear-gradient(135deg, #08101a 0%, #101d2b 52%, #07101a 100%) !important;
}

.rg-theme-business .rg-gallery-stage {
    background:
        radial-gradient(circle at 44% 52%, rgba(127, 158, 192, .14), transparent 33%),
        linear-gradient(135deg, #09111b, #132131 58%, #09121d);
}

/* Desktop car is a touch more present without cropping it. */
@media (min-width: 901px) {
    .rg-showroom-page .rg-main-photo {
        padding: clamp(8px, 1.6vw, 26px) !important;
        transform: scale(1.055) !important;
    }

    .rg-main-photo.is-changing {
        transform: scale(1.045) !important;
    }
}

/* Cleaner 4-value confidence band */
.rg-confidence-section {
    margin-top: 34px;
}

.rg-confidence-section .rg-section-heading {
    margin-bottom: 18px;
}

.rg-confidence-grid {
    gap: 12px;
}

.rg-confidence-grid article {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr);
    gap: 15px;
    align-items: start;
    min-height: 0;
    padding: 18px;
    border-radius: 17px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.94));
    box-shadow: 0 10px 30px rgba(22, 29, 37, .045);
}

.rg-confidence-icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #f1f3f5;
    color: #1b232c;
}

.rg-confidence-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.rg-confidence-copy {
    min-width: 0;
}

.rg-confidence-number {
    margin: 0 0 5px;
    color: #9aa1a9;
    font-size: 9px;
    line-height: 1;
}

.rg-confidence-grid h3 {
    margin: 0 0 5px;
    font-size: 16px;
    line-height: 1.2;
}

.rg-confidence-grid p {
    font-size: 13px;
    line-height: 1.45;
}

/* Related section becomes one composed module instead of loose cards. */
.rg-related {
    padding: clamp(24px, 3.5vw, 38px);
    border: 1px solid var(--rg-line);
    border-radius: 24px;
    background: #eef0f2;
}

.rg-related .rg-section-heading {
    margin-bottom: 22px;
}

.rg-related-list {
    gap: 14px;
}

.rg-showroom-page .related-item-card {
    border-radius: 17px;
    border-color: rgba(19, 24, 31, .09);
    box-shadow: 0 10px 28px rgba(20, 27, 34, .04);
}

.rg-showroom-page .related-item-media {
    min-height: 0 !important;
    padding: 0 !important;
    background: #e3e6e8 !important;
}

.rg-showroom-page .related-item-media img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 10 !important;
    object-fit: contain !important;
    padding: 10px !important;
}

.related-item-body {
    padding: 16px 17px 17px;
}

.related-item-footer {
    margin-top: 18px;
}

/* The site chat owns the floating mobile CTA. The showroom no longer adds another one. */
.rg-mobile-booking-bar {
    display: none !important;
}

/* Backdrop is inert on desktop. */
.rg-booking-backdrop {
    display: none;
}

/* Mobile/tablet: booking becomes a real bottom sheet rather than a huge inline form. */
@media (max-width: 900px) {
    body.rg-booking-modal-open {
        overflow: hidden !important;
        touch-action: none;
    }

    .rg-booking-backdrop[hidden] {
        display: none !important;
    }

    .rg-booking-backdrop {
        position: fixed;
        z-index: 99980;
        inset: 0;
        display: block;
        background: rgba(3, 7, 12, .62);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }

    .rg-booking-launch {
        display: flex !important;
        min-height: 54px;
        margin-top: 16px;
        border-radius: 14px;
        background: var(--rg-accent) !important;
        color: #071018 !important;
    }

    .rg-panel-note {
        display: block !important;
        margin-top: 9px;
        color: var(--rg-hero-muted);
    }

    .rg-showroom-page .rg-booking {
        position: fixed !important;
        z-index: 99990;
        left: 8px !important;
        right: 8px !important;
        bottom: 0 !important;
        top: auto !important;
        width: auto !important;
        max-height: min(88svh, 760px) !important;
        height: auto !important;
        margin: 0 !important;
        padding: 18px 18px calc(22px + env(safe-area-inset-bottom)) !important;
        overflow-y: auto !important;
        overscroll-behavior: contain;
        border: 1px solid rgba(255,255,255,.12) !important;
        border-bottom: 0 !important;
        border-radius: 24px 24px 0 0 !important;
        background:
            radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--rg-accent) 11%, transparent), transparent 32%),
            #0b121c !important;
        box-shadow: 0 -24px 80px rgba(0,0,0,.32) !important;
        opacity: 0 !important;
        transform: translateY(106%) !important;
        pointer-events: none !important;
        transition: transform 260ms cubic-bezier(.2,.78,.2,1), opacity 160ms ease !important;
    }

    .rg-showroom-panel.is-booking-open .rg-booking {
        opacity: 1 !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }

    .rg-booking-head {
        position: sticky;
        z-index: 5;
        top: -18px;
        align-items: center;
        margin: -2px -2px 14px;
        padding: 8px 2px 12px;
        background: linear-gradient(180deg, #0b121c 72%, rgba(11,18,28,0));
    }

    .rg-booking-head::before {
        content: "";
        position: absolute;
        top: 1px;
        left: 50%;
        width: 42px;
        height: 4px;
        border-radius: 999px;
        background: rgba(255,255,255,.26);
        transform: translateX(-50%);
    }

    .rg-booking-head > div:first-child {
        padding-top: 8px;
    }

    .rg-booking-close {
        display: grid !important;
        width: 40px;
        height: 40px;
        border-color: rgba(255,255,255,.14);
        background: rgba(255,255,255,.07);
    }

    .rg-showroom-page .rg-booking h2 {
        font-size: 22px;
    }

    .rg-fast-confirm {
        display: none;
    }

    .rg-showroom-page .rg-booking .wpcf7 form p {
        margin-bottom: 10px !important;
    }

    .rg-showroom-page .rg-booking input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]),
    .rg-showroom-page .rg-booking select,
    .rg-showroom-page .rg-booking textarea {
        min-height: 52px !important;
        padding: 11px 13px !important;
        border-radius: 12px !important;
        background: rgba(255,255,255,.08) !important;
    }

    .rg-showroom-page .rg-booking input[type="date"] {
        min-height: 52px !important;
        height: 52px !important;
    }

    .rg-showroom-page .rg-booking .wpcf7-list-item {
        margin-right: 14px !important;
    }

    .rg-showroom-page .rg-booking .wpcf7-submit,
    .rg-showroom-page .rg-booking input[type="submit"] {
        min-height: 54px !important;
        margin-top: 5px !important;
        border-radius: 14px !important;
    }

    .rg-showroom-page .rg-booking-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0 14px !important;
        margin-top: 14px !important;
    }
}

@media (max-width: 640px) {
    .rg-showroom-panel-inner {
        padding-bottom: 24px !important;
    }

    .rg-confidence-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px;
    }

    .rg-confidence-grid article {
        grid-template-columns: 1fr;
        gap: 11px;
        padding: 15px;
        border-radius: 16px;
    }

    .rg-confidence-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
    }

    .rg-confidence-icon svg {
        width: 19px;
        height: 19px;
    }

    .rg-confidence-grid h3 {
        font-size: 15px;
    }

    .rg-confidence-grid p {
        font-size: 12px;
        line-height: 1.4;
    }

    .rg-related {
        margin-left: -2px;
        margin-right: -2px;
        padding: 20px 10px 12px;
        border-radius: 20px;
    }

    .rg-related .rg-section-heading {
        padding: 0 5px;
        margin-bottom: 16px;
    }

    .rg-related h2 {
        max-width: 13ch;
        font-size: 30px !important;
        line-height: 1.02;
    }

    .rg-related-list {
        grid-template-columns: 1fr !important;
        gap: 11px;
    }

    .rg-showroom-page .related-item-card {
        border-radius: 16px;
    }

    .rg-showroom-page .related-item-media img {
        aspect-ratio: 16 / 9 !important;
        max-height: 230px;
        padding: 8px !important;
    }

    .related-item-body {
        padding: 14px 15px 15px;
    }

    .related-item-footer {
        margin-top: 13px;
    }

    .rg-showroom-page .rg-booking {
        left: 0 !important;
        right: 0 !important;
        max-height: 90svh !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        border-radius: 22px 22px 0 0 !important;
    }
}


/* V3.6: if CF7 already renders the legacy calculator rows, don't show a second summary block. */
.booking-form-wrapper:has(#rg-days) .rg-booking-summary,
.booking-form-wrapper:has(#rg-price-day) .rg-booking-summary,
.booking-form-wrapper:has(#rg-total) .rg-booking-summary {
    display: none !important;
}


/* ==========================================================
   Dynamic Showroom v3.7 — mobile booking fullscreen
   ========================================================== */

@media (max-width: 900px) {
    body.rg-booking-modal-open {
        overflow: hidden !important;
        position: fixed !important;
        width: 100% !important;
        inset: 0 !important;
    }

    .rg-booking-backdrop {
        position: fixed !important;
        z-index: 2147482990 !important;
        inset: 0 !important;
        background: #07101a !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    .rg-showroom-page .rg-booking {
        position: fixed !important;
        z-index: 2147483000 !important;
        inset: 0 !important;
        width: 100vw !important;
        height: 100dvh !important;
        max-height: 100dvh !important;
        min-height: 100dvh !important;
        margin: 0 !important;
        padding:
            calc(14px + env(safe-area-inset-top))
            18px
            calc(28px + env(safe-area-inset-bottom))
            18px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        overscroll-behavior: contain !important;
        -webkit-overflow-scrolling: touch !important;
        border: 0 !important;
        border-radius: 0 !important;
        background:
            radial-gradient(circle at 82% 5%, color-mix(in srgb, var(--rg-accent) 11%, transparent), transparent 28%),
            linear-gradient(180deg, #0a1420 0%, #07101a 100%) !important;
        box-shadow: none !important;
        opacity: 0 !important;
        transform: translateY(100%) !important;
        pointer-events: none !important;
        transition:
            transform 260ms cubic-bezier(.2,.78,.2,1),
            opacity 140ms ease !important;
    }

    .rg-showroom-panel.is-booking-open .rg-booking {
        opacity: 1 !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }

    .rg-booking-head {
        position: sticky !important;
        z-index: 2147483002 !important;
        top: calc(-14px - env(safe-area-inset-top)) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        min-height: 82px !important;
        margin:
            calc(-14px - env(safe-area-inset-top))
            -18px
            18px !important;
        padding:
            calc(16px + env(safe-area-inset-top))
            18px
            14px !important;
        border-bottom: 1px solid rgba(255,255,255,.08) !important;
        background: rgba(7,16,26,.97) !important;
        backdrop-filter: blur(14px) !important;
        -webkit-backdrop-filter: blur(14px) !important;
    }

    .rg-booking-head::before {
        display: none !important;
    }

    .rg-booking-head > div:first-child {
        padding: 0 !important;
    }

    .rg-booking-head .rg-section-kicker {
        margin-bottom: 3px !important;
        font-size: 10px !important;
    }

    .rg-showroom-page .rg-booking h2 {
        font-size: 22px !important;
        line-height: 1.1 !important;
    }

    .rg-booking-head-actions {
        position: relative !important;
        z-index: 2147483004 !important;
        display: flex !important;
        align-items: center !important;
        gap: 9px !important;
    }

    .rg-fast-confirm {
        display: inline-flex !important;
        min-height: 34px !important;
        align-items: center !important;
        padding: 0 10px !important;
        border-radius: 999px !important;
        background: rgba(255,255,255,.07) !important;
        color: rgba(255,255,255,.72) !important;
        font-size: 11px !important;
    }

    .rg-booking-close {
        position: relative !important;
        z-index: 2147483005 !important;
        display: grid !important;
        place-items: center !important;
        width: 42px !important;
        height: 42px !important;
        flex: 0 0 42px !important;
        min-height: 42px !important;
        padding: 0 !important;
        border: 1px solid color-mix(in srgb, var(--rg-accent) 45%, transparent) !important;
        border-radius: 50% !important;
        background: var(--rg-accent) !important;
        color: #081018 !important;
        font-size: 27px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        box-shadow: 0 7px 22px color-mix(in srgb, var(--rg-accent) 25%, transparent) !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }

    .rg-showroom-page .rg-booking .booking-form-wrapper {
        padding-bottom: 12px !important;
    }

    .rg-showroom-page .rg-booking input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]),
    .rg-showroom-page .rg-booking select,
    .rg-showroom-page .rg-booking textarea {
        min-height: 52px !important;
        height: auto !important;
        padding: 10px 13px !important;
        border-radius: 12px !important;
    }

    .rg-showroom-page .rg-booking input[type="date"] {
        height: 52px !important;
        min-height: 52px !important;
        font-size: 16px !important;
    }

    .rg-showroom-page .rg-booking .wpcf7-submit,
    .rg-showroom-page .rg-booking input[type="submit"] {
        position: relative !important;
        z-index: 2 !important;
        min-height: 54px !important;
        margin-top: 8px !important;
        border-radius: 14px !important;
    }
}

/* On narrow phones remove any remaining bottom-sheet geometry entirely. */
@media (max-width: 640px) {
    .rg-showroom-page .rg-booking {
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        top: 0 !important;
        max-height: 100dvh !important;
        border-radius: 0 !important;
    }
}


/* ==========================================================
   Dynamic Showroom v3.8 — true mobile viewport portal
   Booking is moved to <body> while open on mobile.
   ========================================================== */

@media (max-width: 900px) {
    /* Do not freeze body with position:fixed; it can visually jump to hero top. */
    body.rg-booking-modal-open {
        overflow: hidden !important;
        position: static !important;
        width: auto !important;
        inset: auto !important;
    }

    body > .rg-booking.rg-booking-ported {
        position: fixed !important;
        z-index: 2147483640 !important;
        top: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100dvh !important;
        min-height: 100dvh !important;
        max-height: 100dvh !important;
        margin: 0 !important;
        padding:
            calc(14px + env(safe-area-inset-top))
            18px
            calc(28px + env(safe-area-inset-bottom))
            18px !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        overscroll-behavior: contain !important;
        -webkit-overflow-scrolling: touch !important;
        border: 0 !important;
        border-radius: 0 !important;
        background:
            radial-gradient(circle at 82% 5%, rgba(155,179,207,.10), transparent 28%),
            linear-gradient(180deg, #0a1420 0%, #07101a 100%) !important;
        box-shadow: none !important;
        color: #fff !important;
        opacity: 0 !important;
        transform: translateY(100%) !important;
        pointer-events: none !important;
        transition:
            transform 240ms cubic-bezier(.2,.78,.2,1),
            opacity 130ms ease !important;
    }

    body > .rg-booking.rg-booking-ported.is-open {
        opacity: 1 !important;
        transform: translateY(0) !important;
        pointer-events: auto !important;
    }

    body > .rg-booking.rg-booking-ported .rg-booking-head {
        position: sticky !important;
        z-index: 5 !important;
        top: calc(-14px - env(safe-area-inset-top)) !important;
        margin:
            calc(-14px - env(safe-area-inset-top))
            -18px
            18px !important;
        padding:
            calc(16px + env(safe-area-inset-top))
            18px
            14px !important;
        background: rgba(7,16,26,.97) !important;
        border-bottom: 1px solid rgba(255,255,255,.08) !important;
    }

    body > .rg-booking.rg-booking-ported .rg-booking-close {
        display: grid !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        position: relative !important;
        z-index: 10 !important;
    }

    /* The portal sits above the floating chat button and any theme header. */
    body.rg-booking-modal-open .rg-booking-backdrop {
        z-index: 2147483630 !important;
    }
}

/* ==========================================================
   Dynamic Showroom v3.9 — portal styling restored
   When booking is moved to <body>, it no longer inherits
   .rg-showroom-page scoped styles, so all critical rules are
   explicitly restored for the portaled state.
   ========================================================== */

@media (max-width: 900px) {
    body > .rg-booking.rg-booking-ported {
        --rg-accent: #9bb3cf;
        --rg-accent-strong: #c5d6e8;
        --rg-panel-border: rgba(255,255,255,.14);
        --rg-panel-soft: rgba(255,255,255,.07);
        --rg-hero-text: #f8fafc;
        --rg-hero-muted: rgba(248,250,252,.68);
        box-sizing: border-box !important;
        color: var(--rg-hero-text) !important;
        font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
    }

    body > .rg-booking.rg-booking-ported,
    body > .rg-booking.rg-booking-ported * {
        box-sizing: border-box !important;
    }

    body > .rg-booking.rg-booking-ported .rg-booking-head {
        color: var(--rg-hero-text) !important;
    }

    body > .rg-booking.rg-booking-ported .rg-section-kicker {
        display: block !important;
        margin: 0 0 4px !important;
        color: var(--rg-accent-strong) !important;
        font-size: 10px !important;
        font-weight: 800 !important;
        letter-spacing: .13em !important;
        text-transform: uppercase !important;
    }

    body > .rg-booking.rg-booking-ported .rg-booking-head h2,
    body > .rg-booking.rg-booking-ported > h2 {
        margin: 0 !important;
        color: var(--rg-hero-text) !important;
        font-size: 23px !important;
        line-height: 1.1 !important;
        font-weight: 780 !important;
        letter-spacing: -.025em !important;
    }

    body > .rg-booking.rg-booking-ported .rg-fast-confirm {
        display: inline-flex !important;
        align-items: center !important;
        min-height: 34px !important;
        padding: 0 10px !important;
        border-radius: 999px !important;
        background: rgba(255,255,255,.07) !important;
        color: rgba(255,255,255,.72) !important;
        font-size: 11px !important;
        font-weight: 750 !important;
    }

    body > .rg-booking.rg-booking-ported .rg-booking-close {
        position: fixed !important;
        z-index: 2147483646 !important;
        top: calc(14px + env(safe-area-inset-top)) !important;
        right: 16px !important;
        display: grid !important;
        place-items: center !important;
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
        min-height: 44px !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 1px solid rgba(255,255,255,.18) !important;
        border-radius: 50% !important;
        background: var(--rg-accent) !important;
        color: #071018 !important;
        font-size: 28px !important;
        font-weight: 800 !important;
        line-height: 1 !important;
        box-shadow: 0 8px 28px rgba(0,0,0,.22) !important;
        visibility: visible !important;
        opacity: 1 !important;
        pointer-events: auto !important;
        cursor: pointer !important;
    }

    body > .rg-booking.rg-booking-ported .booking-form-wrapper,
    body > .rg-booking.rg-booking-ported .wpcf7,
    body > .rg-booking.rg-booking-ported .wpcf7 form,
    body > .rg-booking.rg-booking-ported .wpcf7-form {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        margin: 0 !important;
        padding: 0 !important;
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        color: var(--rg-hero-text) !important;
    }

    body > .rg-booking.rg-booking-ported .wpcf7 form > h2,
    body > .rg-booking.rg-booking-ported .wpcf7 form > h3,
    body > .rg-booking.rg-booking-ported .wpcf7-form > h2,
    body > .rg-booking.rg-booking-ported .wpcf7-form > h3 {
        margin: 0 0 16px !important;
        color: var(--rg-hero-text) !important;
        font-size: 21px !important;
        line-height: 1.15 !important;
        font-weight: 760 !important;
    }

    body > .rg-booking.rg-booking-ported .wpcf7 form p {
        margin: 0 0 13px !important;
        padding: 0 !important;
        color: var(--rg-hero-text) !important;
        background: transparent !important;
    }

    body > .rg-booking.rg-booking-ported label,
    body > .rg-booking.rg-booking-ported .wpcf7-list-item-label,
    body > .rg-booking.rg-booking-ported .wpcf7 form span {
        color: var(--rg-hero-text) !important;
    }

    body > .rg-booking.rg-booking-ported input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]),
    body > .rg-booking.rg-booking-ported select,
    body > .rg-booking.rg-booking-ported textarea {
        display: block !important;
        width: 100% !important;
        max-width: none !important;
        min-height: 52px !important;
        margin: 6px 0 0 !important;
        padding: 11px 13px !important;
        border: 1px solid var(--rg-panel-border) !important;
        border-radius: 12px !important;
        background: rgba(255,255,255,.075) !important;
        color: var(--rg-hero-text) !important;
        -webkit-text-fill-color: var(--rg-hero-text) !important;
        box-shadow: none !important;
        outline: none !important;
        font-size: 16px !important;
    }

    body > .rg-booking.rg-booking-ported input[type="date"] {
        height: 52px !important;
        min-height: 52px !important;
        color-scheme: dark !important;
    }

    body > .rg-booking.rg-booking-ported input::placeholder,
    body > .rg-booking.rg-booking-ported textarea::placeholder {
        color: var(--rg-hero-muted) !important;
        -webkit-text-fill-color: var(--rg-hero-muted) !important;
    }

    body > .rg-booking.rg-booking-ported .wpcf7-list-item {
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        margin: 4px 14px 6px 0 !important;
        color: var(--rg-hero-text) !important;
    }

    body > .rg-booking.rg-booking-ported input[type="radio"] {
        width: 20px !important;
        height: 20px !important;
        margin: 0 5px 0 0 !important;
        accent-color: var(--rg-accent) !important;
    }

    body > .rg-booking.rg-booking-ported .wpcf7-submit,
    body > .rg-booking.rg-booking-ported input[type="submit"] {
        display: block !important;
        width: 100% !important;
        min-height: 54px !important;
        margin: 14px 0 0 !important;
        padding: 0 18px !important;
        border: 0 !important;
        border-radius: 14px !important;
        background: var(--rg-accent) !important;
        color: #071018 !important;
        -webkit-text-fill-color: #071018 !important;
        box-shadow: none !important;
        font-size: 15px !important;
        font-weight: 820 !important;
    }

    body > .rg-booking.rg-booking-ported .wpcf7-not-valid-tip {
        display: block !important;
        margin-top: 6px !important;
        color: #ffaaa5 !important;
        font-size: 12px !important;
    }

    body > .rg-booking.rg-booking-ported .wpcf7-response-output {
        margin: 12px 0 0 !important;
        padding: 10px 12px !important;
        border: 1px solid var(--rg-panel-border) !important;
        border-radius: 12px !important;
        background: rgba(255,255,255,.06) !important;
        color: var(--rg-hero-text) !important;
    }

    body > .rg-booking.rg-booking-ported .rg-booking-summary {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 0 16px !important;
        margin-top: 14px !important;
        padding: 0 !important;
        background: transparent !important;
    }

    body > .rg-booking.rg-booking-ported .rg-booking-summary > div {
        display: flex !important;
        justify-content: space-between !important;
        align-items: center !important;
        min-height: 42px !important;
        padding: 9px 0 !important;
        border-bottom: 1px solid var(--rg-panel-border) !important;
        background: transparent !important;
    }

    body > .rg-booking.rg-booking-ported .rg-booking-summary span {
        color: var(--rg-hero-muted) !important;
        font-size: 13px !important;
    }

    body > .rg-booking.rg-booking-ported .rg-booking-summary strong {
        color: var(--rg-hero-text) !important;
        font-size: 14px !important;
        font-weight: 780 !important;
    }

    /* Hide floating chat while booking is open: one conversion flow at a time. */
    body.rg-booking-modal-open .rentgo-ai-chat,
    body.rg-booking-modal-open .rentgo-chat-button,
    body.rg-booking-modal-open [class*="chat-float"],
    body.rg-booking-modal-open [class*="floating-chat"] {
        visibility: hidden !important;
        opacity: 0 !important;
        pointer-events: none !important;
    }
}

/* ==========================================================
   Rent&Go Dynamic Showroom v4.0
   Distinct car-class atmospheres + unified Rent&Go booking UI
   ========================================================== */

/* -------- Class atmosphere system -------- */
.rg-theme-economy {
    --rg-accent: #48b7d3;
    --rg-accent-strong: #8bd8ea;
    --rg-stage: #08151c;
    --rg-stage-2: #123342;
    --rg-panel: rgba(7, 22, 29, .94);
    --rg-panel-soft: rgba(72, 183, 211, .09);
    --rg-panel-border: rgba(139, 216, 234, .18);
    --rg-hero-text: #f7fbfd;
    --rg-hero-muted: rgba(235, 248, 252, .70);
}

.rg-theme-comfort {
    --rg-accent: #8ea9c2;
    --rg-accent-strong: #c2d3e2;
    --rg-stage: #111820;
    --rg-stage-2: #263646;
    --rg-panel: rgba(14, 23, 32, .94);
    --rg-panel-soft: rgba(142, 169, 194, .09);
    --rg-panel-border: rgba(194, 211, 226, .16);
    --rg-hero-text: #f8fafc;
    --rg-hero-muted: rgba(232, 239, 245, .68);
}

.rg-theme-business {
    --rg-accent: #40648B;
    --rg-accent-strong: #c8d8e9;
    --rg-stage: #060d17;
    --rg-stage-2: #142a43;
    --rg-panel: rgba(5, 14, 24, .96);
    --rg-panel-soft: rgba(102, 141, 181, .10);
    --rg-panel-border: rgba(160, 190, 219, .18);
    --rg-hero-text: #fbfcfe;
    --rg-hero-muted: rgba(224, 235, 247, .66);
}

.rg-theme-minivan {
    --rg-accent: #d0a56f;
    --rg-accent-strong: #edd0a8;
    --rg-stage: #171513;
    --rg-stage-2: #3a3028;
    --rg-panel: rgba(24, 20, 17, .95);
    --rg-panel-soft: rgba(208, 165, 111, .09);
    --rg-panel-border: rgba(237, 208, 168, .17);
    --rg-hero-text: #fffaf4;
    --rg-hero-muted: rgba(248, 235, 220, .68);
}

.rg-theme-suv {
    --rg-accent: #bda26b;
    --rg-accent-strong: #dec998;
    --rg-stage: #11130e;
    --rg-stage-2: #343928;
    --rg-panel: rgba(17, 20, 13, .95);
    --rg-panel-soft: rgba(189, 162, 107, .10);
    --rg-panel-border: rgba(222, 201, 152, .18);
    --rg-hero-text: #fbfbf5;
    --rg-hero-muted: rgba(238, 238, 218, .68);
}

.rg-theme-hybrid {
    --rg-accent: #55c783;
    --rg-accent-strong: #99e2b6;
    --rg-stage: #06150d;
    --rg-stage-2: #123925;
    --rg-panel: rgba(5, 21, 13, .95);
    --rg-panel-soft: rgba(85, 199, 131, .10);
    --rg-panel-border: rgba(153, 226, 182, .18);
    --rg-hero-text: #f5fff8;
    --rg-hero-muted: rgba(220, 247, 229, .70);
}

.rg-theme-premium {
    --rg-accent: #c4a268;
    --rg-accent-strong: #ead2a4;
    --rg-stage: #070707;
    --rg-stage-2: #211b12;
    --rg-panel: rgba(8, 8, 8, .96);
    --rg-panel-soft: rgba(196, 162, 104, .10);
    --rg-panel-border: rgba(234, 210, 164, .18);
    --rg-hero-text: #fffdf8;
    --rg-hero-muted: rgba(244, 235, 216, .70);
}

/* Stronger class-specific light signatures behind the vehicle. */
.rg-theme-economy .rg-gallery-stage {
    background:
        radial-gradient(circle at 44% 54%, rgba(72,183,211,.22), transparent 34%),
        linear-gradient(140deg, #07141b 0%, #102d3a 58%, #08151c 100%) !important;
}
.rg-theme-comfort .rg-gallery-stage {
    background:
        radial-gradient(circle at 42% 52%, rgba(142,169,194,.16), transparent 34%),
        linear-gradient(140deg, #101820 0%, #243340 60%, #121a22 100%) !important;
}
.rg-theme-business .rg-gallery-stage {
    background:
        radial-gradient(circle at 43% 52%, rgba(77,126,176,.20), transparent 32%),
        linear-gradient(140deg, #050c15 0%, #11263d 58%, #07101a 100%) !important;
}
.rg-theme-minivan .rg-gallery-stage {
    background:
        radial-gradient(circle at 44% 52%, rgba(208,165,111,.17), transparent 34%),
        linear-gradient(140deg, #171411 0%, #372d25 58%, #171411 100%) !important;
}
.rg-theme-suv .rg-gallery-stage {
    background:
        radial-gradient(circle at 44% 54%, rgba(189,162,107,.18), transparent 34%),
        linear-gradient(140deg, #11130d 0%, #303523 58%, #11130e 100%) !important;
}
.rg-theme-hybrid .rg-gallery-stage {
    background:
        radial-gradient(circle at 44% 52%, rgba(85,199,131,.19), transparent 34%),
        linear-gradient(140deg, #05130b 0%, #103321 58%, #07150d 100%) !important;
}
.rg-theme-premium .rg-gallery-stage {
    background:
        radial-gradient(circle at 44% 52%, rgba(196,162,104,.17), transparent 33%),
        linear-gradient(140deg, #060606 0%, #1e1911 58%, #080808 100%) !important;
}

/* Economy used to be light-on-light: force readable controls and labels. */
.rg-theme-economy .rg-car-heading h1,
.rg-theme-economy .rg-car-eyebrow,
.rg-theme-economy .rg-city-dot,
.rg-theme-economy .rg-from-price,
.rg-theme-economy .rg-from-price strong,
.rg-theme-economy .rg-pricing-table span,
.rg-theme-economy .rg-pricing-table strong,
.rg-theme-economy .rg-deposit-line,
.rg-theme-economy .rg-deposit-line strong,
.rg-theme-economy .rg-rate-option,
.rg-theme-economy .rg-rate-option strong,
.rg-theme-economy .rg-rate-option small,
.rg-theme-economy .rg-rate-label {
    color: var(--rg-hero-text) !important;
}
.rg-theme-economy .rg-rate-option small,
.rg-theme-economy .rg-rate-label,
.rg-theme-economy .rg-pricing-table span,
.rg-theme-economy .rg-from-price {
    color: var(--rg-hero-muted) !important;
}

/* -------- One consistent Rent&Go booking form -------- */
.rg-showroom-page,
body > .rg-booking.rg-booking-ported {
    --rg-booking-accent: #39c96b;
    --rg-booking-accent-hover: #4fda7d;
    --rg-booking-bg: #07131a;
    --rg-booking-bg-2: #0b1c22;
    --rg-booking-surface: #102129;
    --rg-booking-surface-2: #152a33;
    --rg-booking-border: rgba(154, 194, 207, .19);
    --rg-booking-text: #f5faf8;
    --rg-booking-muted: rgba(226, 239, 234, .67);
}

/* Desktop slide-over: always Rent&Go, independent from car class. */
@media (min-width: 901px) {
    .rg-showroom-page .rg-booking {
        background:
            radial-gradient(circle at 88% 8%, rgba(57,201,107,.11), transparent 28%),
            linear-gradient(160deg, var(--rg-booking-bg-2), var(--rg-booking-bg)) !important;
        color: var(--rg-booking-text) !important;
    }
}

.rg-showroom-page .rg-booking .rg-section-kicker,
.rg-showroom-page .rg-booking h2,
.rg-showroom-page .rg-booking label,
.rg-showroom-page .rg-booking .wpcf7-list-item-label,
.rg-showroom-page .rg-booking .wpcf7 form p,
.rg-showroom-page .rg-booking .wpcf7 form span {
    color: var(--rg-booking-text) !important;
}

.rg-showroom-page .rg-booking .rg-section-kicker {
    color: #80e4a5 !important;
}

.rg-showroom-page .rg-booking input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]),
.rg-showroom-page .rg-booking select,
.rg-showroom-page .rg-booking textarea {
    border-color: var(--rg-booking-border) !important;
    background: var(--rg-booking-surface) !important;
    color: var(--rg-booking-text) !important;
    -webkit-text-fill-color: var(--rg-booking-text) !important;
}

.rg-showroom-page .rg-booking input:focus,
.rg-showroom-page .rg-booking select:focus,
.rg-showroom-page .rg-booking textarea:focus {
    border-color: rgba(57,201,107,.62) !important;
    box-shadow: 0 0 0 3px rgba(57,201,107,.12) !important;
}

.rg-showroom-page .rg-booking input[type="radio"] {
    accent-color: var(--rg-booking-accent) !important;
}

.rg-showroom-page .rg-booking .wpcf7-submit,
.rg-showroom-page .rg-booking input[type="submit"] {
    background: var(--rg-booking-accent) !important;
    color: #06130b !important;
    -webkit-text-fill-color: #06130b !important;
}

.rg-showroom-page .rg-booking .wpcf7-submit:hover,
.rg-showroom-page .rg-booking input[type="submit"]:hover {
    background: var(--rg-booking-accent-hover) !important;
}

.rg-booking-close {
    border-color: rgba(57,201,107,.28) !important;
    background: rgba(57,201,107,.13) !important;
    color: #baf4ce !important;
}

/* Mobile portal form keeps exactly the same brand styling. */
@media (max-width: 900px) {
    body > .rg-booking.rg-booking-ported {
        background:
            radial-gradient(circle at 82% 4%, rgba(57,201,107,.10), transparent 27%),
            linear-gradient(180deg, var(--rg-booking-bg-2) 0%, var(--rg-booking-bg) 100%) !important;
        color: var(--rg-booking-text) !important;
    }

    body > .rg-booking.rg-booking-ported .rg-booking-head {
        background: rgba(7,19,26,.97) !important;
        border-bottom-color: var(--rg-booking-border) !important;
    }

    body > .rg-booking.rg-booking-ported .rg-section-kicker {
        color: #80e4a5 !important;
    }

    body > .rg-booking.rg-booking-ported h2,
    body > .rg-booking.rg-booking-ported label,
    body > .rg-booking.rg-booking-ported p,
    body > .rg-booking.rg-booking-ported span,
    body > .rg-booking.rg-booking-ported .wpcf7-list-item-label {
        color: var(--rg-booking-text) !important;
    }

    body > .rg-booking.rg-booking-ported input:not([type="radio"]):not([type="checkbox"]):not([type="submit"]),
    body > .rg-booking.rg-booking-ported select,
    body > .rg-booking.rg-booking-ported textarea {
        border-color: var(--rg-booking-border) !important;
        background: var(--rg-booking-surface) !important;
        color: var(--rg-booking-text) !important;
        -webkit-text-fill-color: var(--rg-booking-text) !important;
    }

    body > .rg-booking.rg-booking-ported input:focus,
    body > .rg-booking.rg-booking-ported select:focus,
    body > .rg-booking.rg-booking-ported textarea:focus {
        border-color: rgba(57,201,107,.62) !important;
        box-shadow: 0 0 0 3px rgba(57,201,107,.12) !important;
    }

    body > .rg-booking.rg-booking-ported input[type="radio"] {
        accent-color: var(--rg-booking-accent) !important;
    }

    body > .rg-booking.rg-booking-ported .wpcf7-submit,
    body > .rg-booking.rg-booking-ported input[type="submit"] {
        background: var(--rg-booking-accent) !important;
        color: #06130b !important;
        -webkit-text-fill-color: #06130b !important;
    }

    body > .rg-booking.rg-booking-ported .rg-booking-close {
        background: var(--rg-booking-accent) !important;
        border-color: rgba(255,255,255,.12) !important;
        color: #06130b !important;
        box-shadow: 0 10px 28px rgba(57,201,107,.20) !important;
    }

    body > .rg-booking.rg-booking-ported .rg-fast-confirm {
        background: rgba(255,255,255,.06) !important;
        color: var(--rg-booking-muted) !important;
    }
}

/* Compact pricing/booking hierarchy on small phones. */
@media (max-width: 640px) {
    .rg-rate-options {
        gap: 9px !important;
    }
    .rg-rate-option {
        min-height: 108px;
        padding: 14px !important;
    }
    .rg-rate-option strong {
        font-size: 21px !important;
    }
    .rg-booking-launch {
        background: #39c96b !important;
        color: #06130b !important;
        box-shadow: 0 10px 30px rgba(57,201,107,.13) !important;
    }
}

/* ==========================================================
   Rent&Go Dynamic Showroom v4.1
   Hover polish + confidence cards alignment
   ========================================================== */

.rg-rate-option {
    position: relative;
    overflow: hidden;
    transform: translateZ(0);
    transition:
        background-color .28s ease,
        border-color .28s ease,
        box-shadow .32s ease,
        transform .24s ease,
        color .28s ease !important;
}

.rg-rate-option::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at 18% 0%, rgba(255,255,255,.10), transparent 42%);
    opacity: 0;
    transition: opacity .28s ease;
}

@media (hover: hover) and (pointer: fine) {
    .rg-rate-option:not(.is-disabled):hover {
        transform: translateY(-3px);
        border-color: color-mix(in srgb, var(--rg-accent) 52%, transparent) !important;
        background: color-mix(in srgb, var(--rg-accent) 10%, var(--rg-panel-soft)) !important;
        box-shadow:
            0 14px 34px rgba(0,0,0,.16),
            0 0 0 1px color-mix(in srgb, var(--rg-accent) 12%, transparent);
    }

    .rg-rate-option:not(.is-disabled):hover::after {
        opacity: 1;
    }

    .rg-rate-option:not(.is-disabled):hover strong {
        color: var(--rg-accent-strong) !important;
    }
}

.rg-rate-option:not(.is-disabled):active {
    transform: translateY(-1px) scale(.992);
    transition-duration: .10s !important;
}

.rg-booking-launch,
.rg-summary-button,
.rg-showroom-page [data-open-booking],
.rg-showroom-page [data-scroll-booking] {
    position: relative;
    overflow: hidden;
    transition:
        background-color .30s ease,
        color .30s ease,
        border-color .30s ease,
        box-shadow .32s ease,
        transform .22s ease !important;
}

.rg-booking-launch::before,
.rg-summary-button::before,
.rg-showroom-page [data-open-booking]::before,
.rg-showroom-page [data-scroll-booking]::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(110deg, transparent 15%, rgba(255,255,255,.16) 45%, transparent 75%);
    transform: translateX(-120%);
    transition: transform .58s ease;
}

@media (hover: hover) and (pointer: fine) {
    .rg-booking-launch:hover,
    .rg-summary-button:hover,
    .rg-showroom-page [data-open-booking]:hover,
    .rg-showroom-page [data-scroll-booking]:hover {
        transform: translateY(-2px);
        background: color-mix(in srgb, var(--rg-accent) 86%, white 14%) !important;
        box-shadow:
            0 14px 32px color-mix(in srgb, var(--rg-accent) 20%, transparent),
            0 0 0 1px color-mix(in srgb, var(--rg-accent) 16%, transparent);
    }

    .rg-booking-launch:hover::before,
    .rg-summary-button:hover::before,
    .rg-showroom-page [data-open-booking]:hover::before,
    .rg-showroom-page [data-scroll-booking]:hover::before {
        transform: translateX(120%);
    }
}

.rg-booking-launch:active,
.rg-summary-button:active,
.rg-showroom-page [data-open-booking]:active,
.rg-showroom-page [data-scroll-booking]:active {
    transform: translateY(0) scale(.992);
    transition-duration: .10s !important;
}

/* Confidence cards: center the content and prevent text overflow. */
.rg-confidence-grid {
    align-items: stretch;
}

.rg-confidence-grid article {
    grid-template-columns: 46px minmax(0, 1fr) !important;
    align-items: center !important;
    min-width: 0;
    padding: 18px 20px !important;
}

.rg-confidence-copy {
    min-width: 0 !important;
    width: 100%;
}

.rg-confidence-grid h3,
.rg-confidence-grid p {
    max-width: 100% !important;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
}

.rg-confidence-grid h3 {
    margin: 0 0 4px !important;
    font-size: clamp(14px, 1.05vw, 17px) !important;
    line-height: 1.12 !important;
}

.rg-confidence-grid p {
    margin: 0 !important;
    font-size: clamp(12px, .88vw, 14px) !important;
    line-height: 1.42 !important;
}

.rg-confidence-icon {
    align-self: center !important;
    justify-self: center !important;
}

@media (min-width: 901px) and (max-width: 1220px) {
    .rg-confidence-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .rg-confidence-grid article {
        min-height: 116px;
    }
}

@media (min-width: 1221px) {
    .rg-confidence-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    }

    .rg-confidence-grid article {
        min-height: 120px;
    }
}

@media (max-width: 640px) {
    .rg-confidence-grid article {
        grid-template-columns: 40px minmax(0, 1fr) !important;
        gap: 12px !important;
        padding: 14px !important;
        min-height: 108px;
    }

    .rg-confidence-grid h3 {
        font-size: 14px !important;
    }

    .rg-confidence-grid p {
        font-size: 12px !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rg-rate-option,
    .rg-booking-launch,
    .rg-summary-button,
    .rg-showroom-page [data-open-booking],
    .rg-showroom-page [data-scroll-booking],
    .rg-rate-option::after,
    .rg-booking-launch::before,
    .rg-summary-button::before,
    .rg-showroom-page [data-open-booking]::before,
    .rg-showroom-page [data-scroll-booking]::before {
        transition: none !important;
        transform: none !important;
    }
}

/* ==========================================================
   Rent&Go Dynamic Showroom v4.2
   Performance-first motion: instant response, soft finish.
   ========================================================== */

/* Gallery: very short opacity polish, never zoom while switching. */
.rg-showroom-page .rg-main-photo {
    transition: opacity 90ms linear !important;
    will-change: opacity;
}

.rg-showroom-page .rg-main-photo.is-changing,
.rg-main-photo.is-changing {
    opacity: .86 !important;
    transform: none !important;
}

@media (min-width: 901px) {
    .rg-showroom-page .rg-main-photo {
        transform: scale(1.055) !important;
    }

    .rg-showroom-page .rg-main-photo.is-changing {
        transform: scale(1.055) !important;
    }
}

/* The ambient blurred layer stays static while slides change.
   A little less blur = significantly cheaper mobile GPU compositing. */
.rg-backdrop-photo {
    filter: blur(18px) saturate(.80) brightness(.48) !important;
    transform: scale(1.035) !important;
    will-change: auto !important;
}

/* Thumbnails and gallery controls should feel immediate. */
.rg-gallery-thumb,
.rg-gallery-arrow,
.rg-gallery-fullscreen {
    transition:
        border-color 120ms ease-out,
        background-color 120ms ease-out,
        opacity 120ms ease-out,
        transform 120ms ease-out !important;
}

@media (hover: hover) and (pointer: fine) {
    .rg-gallery-thumb:hover,
    .rg-gallery-arrow:hover,
    .rg-gallery-fullscreen:hover {
        transform: translateY(-1px) !important;
    }
}

/* Insurance: no shimmer/no loading sweep, only crisp material response. */
.rg-rate-option {
    transition:
        background-color 145ms ease-out,
        border-color 145ms ease-out,
        box-shadow 160ms ease-out,
        transform 130ms ease-out !important;
}

.rg-rate-option::after {
    display: none !important;
}

@media (hover: hover) and (pointer: fine) {
    .rg-rate-option:not(.is-disabled):hover {
        transform: translateY(-1px) !important;
        box-shadow:
            0 9px 22px rgba(0,0,0,.12),
            0 0 0 1px color-mix(in srgb, var(--rg-accent) 11%, transparent) !important;
    }
}

.rg-rate-option:not(.is-disabled):active {
    transform: scale(.995) !important;
}

/* "Обрати дати": remove moving shine entirely.
   Color responds immediately, then settles smoothly. */
.rg-booking-launch,
.rg-summary-button,
.rg-showroom-page [data-open-booking],
.rg-showroom-page [data-scroll-booking] {
    transition:
        background-color 150ms ease-out,
        color 150ms ease-out,
        border-color 150ms ease-out,
        box-shadow 170ms ease-out,
        transform 130ms ease-out !important;
}

.rg-booking-launch::before,
.rg-summary-button::before,
.rg-showroom-page [data-open-booking]::before,
.rg-showroom-page [data-scroll-booking]::before {
    display: none !important;
}

@media (hover: hover) and (pointer: fine) {
    .rg-booking-launch:hover,
    .rg-summary-button:hover,
    .rg-showroom-page [data-open-booking]:hover,
    .rg-showroom-page [data-scroll-booking]:hover {
        transform: translateY(-1px) !important;
        filter: brightness(1.045);
        box-shadow:
            0 9px 22px color-mix(in srgb, var(--rg-accent) 14%, transparent) !important;
    }
}

.rg-booking-launch:active,
.rg-summary-button:active,
.rg-showroom-page [data-open-booking]:active,
.rg-showroom-page [data-scroll-booking]:active {
    transform: scale(.995) !important;
    transition-duration: 70ms !important;
}

/* Don't animate layout-heavy properties on touch devices. */
@media (hover: none), (pointer: coarse) {
    .rg-rate-option,
    .rg-booking-launch,
    .rg-summary-button,
    .rg-gallery-thumb,
    .rg-gallery-arrow,
    .rg-gallery-fullscreen {
        transition-duration: 90ms !important;
    }
}

/* Avoid accidental animation stacking from old rules. */
.rg-gallery-stage,
.rg-gallery,
.rg-showroom-gallery {
    transition: none !important;
}
