:root {
    --ray-red: #e31e24;
    --ray-red-hover: #c9181e;
    --ray-charcoal: #202327;
    --ray-black: #111315;
    --ray-page: #f5f6f7;
    --ray-card: #ffffff;
    --ray-border: #dedfe2;
    --ray-text: #24272b;
    --ray-muted: #6f747b;
    --ray-shadow: 0 14px 38px rgba(22, 25, 28, .12);
}

/* Dedicated floor-heating installation workspace */
.public-ray-floor-hub {
    display: grid;
    gap: 22px;
}

.public-ray-floor-hub[hidden],
.public-ray-chat-card[hidden] {
    display: none !important;
}

.public-ray-floor-hub__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 370px);
    gap: 28px;
    align-items: center;
    padding: 34px 38px;
    overflow: hidden;
    border-radius: 20px;
    background:
        radial-gradient(circle at 92% 0, rgba(227,30,36,.18), transparent 40%),
        linear-gradient(135deg, #fff 0%, #f3f4f5 100%);
    box-shadow: 0 10px 32px rgba(22,25,28,.08);
}

.public-ray-floor-hub__header h1 {
    margin: 0;
    color: var(--ray-charcoal);
    font-size: clamp(2rem, 4vw, 3.7rem);
    line-height: 1;
    letter-spacing: -.045em;
}

.public-ray-floor-hub__header p {
    max-width: 680px;
    margin: 16px 0 0;
    color: var(--ray-muted);
    font-size: 1rem;
    line-height: 1.55;
}

.public-ray-floor-hero-ask {
    display: grid;
    width: min(650px, 100%);
    grid-template-columns: 126px minmax(0, 1fr) auto;
    gap: 15px;
    align-items: center;
    margin-top: 25px;
    padding: 12px 14px 12px 12px;
    border: 1px solid rgba(227, 30, 36, .24);
    border-radius: 16px;
    background: rgba(255, 255, 255, .92);
    color: var(--ray-charcoal);
    text-align: left;
    box-shadow: 0 10px 28px rgba(22, 25, 28, .09);
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.public-ray-floor-hero-ask:hover,
.public-ray-floor-hero-ask:focus-visible {
    border-color: rgba(227, 30, 36, .58);
    transform: translateY(-2px);
    box-shadow: 0 14px 32px rgba(22, 25, 28, .13);
}

.public-ray-floor-hero-ask > img {
    width: 126px;
    height: 84px;
    border: 0;
    border-radius: 0;
    background: transparent;
    object-fit: contain;
    box-shadow: none;
}

.public-ray-floor-hero-ask > span {
    display: grid;
    gap: 2px;
}

.public-ray-floor-hero-ask small {
    color: var(--ray-red);
    font-size: .64rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.public-ray-floor-hero-ask strong {
    font-size: 1rem;
    line-height: 1.25;
}

.public-ray-floor-hero-ask em {
    color: var(--ray-muted);
    font-size: .72rem;
    font-style: normal;
    line-height: 1.35;
}

.public-ray-floor-hero-ask > i {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    padding: 10px 13px;
    border-radius: 999px;
    background: var(--ray-red);
    color: #fff;
    font-size: .72rem;
    font-style: normal;
    font-weight: 850;
    white-space: nowrap;
}

.public-ray-floor-hub__product {
    display: flex;
    min-width: 0;
    flex-direction: column;
    padding: 22px;
    border: 1px solid rgba(227,30,36,.18);
    border-radius: 15px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 8px 24px rgba(22,25,28,.08);
}

.public-ray-floor-hub__product-heading {
    display: flex;
    align-items: center;
    gap: 10px;
}

.public-ray-floor-hub__product-heading > span {
    color: var(--ray-red);
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.public-ray-floor-hub__product strong {
    margin-top: 7px;
    color: var(--ray-charcoal);
    font-size: 1.08rem;
    line-height: 1.3;
}

.public-ray-floor-hub__product code {
    width: fit-content;
    margin-top: 9px;
    padding: 5px 9px;
    border-radius: 6px;
    background: var(--ray-charcoal);
    color: #fff;
    font-family: inherit;
    font-size: .78rem;
    font-weight: 800;
}

#publicRayFloorProductFacts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 13px;
}

#publicRayFloorProductFacts span {
    padding: 5px 8px;
    border: 1px solid #e0e2e4;
    border-radius: 999px;
    color: #555b61;
    font-size: .69rem;
    font-weight: 700;
}

.public-ray-floor-lookup {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(360px, 1.1fr);
    gap: 24px;
    align-items: center;
    padding: 22px 26px;
    border: 1px solid var(--ray-border);
    border-radius: 15px;
    background: #fff;
}

.public-ray-floor-lookup > div:first-child {
    display: grid;
    gap: 4px;
}

.public-ray-floor-lookup strong {
    color: var(--ray-charcoal);
    font-size: 1rem;
}

.public-ray-floor-lookup span,
.public-ray-floor-lookup p {
    color: var(--ray-muted);
    font-size: .78rem;
    line-height: 1.45;
}

.public-ray-floor-lookup__controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.public-ray-floor-lookup input {
    min-width: 0;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #cfd2d5;
    border-radius: 9px;
    outline: none;
    text-transform: uppercase;
}

.public-ray-floor-lookup input:focus {
    border-color: var(--ray-red);
    box-shadow: 0 0 0 3px rgba(227,30,36,.1);
}

.public-ray-floor-lookup button {
    min-height: 48px;
    padding: 0 18px;
    border: 0;
    border-radius: 9px;
    background: var(--ray-red);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.public-ray-floor-lookup p {
    grid-column: 1 / -1;
    margin: -10px 0 0;
    color: var(--ray-red);
    font-weight: 700;
}

.public-ray-floor-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.public-ray-floor-action {
    display: grid;
    min-height: 128px;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: start;
    padding: 20px;
    border: 1px solid var(--ray-border);
    border-radius: 14px;
    background: #fff;
    color: var(--ray-text);
    text-align: left;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(22,25,28,.04);
    transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}

.public-ray-floor-action:hover,
.public-ray-floor-action:focus-visible {
    border-color: rgba(227,30,36,.55);
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(22,25,28,.09);
}

.public-ray-floor-action--ask {
    border-color: rgba(227,30,36,.22);
    background: linear-gradient(135deg, #fff, #fff5f5);
}

.public-ray-floor-action__icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 10px;
    background: rgba(227,30,36,.09);
    color: var(--ray-red);
    font-size: 1rem;
    font-weight: 900;
}

.public-ray-floor-action > span:nth-child(2) {
    display: grid;
    gap: 6px;
}

.public-ray-floor-action strong {
    color: var(--ray-charcoal);
    font-size: .9rem;
    line-height: 1.25;
}

.public-ray-floor-action small {
    color: var(--ray-muted);
    font-size: .72rem;
    line-height: 1.42;
}

.public-ray-floor-action i {
    color: var(--ray-red);
    font-style: normal;
    font-weight: 900;
}

.public-ray-floor-action em {
    padding: 4px 7px;
    border-radius: 999px;
    background: #f0f1f2;
    color: #747980;
    font-size: .58rem;
    font-style: normal;
    font-weight: 850;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.public-ray-floor-library {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.public-ray-floor-library > section {
    padding: 24px;
    border: 1px solid var(--ray-border);
    border-radius: 15px;
    background: #fff;
}

.public-ray-floor-section-heading span {
    color: var(--ray-red);
    font-size: .65rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.public-ray-floor-section-heading h2 {
    margin: 4px 0 14px;
    font-size: 1.15rem;
}

.public-ray-floor-resource-list {
    display: grid;
    gap: 8px;
}

.public-ray-floor-resource {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 11px;
    border-radius: 9px;
    background: #f5f6f7;
    color: var(--ray-text);
    text-decoration: none;
}

.public-ray-floor-resource:hover,
.public-ray-floor-resource:focus-visible {
    background: #eceeef;
}

.public-ray-floor-resource__icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 8px;
    background: var(--ray-charcoal);
    color: #fff;
    font-size: .62rem;
    font-weight: 900;
}

.public-ray-floor-resource > span:nth-child(2) {
    display: grid;
    gap: 2px;
}

.public-ray-floor-resource strong {
    font-size: .78rem;
    line-height: 1.3;
}

.public-ray-floor-resource small {
    color: var(--ray-muted);
    font-size: .67rem;
}

.public-ray-floor-resource i {
    color: var(--ray-red);
    font-style: normal;
}

.public-ray-floor-resource-empty,
.public-ray-floor-notice {
    padding: 14px;
    border-radius: 9px;
    background: #f5f6f7;
    color: var(--ray-muted);
    font-size: .76rem;
    line-height: 1.5;
}

.public-ray-floor-notice {
    border-left: 4px solid var(--ray-red);
    background: #fff;
    box-shadow: 0 6px 18px rgba(22,25,28,.05);
}

.public-ray-floor-walkthrough {
    padding: 26px;
    border: 1px solid rgba(227,30,36,.2);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(22,25,28,.07);
}

.public-ray-floor-walkthrough > header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.public-ray-floor-walkthrough > header span {
    color: var(--ray-red);
    font-size: .65rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.public-ray-floor-walkthrough h2 {
    margin: 4px 0 7px;
    font-size: 1.35rem;
}

.public-ray-floor-walkthrough > header p {
    max-width: 780px;
    margin: 0;
    color: var(--ray-muted);
    font-size: .75rem;
    line-height: 1.5;
}

.public-ray-floor-walkthrough > header > button {
    flex: 0 0 auto;
    padding: 8px 11px;
    border: 1px solid var(--ray-border);
    border-radius: 8px;
    background: #fff;
    color: var(--ray-muted);
    font-size: .7rem;
    font-weight: 750;
    cursor: pointer;
}

.public-ray-floor-walkthrough__safety {
    margin-top: 12px;
    padding: 10px 12px;
    border-left: 4px solid var(--ray-red);
    border-radius: 8px;
    background: #fff3f3;
    color: #5b2022;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.45;
}

.public-ray-floor-walkthrough__progress {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    margin: 22px 0;
    color: var(--ray-muted);
    font-size: .7rem;
    font-weight: 750;
}

.public-ray-floor-walkthrough__progress > div {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: #eceeef;
}

.public-ray-floor-walkthrough__progress i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: var(--ray-red);
    transition: width .2s ease;
}

.public-ray-floor-walkthrough__body {
    display: grid;
    grid-template-columns: minmax(260px, .72fr) minmax(0, 1fr);
    gap: 18px;
}

#publicRayFloorWalkthroughSteps {
    display: grid;
    gap: 6px;
}

#publicRayFloorWalkthroughSteps > button {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding: 9px 10px;
    border: 1px solid transparent;
    border-radius: 9px;
    background: #f5f6f7;
    color: var(--ray-muted);
    text-align: left;
    cursor: pointer;
}

#publicRayFloorWalkthroughSteps > button.is-active {
    border-color: rgba(227,30,36,.35);
    background: #fff5f5;
    color: var(--ray-charcoal);
}

#publicRayFloorWalkthroughSteps > button.is-complete span {
    background: #308653;
}

#publicRayFloorWalkthroughSteps > button span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: #737980;
    color: #fff;
    font-size: .68rem;
    font-weight: 850;
}

#publicRayFloorWalkthroughSteps > button.is-active span {
    background: var(--ray-red);
}

#publicRayFloorWalkthroughSteps > button strong {
    font-size: .72rem;
    line-height: 1.3;
}

#publicRayFloorWalkthroughDetail {
    padding: 24px;
    border-radius: 12px;
    background: var(--ray-charcoal);
    color: #fff;
}

#publicRayFloorWalkthroughNumber {
    color: #ff777b;
    font-size: .67rem;
    font-weight: 850;
    letter-spacing: .07em;
    text-transform: uppercase;
}

#publicRayFloorWalkthroughDetail h3 {
    margin: 8px 0 10px;
    font-size: 1.25rem;
}

#publicRayFloorWalkthroughDetail p {
    margin: 0;
    color: rgba(255,255,255,.76);
    font-size: .78rem;
    line-height: 1.6;
}

.public-ray-floor-walkthrough__image {
    width: 100%;
    max-height: 320px;
    margin: 4px 0 16px;
    border-radius: 10px;
    background: #fff;
    object-fit: contain;
}

.public-ray-floor-walkthrough__points {
    display: grid;
    gap: 7px;
    margin: 15px 0 0;
    padding-left: 19px;
    color: rgba(255,255,255,.82);
    font-size: .74rem;
    line-height: 1.45;
}

.public-ray-floor-walkthrough__warning {
    margin-top: 15px;
    padding: 11px 12px;
    border-left: 4px solid #ff555b;
    border-radius: 8px;
    background: rgba(227,30,36,.17);
    color: #fff;
    font-size: .73rem;
    font-weight: 700;
    line-height: 1.45;
}

.public-ray-floor-walkthrough__video {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    margin-top: 15px;
    padding: 9px 11px;
    border-radius: 8px;
    background: #fff;
    color: var(--ray-charcoal);
    font-size: .71rem;
    font-weight: 800;
    text-decoration: none;
}

.public-ray-floor-walkthrough__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.public-ray-floor-walkthrough__actions button {
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 8px;
    background: transparent;
    color: #fff;
    font-size: .7rem;
    font-weight: 800;
    cursor: pointer;
}

.public-ray-floor-walkthrough__actions button:last-child {
    border-color: var(--ray-red);
    background: var(--ray-red);
}

.public-ray-page.is-floor-heating-support .public-ray-chat-card {
    margin-top: 22px;
    border-top: 4px solid var(--ray-red);
}

.public-ray-close-floor-chat {
    margin-left: 14px;
}

@media (min-width: 821px) {
    .public-ray-page.is-floor-heating-support {
        display: block;
        width: min(1180px, calc(100% - 32px));
        overflow-y: auto;
        scrollbar-gutter: stable;
    }

    .public-ray-page.is-floor-heating-support .public-ray-chat-card {
        width: min(760px, 100%);
        height: 460px;
        min-height: 420px;
        margin-right: auto;
        margin-left: auto;
    }
}

@media (max-width: 820px) {
    body:has(.public-ray-page.is-floor-heating-support),
    body:has(.public-ray-page.is-floor-heating-support) > main {
        height: auto;
        min-height: 100%;
        overflow: visible;
    }

    .public-ray-page.is-floor-heating-support {
        display: block;
        width: min(100% - 24px, 760px);
        height: auto;
        padding: 12px 0 28px;
        overflow: visible;
    }

    .public-ray-floor-hub__header,
    .public-ray-floor-lookup,
    .public-ray-floor-library,
    .public-ray-floor-walkthrough__body {
        grid-template-columns: 1fr;
    }

    .public-ray-floor-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .public-ray-page.is-floor-heating-support .public-ray-chat-card {
        height: 520px;
        min-height: 460px;
        border: 1px solid var(--ray-border);
        border-top: 4px solid var(--ray-red);
        border-radius: 14px;
    }
}

/* Mobile-first floor-heating installation photo check */
.public-ray-inspection {
    margin: 28px 0;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 55px rgba(20, 25, 29, .13);
    overflow: hidden;
}

.public-ray-inspection__header {
    display: flex;
    justify-content: space-between;
    gap: 28px;
    padding: 30px 34px;
    background: #202428;
    color: #fff;
}

.public-ray-inspection__header span,
.public-ray-inspection__review > span,
.public-ray-inspection__results > span,
.public-ray-inspection__desktop > div > span {
    color: #ff777b;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.public-ray-inspection__header h2 {
    margin: 5px 0 8px;
    font-size: clamp(1.65rem, 3vw, 2.4rem);
    line-height: 1.12;
}

.public-ray-inspection__header p {
    max-width: 700px;
    margin: 0;
    color: #d7dade;
    font-size: .95rem;
    line-height: 1.55;
}

.public-ray-inspection__header button,
.public-ray-inspection button {
    border: 0;
    border-radius: 12px;
    background: #e31e24;
    color: #fff;
    font: inherit;
    font-weight: 750;
    cursor: pointer;
}

.public-ray-inspection__header button {
    align-self: flex-start;
    padding: 10px 15px;
    background: #fff;
    color: #202428;
}

.public-ray-inspection__notice {
    margin: 24px 34px 0;
    padding: 17px 19px;
    border-left: 5px solid #e31e24;
    border-radius: 8px;
    background: #fff3f3;
}

.public-ray-inspection__notice strong {
    display: block;
    margin-bottom: 4px;
    font-size: .9rem;
}

.public-ray-inspection__notice p {
    margin: 0;
    color: #4e555a;
    font-size: .82rem;
    line-height: 1.55;
}

.public-ray-inspection__mode {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    padding: 28px 34px 40px;
}

.public-ray-inspection__mode-heading {
    grid-column: 1 / -1;
    margin-bottom: 4px;
}

.public-ray-inspection__mode-heading > span {
    color: #e31e24;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.public-ray-inspection__mode-heading h3 {
    margin: 5px 0 0;
    color: #202428;
    font-size: 1.45rem;
}

.public-ray-inspection__mode > button {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 6px 18px;
    min-height: 132px;
    padding: 22px;
    border: 2px solid #e1e3e5;
    background: #fff;
    color: #202428;
    text-align: left;
}

.public-ray-inspection__mode > button:hover,
.public-ray-inspection__mode > button:focus-visible {
    border-color: #e31e24;
    box-shadow: 0 10px 25px rgba(227, 30, 36, .09);
}

.public-ray-inspection__mode > button strong {
    font-size: 1.05rem;
}

.public-ray-inspection__mode > button span {
    grid-column: 1;
    color: #60676d;
    font-size: .82rem;
    font-weight: 500;
    line-height: 1.5;
}

.public-ray-inspection__mode > button i {
    grid-column: 2;
    grid-row: 1 / span 2;
    align-self: center;
    color: #e31e24;
    font-size: 1.25rem;
    font-style: normal;
}

.public-ray-inspection__mode-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 17px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f1f2f3;
}

.public-ray-inspection__mode-summary span {
    color: #202428;
    font-size: .78rem;
    font-weight: 800;
}

.public-ray-inspection__mode-summary button {
    padding: 5px 8px;
    background: transparent;
    color: #c4161c;
    font-size: .7rem;
    text-decoration: underline;
}

.public-ray-inspection__desktop {
    display: grid;
    grid-template-columns: 180px minmax(0, 560px);
    justify-content: center;
    align-items: center;
    gap: 38px;
    padding: 44px 34px 52px;
}

.public-ray-inspection__desktop > img {
    width: 100%;
    max-height: 220px;
    object-fit: contain;
}

.public-ray-inspection__desktop h3,
.public-ray-inspection__review h3,
.public-ray-inspection__results h3 {
    margin: 5px 0 10px;
    color: #202428;
    font-size: 1.55rem;
    line-height: 1.2;
}

.public-ray-inspection__desktop p,
.public-ray-inspection__review > p,
.public-ray-inspection__results > p {
    margin: 0 0 18px;
    color: #60676d;
    line-height: 1.55;
}

.public-ray-inspection__handoff-url {
    margin-bottom: 14px;
    padding: 13px 15px;
    border: 1px solid #d7dade;
    border-radius: 10px;
    background: #f6f7f8;
    color: #202428;
    font-size: .82rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.public-ray-inspection__desktop button,
.public-ray-inspection__review > button,
.public-ray-inspection__results > button {
    min-height: 48px;
    padding: 12px 18px;
}

.public-ray-inspection button.is-secondary {
    border: 1px solid #e31e24;
    background: #fff;
    color: #c4161c;
}

.public-ray-inspection__desktop button + button {
    margin-left: 8px;
}

.public-ray-inspection__mobile {
    padding: 28px 34px 40px;
}

.public-ray-inspection__progress {
    margin-bottom: 22px;
}

.public-ray-inspection__progress > span {
    display: block;
    margin-bottom: 8px;
    color: #4f555a;
    font-size: .82rem;
    font-weight: 750;
}

.public-ray-inspection__progress > div {
    height: 8px;
    border-radius: 999px;
    background: #e7e9eb;
    overflow: hidden;
}

.public-ray-inspection__progress i {
    display: block;
    width: 20%;
    height: 100%;
    border-radius: inherit;
    background: #e31e24;
    transition: width .25s ease;
}

.public-ray-inspection__capture {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 0 18px;
    max-width: 760px;
    margin: 0 auto;
}

.public-ray-inspection__step-number {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #e31e24;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
}

.public-ray-inspection__capture-copy > span {
    color: #e31e24;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.public-ray-inspection__capture-copy h3 {
    margin: 4px 0 9px;
    color: #202428;
    font-size: 1.55rem;
    line-height: 1.2;
}

.public-ray-inspection__capture-copy > p {
    margin: 0;
    color: #40464b;
    font-size: 1rem;
    line-height: 1.55;
}

.public-ray-inspection__capture-copy ul {
    margin: 17px 0 0;
    padding: 16px 18px 16px 38px;
    border-radius: 12px;
    background: #f4f5f6;
    color: #3f454a;
    font-size: .86rem;
    line-height: 1.55;
}

.public-ray-inspection__capture-copy li + li {
    margin-top: 6px;
}

.public-ray-inspection__stage-photos {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 9px;
    margin-top: 17px;
}

.public-ray-inspection__stage-photos > div {
    position: relative;
    min-height: 86px;
    border-radius: 10px;
    background: #202428;
    overflow: hidden;
}

.public-ray-inspection__stage-photos img {
    display: block;
    width: 100%;
    height: 86px;
    object-fit: cover;
}

.public-ray-inspection__stage-photos span {
    position: absolute;
    left: 6px;
    bottom: 6px;
    padding: 3px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: #202428;
    font-size: .62rem;
    font-weight: 800;
}

.public-ray-inspection__stage-photos button {
    position: absolute;
    top: 5px;
    right: 5px;
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 2px solid #fff;
    border-radius: 50%;
    font-size: 1rem;
    line-height: 1;
}

.public-ray-inspection__photo,
.public-ray-inspection__capture-actions,
.public-ray-inspection__confirm-actions,
.public-ray-inspection__stage-actions {
    grid-column: 2;
}

.public-ray-inspection__photo {
    position: relative;
    margin-top: 20px;
    border-radius: 14px;
    background: #202428;
    overflow: hidden;
}

.public-ray-inspection__photo img {
    display: block;
    width: 100%;
    max-height: 430px;
    object-fit: contain;
}

.public-ray-inspection__photo span {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #fff;
    color: #202428;
    font-size: .72rem;
    font-weight: 800;
}

.public-ray-inspection__capture-actions,
.public-ray-inspection__confirm-actions,
.public-ray-inspection__stage-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 20px;
}

.public-ray-inspection__capture-actions button,
.public-ray-inspection__confirm-actions button,
.public-ray-inspection__stage-actions button {
    min-height: 54px;
    padding: 13px 16px;
}

.public-ray-inspection__stage-actions button:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.public-ray-inspection__skip {
    grid-column: 2;
    justify-self: start;
    margin-top: 14px;
    padding: 8px 2px;
    border-radius: 0 !important;
    background: transparent !important;
    color: #596066 !important;
    font-size: .78rem;
    font-weight: 650 !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.public-ray-inspection__skip:hover,
.public-ray-inspection__skip:focus-visible {
    color: #c4161c !important;
}

.public-ray-inspection__review,
.public-ray-inspection__results {
    max-width: 760px;
    margin: 0 auto;
}

#publicRayInspectionReviewList,
#publicRayInspectionResultList {
    display: grid;
    gap: 10px;
    margin: 22px 0;
}

#publicRayInspectionReviewList article {
    display: grid;
    grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) auto;
    align-items: start;
    gap: 13px;
    padding: 13px;
    border: 1px solid #e1e3e5;
    border-radius: 12px;
}

#publicRayInspectionReviewList article.is-skipped {
    border-style: dashed;
    background: #f7f8f8;
}

#publicRayInspectionReviewList article.is-skipped .public-ray-inspection__review-thumbs {
    display: inline-grid;
    place-items: center;
    width: fit-content;
    min-width: 92px;
    height: 34px;
    padding: 0 12px;
    border-radius: 7px;
    background: #e7e9eb;
    color: #62696e;
    font-size: .66rem;
    font-weight: 800;
}

.public-ray-inspection__review-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    width: 100%;
}

#publicRayInspectionReviewList img {
    width: 48px;
    height: 42px;
    border-radius: 4px;
    object-fit: cover;
}

#publicRayInspectionReviewList span,
#publicRayInspectionReviewList strong {
    display: block;
}

#publicRayInspectionReviewList span {
    color: #7a8085;
    font-size: .7rem;
}

#publicRayInspectionReviewList strong {
    margin-top: 2px;
    color: #202428;
    font-size: .86rem;
}

#publicRayInspectionReviewList button {
    padding: 8px 11px;
    background: #f1f2f3;
    color: #202428;
    font-size: .75rem;
}

.public-ray-inspection__review > button + button {
    margin-left: 8px;
}

#publicRayInspectionResultList article {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 108px;
    gap: 12px;
    padding: 15px;
    border: 1px solid #dfe2e4;
    border-left: 5px solid #8a9095;
    border-radius: 12px;
    background: #f8f9f9;
}

#publicRayInspectionResultList article > span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e5e7e9;
    font-weight: 800;
}

#publicRayInspectionResultList strong,
#publicRayInspectionResultList em,
#publicRayInspectionResultList p {
    display: block;
}

#publicRayInspectionResultList details {
    margin-top: 10px;
    border-top: 1px solid rgba(32, 36, 40, .12);
    padding-top: 9px;
}

#publicRayInspectionResultList details summary {
    width: fit-content;
    color: #b7191f;
    font-size: .8rem;
    font-weight: 800;
    cursor: pointer;
}

#publicRayInspectionResultList details p {
    margin-top: 9px;
}

.public-ray-inspection__summary {
    margin: 20px 0 8px;
    padding: 18px;
    border: 1px solid #dfe2e4;
    border-radius: 14px;
    background: #fff;
}

.public-ray-inspection__summary h4 {
    margin: 3px 0 4px;
    color: #202428;
    font-size: 1.05rem;
}

.public-ray-inspection__summary > span {
    color: #b7191f;
    font-size: .68rem;
    font-weight: 850;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.public-ray-inspection__summary > p {
    margin: 0 0 14px;
    color: #62696e;
    font-size: .8rem;
}

#publicRayInspectionSummaryChecks {
    display: grid;
    gap: 7px;
}

#publicRayInspectionSummaryChecks > div {
    display: grid;
    grid-template-columns: 27px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    min-height: 42px;
    padding: 8px 10px;
    border-radius: 9px;
    background: #f4f5f6;
}

#publicRayInspectionSummaryChecks span {
    display: grid;
    place-items: center;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #747b80;
    color: #fff;
    font-weight: 900;
}

#publicRayInspectionSummaryChecks strong {
    color: #252a2e;
    font-size: .86rem;
}

#publicRayInspectionSummaryChecks em {
    color: #62696e;
    font-size: .72rem;
    font-style: normal;
    font-weight: 750;
}

#publicRayInspectionSummaryChecks small {
    grid-column: 2 / -1;
    margin-top: -3px;
    color: #62696e;
    font-size: .75rem;
    line-height: 1.4;
}

#publicRayInspectionSummaryChecks .is-pass span { background: #23844b; }
#publicRayInspectionSummaryChecks .is-warn span { background: #c77900; }
#publicRayInspectionSummaryChecks .is-issue span { background: #e31e24; }

#publicRayInspectionAlarmConfirmation {
    margin-top: 14px;
    padding: 14px;
    border: 1px solid #e3b450;
    border-radius: 10px;
    background: #fff8e8;
}

#publicRayInspectionAlarmConfirmation strong,
#publicRayInspectionAlarmConfirmation p {
    display: block;
    margin: 0 0 8px;
}

#publicRayInspectionAlarmConfirmation > div {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

#publicRayInspectionAlarmConfirmation button {
    min-height: 40px;
    padding: 8px 11px;
    font-size: .76rem;
}

.public-ray-inspection__endpoint {
    margin-top: 12px !important;
    padding: 11px 13px;
    border-radius: 9px;
    background: #f1f2f3;
    font-size: .8rem;
}

.public-ray-inspection__result-photo {
    align-self: start;
    padding: 0;
    border: 0;
    border-radius: 9px;
    background: #202428;
    color: #fff;
    overflow: hidden;
}

.public-ray-inspection__result-photo img {
    display: block;
    width: 108px;
    height: 82px;
    object-fit: cover;
}

.public-ray-inspection__result-photo span {
    display: block;
    padding: 6px 5px;
    font-size: .66rem;
    font-weight: 800;
    text-align: center;
}

.public-ray-inspection__photo-viewer {
    width: min(94vw, 1100px);
    max-width: none;
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: #151719;
    color: #fff;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .45);
}

.public-ray-inspection__photo-viewer::backdrop {
    background: rgba(0, 0, 0, .78);
}

.public-ray-inspection__photo-viewer > div > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 14px;
}

.public-ray-inspection__viewer-switch {
    display: inline-flex;
    gap: 5px;
    margin-left: auto;
}

.public-ray-inspection__viewer-switch[hidden] {
    display: none;
}

.public-ray-inspection__viewer-switch button {
    display: inline-flex;
    width: auto;
    height: auto;
    min-height: 36px;
    align-items: center;
    padding: 7px 12px;
    border: 1px solid rgba(255,255,255,.34);
    border-radius: 8px;
    background: #2c3033;
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
}

.public-ray-inspection__photo-viewer strong {
    font-size: .9rem;
}

.public-ray-inspection__viewer-close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border-radius: 50%;
    background: #fff;
    color: #202428;
    font-size: 1.5rem;
}

.public-ray-inspection__photo-viewer img {
    display: block;
    width: 100%;
    max-height: calc(92vh - 72px);
    object-fit: contain;
}

#publicRayInspectionResultList em {
    margin-top: 5px;
    color: #5a6166;
    font-size: .72rem;
    font-style: normal;
    font-weight: 800;
}

#publicRayInspectionResultList p {
    margin: 8px 0 0;
    color: #4b5257;
    font-size: .82rem;
    line-height: 1.5;
    white-space: pre-line;
}

#publicRayInspectionResultList article.is-clear {
    border-left-color: #23844b;
    background: #f1faf5;
}

#publicRayInspectionResultList article.is-retry {
    border-left-color: #dd8a00;
    background: #fff9ed;
}

#publicRayInspectionResultList article.is-warning {
    border-left-color: #c77900;
    background: #fff6df;
}

#publicRayInspectionResultList article.is-attention {
    border-left-color: #e31e24;
    background: #fff1f1;
}

#publicRayInspectionResultList article.is-missing {
    border-left-color: #777e83;
    border-style: dashed;
    background: #f4f5f6;
}

@media (max-width: 900px) {
    .public-ray-inspection {
        margin: 18px -2px;
        border-radius: 17px;
    }

    .public-ray-inspection__header {
        padding: 22px 20px;
    }

    .public-ray-inspection__header h2 {
        font-size: 1.9rem;
        line-height: 1.15;
    }

    .public-ray-inspection__header p {
        font-size: 1.08rem;
        line-height: 1.55;
    }

    .public-ray-inspection__header button {
        flex: 0 0 auto;
    }

    .public-ray-inspection__notice {
        margin: 18px 18px 0;
        padding: 15px;
    }

    .public-ray-inspection__notice strong {
        font-size: 1.1rem;
    }

    .public-ray-inspection__notice p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .public-ray-inspection__mode {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 22px 18px 30px;
    }

    .public-ray-inspection__mode-heading {
        grid-column: 1;
    }

    .public-ray-inspection__mode-heading > span {
        font-size: .82rem;
    }

    .public-ray-inspection__mode-heading h3 {
        font-size: 1.55rem;
        line-height: 1.25;
    }

    .public-ray-inspection__mode > button {
        min-height: 124px;
        padding: 20px;
    }

    .public-ray-inspection__mode > button strong {
        font-size: 1.16rem;
    }

    .public-ray-inspection__mode > button span {
        color: #474d52;
        font-size: 1rem;
        line-height: 1.55;
    }

    .public-ray-inspection__mode-summary span {
        font-size: .95rem;
    }

    .public-ray-inspection__mode-summary button {
        min-height: 44px;
        font-size: .9rem;
    }

    .public-ray-inspection__mobile {
        padding: 22px 18px 30px;
    }

    .public-ray-inspection__progress > span {
        font-size: 1.05rem;
    }

    .public-ray-inspection__capture {
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 0 12px;
    }

    .public-ray-inspection__step-number {
        width: 46px;
        height: 46px;
        font-size: 1.2rem;
    }

    .public-ray-inspection__capture-copy h3 {
        font-size: 1.65rem;
        line-height: 1.25;
    }

    .public-ray-inspection__capture-copy > p {
        color: #343a3f;
        font-size: 1.14rem;
        line-height: 1.65;
    }

    .public-ray-inspection__capture-copy ul {
        padding: 15px 14px 15px 32px;
        color: #343a3f;
        font-size: 1.04rem;
        line-height: 1.6;
    }

    .public-ray-inspection__photo,
    .public-ray-inspection__capture-actions,
    .public-ray-inspection__confirm-actions,
    .public-ray-inspection__stage-actions,
    .public-ray-inspection__skip {
        grid-column: 1 / -1;
    }

    .public-ray-inspection__skip {
        justify-self: center;
        min-height: 44px;
        font-size: .9rem;
    }

    .public-ray-inspection__capture-actions,
    .public-ray-inspection__confirm-actions,
    .public-ray-inspection__stage-actions {
        grid-template-columns: 1fr;
    }

    .public-ray-inspection__capture-actions button,
    .public-ray-inspection__confirm-actions button,
    .public-ray-inspection__stage-actions button,
    .public-ray-inspection__review > button,
    .public-ray-inspection__results > button {
        width: 100%;
        min-height: 62px;
        font-size: 1.08rem;
    }

    .public-ray-inspection__review > button + button {
        margin: 10px 0 0;
    }

    #publicRayInspectionReviewList article {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: start;
        padding: 14px;
    }

    #publicRayInspectionReviewList img {
        width: 54px;
        height: 48px;
    }

    .public-ray-inspection__review-thumbs {
        grid-column: 1 / -1;
        width: 100%;
    }

    #publicRayInspectionReviewList span {
        font-size: .82rem;
    }

    #publicRayInspectionReviewList strong {
        font-size: 1rem;
    }

    #publicRayInspectionReviewList button {
        grid-column: 2;
        grid-row: 2;
        justify-self: end;
        min-height: 44px;
        font-size: .9rem;
    }

    #publicRayInspectionResultList strong {
        font-size: 1.05rem;
        line-height: 1.35;
    }

    #publicRayInspectionResultList em {
        font-size: .86rem;
    }

    #publicRayInspectionResultList p {
        color: #343a3f;
        font-size: 1rem;
        line-height: 1.65;
    }

    #publicRayInspectionResultList details summary {
        min-height: 44px;
        display: flex;
        align-items: center;
        font-size: .95rem;
    }

    .public-ray-inspection__summary {
        padding: 14px;
    }

    #publicRayInspectionSummaryChecks > div {
        grid-template-columns: 32px minmax(0, 1fr);
        min-height: 54px;
    }

    #publicRayInspectionSummaryChecks strong {
        font-size: 1rem;
    }

    #publicRayInspectionSummaryChecks em {
        grid-column: 2;
        font-size: .86rem;
    }

    #publicRayInspectionSummaryChecks small {
        grid-column: 2;
        font-size: .88rem;
    }

    #publicRayInspectionAlarmConfirmation > div {
        display: grid;
    }

    #publicRayInspectionAlarmConfirmation button {
        width: 100%;
        min-height: 50px;
        font-size: .95rem;
    }

    #publicRayInspectionResultList article {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .public-ray-inspection__result-photo {
        grid-column: 2;
        width: min(100%, 320px);
        justify-self: start;
    }

    .public-ray-inspection__result-photo img {
        width: 100%;
        height: 150px;
    }

    .public-ray-inspection__result-photo span {
        padding: 8px;
        font-size: .82rem;
    }
}

@media (max-width: 520px) {
    .public-ray-inspection__header {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 10px;
    }

    .public-ray-inspection__header > div {
        grid-column: 1 / -1;
    }

    .public-ray-inspection__header button {
        grid-row: 1;
        grid-column: 2;
    }
}

@media (max-width: 560px) {
    .public-ray-page.is-floor-heating-support {
        width: 100%;
        padding: 0 0 20px;
    }

    .public-ray-floor-hub {
        gap: 12px;
    }

    .public-ray-floor-hub__header {
        gap: 18px;
        padding: 24px 18px;
        border-radius: 0;
    }

    .public-ray-floor-hub__header h1 {
        font-size: 2.2rem;
    }

    .public-ray-floor-lookup,
    .public-ray-floor-library > section {
        margin: 0 12px;
        padding: 18px;
    }

    .public-ray-floor-lookup__controls,
    .public-ray-floor-actions,
    .public-ray-floor-library {
        grid-template-columns: 1fr;
    }

    .public-ray-floor-walkthrough {
        margin: 0 12px;
        padding: 18px;
    }

    .public-ray-floor-walkthrough > header {
        flex-direction: column;
    }

    .public-ray-floor-actions {
        padding: 0 12px;
    }

    .public-ray-floor-action {
        min-height: 104px;
    }

    .public-ray-floor-notice {
        margin: 0 12px;
    }

    .public-ray-page.is-floor-heating-support .public-ray-chat-card {
        width: calc(100% - 24px);
        height: 520px;
        min-height: 460px;
        margin: 12px;
        border-radius: 14px;
    }
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    min-height: 100%;
    background: var(--ray-page);
    color: var(--ray-text);
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

body {
    min-height: 100vh;
}

button, textarea {
    font: inherit;
}

.public-ray-site-header {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0 32px;
    background: linear-gradient(90deg, var(--ray-black), var(--ray-charcoal));
    color: #fff;
}

.public-ray-site-header__brand,
.public-ray-site-header__back {
    color: #fff;
    text-decoration: none;
}

.public-ray-radiant-wordmark {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.public-ray-site-header__back {
    color: rgba(255,255,255,.72);
    font-size: .82rem;
}

    .public-ray-site-header__back:hover {
        color: #fff;
    }

.public-ray-page {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
    padding: 34px 0 44px;
}

.public-ray-hero {
    display: grid;
    min-height: 225px;
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: center;
    gap: 32px;
    overflow: hidden;
    margin-bottom: 20px;
    padding: 28px 36px;
    border-radius: 18px;
    background: radial-gradient(circle at 78% 20%, rgba(227,30,36,.15), transparent 32%), linear-gradient(135deg, #fff, #f2f3f4);
    box-shadow: 0 8px 28px rgba(22,25,28,.06);
}

.public-ray-eyebrow {
    margin-bottom: 8px;
    color: var(--ray-red);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.public-ray-hero h1 {
    margin: 0;
    color: var(--ray-charcoal);
    font-size: clamp(2rem, 4vw, 3.7rem);
    line-height: 1.02;
    letter-spacing: -.045em;
}

    .public-ray-hero h1 span {
        color: var(--ray-red);
    }

.public-ray-hero p {
    max-width: 680px;
    margin: 15px 0 0;
    color: var(--ray-muted);
    font-size: 1rem;
    line-height: 1.55;
}

.public-ray-hero__ray {
    width: 250px;
    max-width: 100%;
    justify-self: end;
    transform: translateY(25px);
}

.public-ray-page.is-floor-heating-support .public-ray-hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 390px);
    align-items: stretch;
    background:
        radial-gradient(circle at 76% 12%, rgba(227,30,36,.13), transparent 34%),
        linear-gradient(135deg, #fff, #f2f3f4);
}

.public-ray-page.is-floor-heating-support .public-ray-context {
    align-self: stretch;
}

.public-ray-page.is-floor-heating-support .public-ray-context__idle {
    height: 100%;
}

.public-ray-kit-card {
    display: flex;
    width: 100%;
    height: 100%;
    flex-direction: column;
    padding: 22px;
    border: 1px solid rgba(227,30,36,.16);
    border-radius: 15px;
    background: rgba(255,255,255,.96);
    box-shadow: 0 10px 28px rgba(22,25,28,.09);
}

.public-ray-kit-card[hidden] {
    display: none;
}

.public-ray-kit-card__eyebrow {
    margin-bottom: 7px;
    color: var(--ray-red);
    font-size: .7rem;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.public-ray-kit-card h2 {
    margin: 0;
    color: var(--ray-charcoal);
    font-size: 1.15rem;
    line-height: 1.25;
}

.public-ray-kit-card__sku {
    width: fit-content;
    margin-top: 8px;
    padding: 4px 8px;
    border-radius: 6px;
    background: #262a2d;
    color: #fff;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .03em;
}

.public-ray-kit-card__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 13px;
}

.public-ray-kit-fact {
    padding: 5px 8px;
    border: 1px solid #e2e3e5;
    border-radius: 999px;
    background: #f7f7f8;
    color: #555b61;
    font-size: .7rem;
    font-weight: 700;
}

.public-ray-kit-card__resources {
    margin-top: 17px;
    padding-top: 14px;
    border-top: 1px solid #e5e6e8;
}

.public-ray-kit-card__resources h3 {
    margin: 0 0 8px;
    font-size: .8rem;
}

.public-ray-kit-resource-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 7px;
    padding: 9px 10px;
    border-radius: 8px;
    background: #292d30;
    color: #fff;
    font-size: .72rem;
    font-weight: 750;
    line-height: 1.25;
    text-decoration: none;
}

.public-ray-kit-resource-link:hover,
.public-ray-kit-resource-link:focus-visible {
    background: #111416;
    color: #fff;
}

.public-ray-kit-resource-link span:last-child {
    flex: 0 0 auto;
}

.public-ray-kit-card__inspection {
    margin-top: auto;
    padding: 13px;
    border: 1px dashed #cfd2d5;
    border-radius: 10px;
    background: #f7f8f8;
}

.public-ray-kit-card__inspection strong,
.public-ray-kit-card__inspection p {
    display: block;
}

.public-ray-kit-card__inspection strong {
    margin-top: 5px;
    font-size: .82rem;
}

.public-ray-kit-card__inspection p {
    margin: 4px 0 0;
    color: var(--ray-muted);
    font-size: .69rem;
    line-height: 1.4;
}

.public-ray-kit-card__coming-soon {
    display: inline-block;
    padding: 3px 7px;
    border-radius: 999px;
    background: rgba(227,30,36,.1);
    color: var(--ray-red);
    font-size: .62rem;
    font-weight: 850;
    letter-spacing: .06em;
    text-transform: uppercase;
}

@media (max-width: 820px) {
    .public-ray-page.is-floor-heating-support .public-ray-hero {
        grid-template-columns: 1fr;
    }

    .public-ray-kit-card {
        height: auto;
    }

    .public-ray-kit-card__inspection {
        margin-top: 16px;
    }
}

.public-ray-chat-card {
    display: grid;
    height: min(720px, calc(100vh - 120px));
    min-height: 600px;
    grid-template-rows: auto minmax(0,1fr) auto auto;
    overflow: hidden;
    border: 1px solid var(--ray-border);
    border-radius: 16px;
    background: var(--ray-card);
    box-shadow: var(--ray-shadow);
}

.public-ray-chat-header {
    display: flex;
    min-height: 70px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 10px 16px;
    border-bottom: 1px solid var(--ray-border);
    background: #fafafa;
}

.public-ray-chat-header__identity {
    display: flex;
    align-items: center;
    gap: 11px;
}

.public-ray-avatar {
    width: 48px;
    height: 48px;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 12px rgba(0,0,0,.10);
}

    .public-ray-avatar img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.public-ray-chat-header__identity strong,
.public-ray-chat-header__identity span {
    display: block;
}

.public-ray-chat-header__identity strong {
    font-size: .98rem;
}

.public-ray-chat-header__identity span {
    margin-top: 2px;
    color: var(--ray-muted);
    font-size: .76rem;
}

.public-ray-text-button {
    border: 0;
    background: transparent;
    color: var(--ray-red);
    font-size: .8rem;
    font-weight: 700;
    cursor: pointer;
}

.public-ray-messages {
    min-height: 0;
    overflow-y: auto;
    padding: 22px;
    background: linear-gradient(rgba(245,246,247,.92), rgba(245,246,247,.92)), radial-gradient(circle at top left, rgba(227,30,36,.05), transparent 40%);
}

.public-ray-row {
    display: flex;
    margin-bottom: 14px;
}

.public-ray-row--user {
    justify-content: flex-end;
}

.public-ray-bubble {
    max-width: min(80%, 760px);
    padding: 11px 14px;
    border-radius: 14px;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.public-ray-row--ray .public-ray-bubble {
    border: 1px solid var(--ray-border);
    border-bottom-left-radius: 4px;
    background: #fff;
    box-shadow: 0 2px 9px rgba(0,0,0,.04);
}

.public-ray-row--user .public-ray-bubble {
    border-bottom-right-radius: 4px;
    background: var(--ray-red);
    color: #fff;
}

.public-ray-bubble a {
    color: inherit;
    font-weight: 700;
}

.public-ray-bubble .public-ray-resource-button {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: .55rem .25rem .1rem 0;
    padding: .58rem .78rem;
    border-radius: 8px;
    background: #292d30;
    color: #fff;
    font-weight: 750;
    text-decoration: none;
}

.public-ray-bubble .public-ray-resource-button:hover,
.public-ray-bubble .public-ray-resource-button:focus-visible {
    background: #111416;
    color: #fff;
}

.public-ray-store-finder-row {
    display: flex;
    justify-content: flex-start;
    margin: -4px 0 14px;
}

.public-ray-store-finder-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: 46px;
    padding: 0 18px;
    border-radius: 12px;
    background: var(--ray-red);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 7px 18px rgba(227, 30, 36, .18);
}

.public-ray-store-finder-button:hover,
.public-ray-store-finder-button:focus-visible {
    background: #c9141b;
    color: #fff;
}

.public-ray-starters {
    display: grid;
    grid-template-columns: repeat(3, minmax(0,1fr));
    gap: 8px;
    margin: 18px 0 8px;
}

.public-ray-starter {
    display: flex;
    min-height: 48px;
    align-items: center;
    gap: 8px;
    padding: 9px 11px;
    border: 1px solid var(--ray-border);
    border-radius: 9px;
    background: #fff;
    color: var(--ray-text);
    text-align: left;
    cursor: pointer;
}

    .public-ray-starter:hover {
        border-color: rgba(227,30,36,.45);
        background: rgba(227,30,36,.035);
    }

.public-ray-suggestions {
    display: flex;
    gap: 7px;
    margin: -4px 0 16px;
    flex-wrap: wrap;
}

.public-ray-suggestion {
    padding: .38rem .68rem;
    border: 1px solid #cfd2d6;
    border-radius: 999px;
    background: #fff;
    color: var(--ray-text);
    font-size: .78rem;
    cursor: pointer;
}

    .public-ray-suggestion:hover {
        border-color: var(--ray-red);
        color: var(--ray-red);
    }

.public-ray-typing {
    display: inline-flex;
    gap: 4px;
}

    .public-ray-typing span {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--ray-muted);
        animation: rayPulse 1.05s infinite ease-in-out;
    }

        .public-ray-typing span:nth-child(2) {
            animation-delay: .12s;
        }

        .public-ray-typing span:nth-child(3) {
            animation-delay: .24s;
        }

.public-ray-feedback {
    display: flex;
    min-height: 38px;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    padding: 4px 16px;
    border-top: 1px solid var(--ray-border);
    color: var(--ray-muted);
    font-size: .73rem;
}

    .public-ray-feedback[hidden] {
        display: none;
    }

    .public-ray-feedback button {
        border: 0;
        background: transparent;
        cursor: pointer;
        font-size: .95rem;
    }

.public-ray-composer {
    padding: 13px 16px 12px;
    border-top: 1px solid var(--ray-border);
    background: #fff;
}

.public-ray-composer__row {
    display: flex;
    align-items: stretch;
    gap: 8px;
}

.public-ray-composer textarea {
    min-height: 52px;
    max-height: 130px;
    flex: 1 1 auto;
    resize: vertical;
    padding: 13px 14px;
    border: 1px solid #cfd2d6;
    border-radius: 9px;
    outline: none;
    color: var(--ray-text);
}

    .public-ray-composer textarea:focus {
        border-color: var(--ray-red);
        box-shadow: 0 0 0 3px rgba(227,30,36,.10);
    }

.public-ray-send {
    display: inline-flex;
    min-width: 110px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 9px;
    background: var(--ray-red);
    color: #fff;
    font-weight: 750;
    cursor: pointer;
}

    .public-ray-send:hover {
        background: var(--ray-red-hover);
    }

    .public-ray-send:disabled {
        opacity: .55;
        cursor: wait;
    }

.public-ray-composer__hint {
    margin-top: 6px;
    color: var(--ray-muted);
    font-size: .68rem;
}

.public-ray-photo-status {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 7px;
    padding: 7px 10px;
    border-radius: 8px;
    background: #f2f3f5;
    color: var(--ray-text);
    font-size: .76rem;
}

.public-ray-photo-status[hidden] {
    display: none;
}

.public-ray-photo-remove {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ray-red);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.public-ray-attach--photo:disabled {
    opacity: .55;
    cursor: wait;
}

.public-ray-site-footer {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 18px 32px;
    color: var(--ray-muted);
    font-size: .72rem;
}

.public-ray-error-page {
    width: min(720px, calc(100% - 40px));
    margin: 80px auto;
    padding: 36px;
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--ray-shadow);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
}

@keyframes rayPulse {
    0%,80%,100% {
        opacity: .3;
        transform: translateY(0);
    }

    40% {
        opacity: 1;
        transform: translateY(-2px);
    }
}

@media (max-width: 820px) {
    .public-ray-page {
        width: min(100% - 24px, 760px);
        padding-top: 18px;
    }

    .public-ray-site-header {
        padding: 0 16px;
    }

    .public-ray-hero {
        min-height: 180px;
        grid-template-columns: 1fr 150px;
        padding: 22px;
    }

    .public-ray-hero__ray {
        width: 170px;
    }

    .public-ray-starters {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .public-ray-chat-card {
        height: calc(100vh - 90px);
        min-height: 580px;
    }
}

@media (max-width: 560px) {
    .public-ray-site-header__back {
        font-size: .72rem;
    }

    .public-ray-hero {
        display: block;
        min-height: auto;
        padding: 20px;
    }

    .public-ray-hero__ray {
        display: none;
    }

    .public-ray-starters {
        grid-template-columns: 1fr;
    }

    .public-ray-chat-card {
        height: calc(100vh - 82px);
        min-height: 540px;
        border-radius: 12px;
    }

    .public-ray-messages {
        padding: 14px;
    }

    .public-ray-bubble {
        max-width: 92%;
    }

    .public-ray-composer__row {
        display: grid;
        grid-template-columns: 1fr;
    }

    .public-ray-send {
        min-height: 44px;
    }

    .public-ray-site-footer {
        display: block;
        padding: 14px 16px;
        text-align: center;
    }

        .public-ray-site-footer span {
            display: block;
            margin: 2px 0;
        }
}

@media (prefers-reduced-motion: reduce) {
    .public-ray-typing span {
        animation: none;
    }
}


/* C2.1 — responsive single-viewport Ask Ray */
@media (min-width: 821px) {
    body {
        height: 100vh;
        min-height: 0;
        overflow: hidden;
        display: grid;
        grid-template-rows: 56px minmax(0, 1fr) 34px;
    }

    .public-ray-site-header {
        min-height: 56px;
    }

    body > main {
        min-height: 0;
        overflow: hidden;
    }

    .public-ray-page {
        display: grid;
        width: min(1180px, calc(100% - 32px));
        height: 100%;
        min-height: 0;
        grid-template-columns: minmax(260px, 31%) minmax(0, 1fr);
        gap: 18px;
        margin: 0 auto;
        padding: 18px 0;
    }

    .public-ray-hero {
        display: flex;
        height: 100%;
        min-height: 0;
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
        gap: 14px;
        margin: 0;
        padding: clamp(22px, 3vh, 34px);
    }

        .public-ray-hero h1 {
            font-size: clamp(2rem, 3.2vw, 3.35rem);
        }

        .public-ray-hero p {
            font-size: .94rem;
            line-height: 1.5;
        }

    .public-ray-hero__ray {
        width: min(360px, 118%);
        max-width: none;
        max-height: 54vh;
        align-self: center;
        object-fit: contain;
        transform: none;
    }

    .public-ray-chat-card {
        height: 100%;
        min-height: 0;
    }

    .public-ray-chat-header {
        min-height: 62px;
    }

    .public-ray-messages {
        min-height: 0;
        padding: 18px;
    }

    .public-ray-composer {
        padding: 10px 14px 9px;
    }

        .public-ray-composer textarea {
            min-height: 46px;
        }

    .public-ray-site-footer {
        min-height: 34px;
        align-items: center;
        padding: 0 32px;
    }
}

@media (min-width: 821px) and (max-height: 760px) {
    body {
        grid-template-rows: 50px minmax(0, 1fr) 28px;
    }

    .public-ray-page {
        gap: 12px;
        padding: 10px 0;
    }

    .public-ray-hero {
        padding: 20px;
    }

        .public-ray-hero h1 {
            font-size: clamp(1.8rem, 3vw, 2.7rem);
        }

        .public-ray-hero p {
            margin-top: 10px;
            font-size: .86rem;
        }

    .public-ray-hero__ray {
        width: min(280px, 102%);
        max-height: 42vh;
    }

    .public-ray-chat-header {
        min-height: 56px;
    }

    .public-ray-avatar {
        width: 42px;
        height: 42px;
    }

    .public-ray-messages {
        padding: 14px 16px;
    }

    .public-ray-composer__hint {
        margin-top: 4px;
        font-size: .64rem;
    }

    .public-ray-site-footer {
        min-height: 28px;
        font-size: .66rem;
    }
}

@media (min-width: 561px) and (max-width: 820px) {
    body {
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
        display: grid;
        grid-template-rows: 54px minmax(0, 1fr);
    }

    .public-ray-site-header {
        min-height: 54px;
    }

    body > main {
        min-height: 0;
        overflow: hidden;
    }

    .public-ray-page {
        display: grid;
        width: min(100% - 20px, 760px);
        height: 100%;
        min-height: 0;
        grid-template-rows: auto minmax(0, 1fr);
        gap: 10px;
        padding: 10px 0;
    }

    .public-ray-hero {
        display: block;
        min-height: 0;
        margin: 0;
        padding: 14px 18px;
    }

        .public-ray-hero h1 {
            font-size: 1.7rem;
        }

            .public-ray-hero h1 br,
            .public-ray-hero__ray {
                display: none;
            }

        .public-ray-hero p {
            margin-top: 6px;
            font-size: .82rem;
            line-height: 1.4;
        }

    .public-ray-chat-card {
        height: 100%;
        min-height: 0;
    }

    .public-ray-site-footer {
        display: none;
    }
}

@media (max-width: 560px) {
    body {
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
        display: grid;
        grid-template-rows: 50px minmax(0, 1fr);
    }

    .public-ray-site-header {
        min-height: 50px;
        padding: 0 12px;
    }

    body > main {
        min-height: 0;
        overflow: hidden;
    }

    .public-ray-page {
        width: 100%;
        height: 100%;
        min-height: 0;
        padding: 0;
    }

    .public-ray-hero {
        display: none;
    }

    .public-ray-chat-card {
        height: 100%;
        min-height: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .public-ray-chat-header {
        min-height: 58px;
        padding: 7px 12px;
    }

    .public-ray-avatar {
        width: 42px;
        height: 42px;
    }

    .public-ray-messages {
        min-height: 0;
        padding: 12px;
    }

    .public-ray-composer {
        padding: 9px 10px calc(9px + env(safe-area-inset-bottom));
    }

    .public-ray-composer__row {
        display: flex;
        grid-template-columns: none;
    }

    .public-ray-composer textarea {
        min-height: 46px;
        max-height: 96px;
        resize: none;
    }

    .public-ray-send {
        min-width: 52px;
        width: 52px;
        min-height: 46px;
        padding: 0;
    }

        .public-ray-send span:first-child {
            position: absolute;
            width: 1px;
            height: 1px;
            overflow: hidden;
            clip: rect(0,0,0,0);
            white-space: nowrap;
        }

        .public-ray-send span:last-child {
            font-size: 1.35rem;
        }

    .public-ray-composer__hint,
    .public-ray-site-footer {
        display: none;
    }
}

/* FH1 — reusable left-hand workflow context panel */
.public-ray-context {
    width: 100%;
    min-height: 0;
    margin-top: auto;
}

.public-ray-context__idle {
    display: flex;
    width: 100%;
    justify-content: center;
}

    .public-ray-context__idle[hidden],
    .public-ray-context__workflow[hidden] {
        display: none !important;
    }

.public-ray-context__workflow {
    width: 100%;
    padding-top: 18px;
    border-top: 1px solid rgba(32,35,39,.10);
}

.public-ray-context__heading {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 13px;
}

.public-ray-context__icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 9px;
    background: rgba(227,30,36,.10);
    color: var(--ray-red);
    font-size: 1.05rem;
    font-weight: 800;
}

.public-ray-context__eyebrow {
    color: var(--ray-red);
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.public-ray-context__heading h2 {
    margin: 2px 0 0;
    color: var(--ray-charcoal);
    font-size: .94rem;
    line-height: 1.2;
}

.public-ray-context__facts {
    display: grid;
    gap: 5px;
    margin-bottom: 15px;
}

.public-ray-context-fact {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 8px;
    border-radius: 7px;
    background: rgba(255,255,255,.62);
    font-size: .72rem;
}

    .public-ray-context-fact span {
        color: var(--ray-muted);
    }

    .public-ray-context-fact strong {
        color: var(--ray-text);
        text-align: right;
    }

.public-ray-context__section + .public-ray-context__section {
    margin-top: 14px;
}

.public-ray-context__section h3 {
    margin: 0 0 8px;
    color: var(--ray-muted);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.public-ray-context__steps {
    display: grid;
    gap: 4px;
}

.public-ray-context-step {
    display: grid;
    grid-template-columns: 22px minmax(0,1fr);
    align-items: center;
    gap: 7px;
    min-height: 28px;
    color: #969aa0;
    font-size: .75rem;
}

.public-ray-context-step__marker {
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border: 1px solid #cfd2d6;
    border-radius: 50%;
    background: #fff;
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
}

.public-ray-context-step.is-complete {
    color: var(--ray-text);
}

    .public-ray-context-step.is-complete .public-ray-context-step__marker {
        border-color: #348a53;
        background: #348a53;
    }

.public-ray-context-step.is-current {
    color: var(--ray-text);
    font-weight: 750;
}

    .public-ray-context-step.is-current .public-ray-context-step__marker {
        border: 5px solid rgba(227,30,36,.20);
        background: var(--ray-red);
        box-shadow: inset 0 0 0 2px #fff;
    }

.public-ray-context__files {
    display: grid;
    gap: 5px;
}

.public-ray-context-file {
    display: block;
    padding: 7px 8px;
    border: 1px solid rgba(32,35,39,.10);
    border-radius: 7px;
    background: rgba(255,255,255,.72);
    color: var(--ray-text);
    font-size: .72rem;
    text-decoration: none;
}

@media (min-width: 821px) and (max-height: 760px) {
    .public-ray-context__workflow {
        padding-top: 11px;
    }

    .public-ray-context__heading {
        margin-bottom: 8px;
    }

    .public-ray-context__facts {
        margin-bottom: 9px;
    }

    .public-ray-context-step {
        min-height: 24px;
    }
}

@media (min-width: 561px) and (max-width: 820px) {
    .public-ray-context {
        display: none;
    }
}

@media (max-width: 560px) {
    .public-ray-context {
        display: none;
    }
}


/* FH2 — Floor Heating plan upload */
.public-ray-context__upload p {
    margin: 0 0 10px;
    color: var(--ray-muted);
    font-size: .76rem;
    line-height: 1.45;
}

.public-ray-context__upload-actions {
    display: grid;
    gap: 7px;
}

.public-ray-context__upload-button {
    min-height: 38px;
    padding: 8px 10px;
    border: 0;
    border-radius: 7px;
    background: var(--ray-red);
    color: #fff;
    font-size: .78rem;
    font-weight: 750;
    cursor: pointer;
}

    .public-ray-context__upload-button:hover {
        background: var(--ray-red-hover);
    }

.public-ray-context__upload-button--secondary {
    border: 1px solid var(--ray-border);
    background: #fff;
    color: var(--ray-text);
}

    .public-ray-context__upload-button--secondary:hover {
        border-color: var(--ray-red);
        background: #fff;
        color: var(--ray-red);
    }

.public-ray-attach {
    display: grid;
    width: 46px;
    min-width: 46px;
    min-height: 46px;
    place-items: center;
    align-self: stretch;
    border: 1px solid #cfd2d6;
    border-radius: 9px;
    background: #fff;
    color: var(--ray-red);
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
}

    .public-ray-attach[hidden] {
        display: none !important;
    }

    .public-ray-attach:hover {
        border-color: var(--ray-red);
        background: rgba(227,30,36,.04);
    }

.public-ray-attach--camera {
    display: none;
}

@media (max-width: 560px) {
    .public-ray-attach {
        width: 44px;
        min-width: 44px;
        min-height: 46px;
    }

    .public-ray-attach--camera:not([hidden]) {
        display: grid;
    }
}

/* FH3 — generated plan preview/editor */
.public-ray-context__plan {
    min-width: 0;
}

.public-ray-plan-preview-button {
    width: 100%;
    padding: 0;
    border: 1px solid var(--ray-border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    text-align: left;
}

    .public-ray-plan-preview-button img {
        display: block;
        width: 100%;
        aspect-ratio: 1.35/1;
        object-fit: contain;
        background: #f7f8f9;
    }

    .public-ray-plan-preview-button span {
        display: block;
        padding: 8px 10px;
        color: var(--ray-red);
        font-size: .78rem;
        font-weight: 750;
    }

.public-ray-context__area {
    margin-top: 7px;
    color: var(--ray-muted);
    font-size: .72rem;
}

.public-ray-plan-modal[hidden] {
    display: none;
}

.public-ray-plan-modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(16,18,20,.72);
}

.public-ray-plan-modal__dialog {
    display: grid;
    grid-template-rows: auto minmax(0,1fr) auto;
    width: min(1100px,96vw);
    height: min(850px,94vh);
    overflow: hidden;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 24px 80px rgba(0,0,0,.28);
}

.public-ray-plan-modal__header {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--ray-border);
}

    .public-ray-plan-modal__header h2 {
        margin: 0;
    }

    .public-ray-plan-modal__header p {
        margin: 5px 0 0;
        color: var(--ray-muted);
        font-size: .82rem;
    }

.public-ray-plan-modal__close {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 8px;
    background: #f1f2f3;
    font-size: 1.5rem;
    cursor: pointer;
}

.public-ray-plan-editor-wrap {
    min-height: 0;
    padding: 14px;
    background: #eef0f2;
}

.public-ray-plan-editor {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    background: #fff;
    border-radius: 10px;
    touch-action: none;
}

.public-ray-plan-modal__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 18px;
    border-top: 1px solid var(--ray-border);
}

.public-ray-plan-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    color: var(--ray-muted);
    font-size: .72rem;
}

    .public-ray-plan-legend span {
        display: flex;
        align-items: center;
        gap: 5px;
    }

    .public-ray-plan-legend i {
        width: 18px;
        height: 12px;
        border: 1px solid #aaa;
    }

    .public-ray-plan-legend .is-heatable {
        background: #dff3e4;
    }

    .public-ray-plan-legend .is-exclusion {
        background: #f6cfd1;
        border-color: #e31e24;
    }

    .public-ray-plan-legend .is-fixture {
        background: #fff;
        border-color: #555;
    }

.public-ray-plan-modal__actions {
    display: flex;
    gap: 8px;
}

body.is-plan-modal-open {
    overflow: hidden;
}

@media (max-width:700px) {
    .public-ray-plan-modal {
        padding: 0;
    }

    .public-ray-plan-modal__dialog {
        width: 100vw;
        height: 100dvh;
        border-radius: 0;
    }

    .public-ray-plan-modal__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .public-ray-plan-modal__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}


/* FH3.1 — prioritise the active plan in the Floor Heating context */
@media (min-width: 821px) {
    .public-ray-hero {
        min-height: 0;
        overflow: hidden;
    }

    .public-ray-context {
        display: flex;
        min-height: 0;
        flex: 1 1 auto;
        overflow: hidden;
        margin-top: 14px;
    }

    .public-ray-context__workflow {
        min-height: 0;
        max-height: 100%;
        overflow-y: auto;
        overscroll-behavior: contain;
        padding-right: 6px;
        scrollbar-gutter: stable;
    }

        .public-ray-context__workflow::-webkit-scrollbar {
            width: 8px;
        }

        .public-ray-context__workflow::-webkit-scrollbar-thumb {
            border-radius: 999px;
            background: rgba(32,35,39,.22);
        }

    .public-ray-context__plan {
        margin-top: 4px !important;
        padding: 10px;
        border: 1px solid rgba(227,30,36,.16);
        border-radius: 10px;
        background: rgba(255,255,255,.62);
    }

        .public-ray-context__plan h3 {
            color: var(--ray-red);
        }

    .public-ray-plan-preview-button img {
        max-height: 300px;
    }
}


/* FH3.5 — plan-first editor with live calculation */
.public-ray-plan-workspace {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 250px;
    min-height: 0;
    padding: 14px;
    gap: 12px;
    background: #eef0f2;
}

    .public-ray-plan-workspace .public-ray-plan-editor-wrap {
        padding: 0;
        background: transparent;
    }

.public-ray-plan-properties {
    display: flex;
    min-height: 0;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    overflow-y: auto;
    border: 1px solid var(--ray-border);
    border-radius: 10px;
    background: #fff;
}

.public-ray-plan-properties__heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

    .public-ray-plan-properties__heading strong {
        font-size: .9rem;
    }

#publicRayPlanLiveArea {
    color: var(--ray-red);
    font-size: .76rem;
    font-weight: 750;
    text-align: right;
}

.public-ray-plan-selection {
    display: grid;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid var(--ray-border);
}

.public-ray-plan-selection__title {
    color: var(--ray-muted);
    font-size: .7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.public-ray-plan-selection label {
    display: grid;
    gap: 5px;
    color: var(--ray-muted);
    font-size: .72rem;
}

.public-ray-plan-selection input {
    width: 100%;
    min-height: 38px;
    padding: 7px 9px;
    border: 1px solid var(--ray-border);
    border-radius: 7px;
    background: #fff;
    color: var(--ray-text);
}

.public-ray-plan-selection__dimensions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.public-ray-plan-properties__hint {
    margin: auto 0 0;
    color: var(--ray-muted);
    font-size: .7rem;
    line-height: 1.45;
}

@media (max-width: 850px) {
    .public-ray-plan-workspace {
        grid-template-columns: 1fr;
        overflow-y: auto;
    }

    .public-ray-plan-editor-wrap {
        min-height: 58vh;
    }

    .public-ray-plan-properties {
        overflow: visible;
    }
}

.public-ray-plan-selection__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 8px;
}

/* Radiant public-site navigation and footer shell */
.radiant-shell-header,
.radiant-shell-footer {
    font-family: "Poppins", "Segoe UI", Arial, sans-serif;
}

.radiant-shell-header {
    position: sticky;
    z-index: 1000;
    top: 0;
    min-height: 72px;
    background: #e6e6e6;
    box-shadow: 0 1px 0 rgba(0,0,0,.08);
}

.radiant-shell-nav {
    display: flex;
    width: min(1344px, calc(100% - 32px));
    min-height: 72px;
    align-items: center;
    gap: 22px;
    margin: 0 auto;
}

.radiant-shell-logo {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    padding-right: 8px;
}

    .radiant-shell-logo img {
        display: block;
        width: 150px;
        height: 50px;
        object-fit: contain;
    }

.radiant-shell-menu {
    display: flex;
    min-width: 0;
    flex: 1 1 auto;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.radiant-shell-primary-links,
.radiant-shell-utilities,
.radiant-shell-nav-heading {
    display: flex;
    align-items: center;
}

.radiant-shell-primary-links {
    min-width: 0;
    gap: 3px;
}

.radiant-shell-utilities {
    flex: 0 0 auto;
    gap: 20px;
}

.radiant-shell-nav-link,
.radiant-shell-nav-heading > a {
    display: flex;
    min-height: 72px;
    align-items: center;
    padding: 0 12px;
    color: #2a2a2a;
    font-size: 1rem;
    font-weight: 300;
    text-decoration: none;
    white-space: nowrap;
}

    .radiant-shell-nav-link:hover,
    .radiant-shell-nav-link:focus,
    .radiant-shell-nav-heading > a:hover,
    .radiant-shell-nav-heading > a:focus {
        color: #e51819;
    }

.radiant-shell-nav-group {
    position: relative;
}

.radiant-shell-nav-heading > button {
    width: 24px;
    height: 38px;
    margin-left: -10px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

    .radiant-shell-nav-heading > button::after {
        display: block;
        width: 8px;
        height: 8px;
        border-right: 2px solid #aaa;
        border-bottom: 2px solid #aaa;
        content: "";
        transform: translateY(-2px) rotate(45deg);
    }

.radiant-shell-dropdown {
    position: fixed;
    z-index: 1010;
    top: 72px;
    right: 0;
    left: 0;
    visibility: hidden;
    padding: 6px 0;
    opacity: 0;
    background: #363636;
    box-shadow: 0 10px 18px rgba(0,0,0,.18);
    transform: translateY(-6px);
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
}

.radiant-shell-dropdown__inner {
    display: flex;
    width: min(1344px, calc(100% - 32px));
    flex-wrap: wrap;
    gap: 0;
    margin: 0 auto;
}

.radiant-shell-dropdown a {
    display: block;
    padding: 10px 18px;
    color: #fff;
    font-size: .88rem;
    font-weight: 300;
    text-decoration: none;
    text-transform: lowercase;
}

    .radiant-shell-dropdown a:hover,
    .radiant-shell-dropdown a:focus {
        background: #fff;
        color: #363636;
    }

.radiant-shell-nav-group:hover .radiant-shell-dropdown,
.radiant-shell-nav-group:focus-within .radiant-shell-dropdown,
.radiant-shell-nav-group.is-open .radiant-shell-dropdown {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
}

.radiant-shell-track,
.radiant-shell-finishiq {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    text-decoration: none;
}

.radiant-shell-track {
    padding: 0 18px;
    background: #e51819;
    color: #fff;
    font-size: .92rem;
    font-weight: 400;
    white-space: nowrap;
}

    .radiant-shell-track:hover,
    .radiant-shell-track:focus {
        background: #ca1516;
    }

.radiant-shell-finishiq {
    width: 103px;
    padding: 7px 12px;
    background: #050505;
}

    .radiant-shell-finishiq img {
        display: block;
        width: 100%;
        max-height: 24px;
    }

.radiant-shell-search-item {
    position: relative;
    width: 220px;
    flex: 0 0 220px;
}

.radiant-shell-search-compact {
    display: none;
}

.radiant-shell-search-toggle {
    display: flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: #e51819;
    color: #fff;
    cursor: pointer;
}

    .radiant-shell-search-toggle:hover,
    .radiant-shell-search-toggle:focus {
        background: #bb2627;
        outline: none;
    }

    .radiant-shell-search-toggle svg {
        display: block;
        width: 24px;
        height: 24px;
    }

.radiant-shell-search-overlay,
.radiant-shell-search-wrap,
#main-searchBox,
#main-searchBox .ais-SearchBox,
#main-searchBox .ais-SearchBox-form {
    width: 100%;
}

    #main-searchBox .ais-SearchBox-form {
        position: relative;
        display: grid !important;
        height: 40px;
        min-height: 40px;
        grid-template-columns: minmax(0, 1fr) 40px;
        align-items: stretch;
        gap: 0;
        overflow: hidden;
        margin: 0;
        border-radius: 4px;
        background: #fff;
    }

    #main-searchBox .ais-SearchBox-input {
        grid-row: 1;
        grid-column: 1;
        width: 100%;
        min-width: 0;
        height: 40px;
        margin: 0;
        padding: 0 42px 0 11px;
        border: 1px solid #dbdbdb;
        border-right: 0;
        border-radius: 0;
        outline: 0;
        background: #fff;
        color: #333;
        font: 300 .88rem/40px "Poppins", "Segoe UI", Arial, sans-serif;
    }

        #main-searchBox .ais-SearchBox-input::placeholder {
            color: #e8b5b5;
            opacity: 1;
        }

    #main-searchBox .ais-SearchBox-submit {
        position: relative !important;
        top: 0 !important;
        right: auto !important;
        bottom: auto !important;
        left: auto !important;
        display: flex !important;
        width: 40px !important;
        min-width: 40px !important;
        height: 40px !important;
        min-height: 40px !important;
        grid-row: 1;
        grid-column: 2;
        align-self: stretch !important;
        align-items: center;
        justify-content: center;
        margin: 0 !important;
        padding: 0 !important;
        border: 0;
        border-radius: 0;
        background: #e51819;
        color: #fff;
        line-height: 1 !important;
        transform: none !important;
    }

    /* Always draw the search glyph, including when Algolia omits its submit SVG. */
    #main-searchBox .ais-SearchBox-submitIcon {
        display: none !important;
    }

    #main-searchBox .ais-SearchBox-submit::before {
        position: absolute;
        top: 10px;
        left: 10px;
        width: 13px;
        height: 13px;
        border: 2px solid #fff;
        border-radius: 50%;
        content: "";
    }

    #main-searchBox .ais-SearchBox-submit::after {
        position: absolute;
        top: 24px;
        left: 23px;
        width: 8px;
        height: 2px;
        border-radius: 999px;
        background: #fff;
        content: "";
        transform: rotate(45deg);
        transform-origin: left center;
    }

    #main-searchBox .ais-SearchBox-submit:hover,
    #main-searchBox .ais-SearchBox-submit:focus {
        background: #bb2627;
    }

    #main-searchBox .ais-SearchBox-submitIcon {
        width: 22px;
        height: 22px;
    }

        #main-searchBox .ais-SearchBox-submitIcon path {
            fill: #fff;
        }

    #main-searchBox .ais-SearchBox-reset {
        position: absolute;
        z-index: 2;
        top: 50%;
        right: 47px;
        width: 30px;
        height: 30px;
        padding: 7px;
        border: 0;
        background: transparent;
        transform: translateY(-50%);
    }

    #main-searchBox .ais-SearchBox-resetIcon {
        width: 12px;
        height: 12px;
    }

    #main-searchBox .ais-SearchBox-loadingIndicator {
        right: 48px;
    }

.radiant-shell-search-results {
    position: absolute;
    z-index: 1100;
    top: calc(100% + 8px);
    right: 0;
    display: none;
    width: min(1050px, 90vw);
    max-height: min(640px, calc(100vh - 100px));
    grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr);
    gap: 20px;
    overflow-y: auto;
    padding: 18px;
    border: 1px solid #dedfe2;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(0,0,0,.2);
}

    .radiant-shell-search-results[style*="display: block"] {
        display: grid !important;
    }

    .radiant-shell-search-results #main-search-hits::before,
    .radiant-shell-search-results #support-hits::before {
        display: block;
        margin-bottom: 9px;
        color: #333;
        font-size: .86rem;
        font-weight: 600;
    }

    .radiant-shell-search-results #main-search-hits::before {
        content: "Products";
    }

    .radiant-shell-search-results #support-hits::before {
        content: "Support";
    }

    .radiant-shell-search-results .ais-Hits-list {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 12px;
        width: 100%;
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .radiant-shell-search-results #support-hits .ais-Hits-list {
        grid-template-columns: 1fr;
    }

    .radiant-shell-search-results .ais-Hits-item {
        width: auto;
        min-width: 0;
        margin: 0;
        padding: 0;
        border: 0;
        box-shadow: none;
    }

    .radiant-shell-search-results .search.result {
        display: grid;
        min-height: 66px;
        grid-template-columns: 64px minmax(0, 1fr);
        align-items: center;
        gap: 10px;
    }

    .radiant-shell-search-results .result-image,
    .radiant-shell-search-results .result-details {
        min-width: 0;
    }

        .radiant-shell-search-results .result-image img {
            display: block;
            width: 64px;
            height: 64px;
            object-fit: contain;
        }

    .radiant-shell-search-results .product-title h2 {
        margin: 0;
        font-size: .78rem;
        line-height: 1.35;
    }

    .radiant-shell-search-results .product-title a {
        color: #2a2a2a;
        text-decoration: none;
    }

        .radiant-shell-search-results .product-title a:hover,
        .radiant-shell-search-results .product-title a:focus {
            color: #e51819;
        }

    .radiant-shell-search-results .search-name {
        display: block;
        margin-top: 3px;
        font-size: .72rem;
        font-weight: 300;
    }

    .radiant-shell-search-results .stock-status {
        float: right;
        margin-left: 5px;
    }

    .radiant-shell-search-results .stock-image {
        width: auto !important;
        height: 12px !important;
        object-fit: contain;
    }

    .radiant-shell-search-results .stock-status-instock {
        content: url("https://www.radiant.com.au/media/zy3p10cf/green.png");
    }

    .radiant-shell-search-results .stock-status-lowstock {
        content: url("https://www.radiant.com.au/media/iadcvo3t/amber.png");
    }

    .radiant-shell-search-results .stock-status-outofstock {
        content: url("https://www.radiant.com.au/media/wqiipira/red.png");
    }

    .radiant-shell-search-results .stock-status-left-instock {
        content: url("https://www.radiant.com.au/media/udepcif4/left-green.png");
    }

    .radiant-shell-search-results .stock-status-left-lowstock {
        content: url("https://www.radiant.com.au/media/sacdlinu/left-amber.png");
    }

    .radiant-shell-search-results .stock-status-left-outofstock {
        content: url("https://www.radiant.com.au/media/3ywb3p54/left-red.png");
    }

    .radiant-shell-search-results .stock-status-right-instock {
        content: url("https://www.radiant.com.au/media/3t1mscsx/right-green.png");
    }

    .radiant-shell-search-results .stock-status-right-lowstock {
        content: url("https://www.radiant.com.au/media/4qzjnqul/right-amber.png");
    }

    .radiant-shell-search-results .stock-status-right-outofstock {
        content: url("https://www.radiant.com.au/media/vodgobme/right-red.png");
    }

    .radiant-shell-search-results .stock-status-unknown,
    .radiant-shell-search-results .stock-status-left-unknown,
    .radiant-shell-search-results .stock-status-right-unknown {
        display: none;
    }

.radiant-shell-menu-toggle {
    display: none;
}

.radiant-shell-footer {
    position: relative;
    display: block !important;
    padding: 42px 0 46px;
    background: #4a4a4a;
    color: #fff;
    font-size: .92rem;
    font-weight: 300;
}

.radiant-shell-footer__inner {
    display: grid;
    width: min(1344px, calc(100% - 48px));
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 34px 24px;
    margin: 0 auto;
}

.radiant-shell-footer h2 {
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid #858585;
    color: #929292;
    font-size: .98rem;
    font-weight: 600;
    line-height: 1.3;
    text-transform: lowercase;
}

.radiant-shell-footer ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.radiant-shell-footer li {
    margin: 0 0 9px;
}

.radiant-shell-footer a {
    color: #fff;
    text-decoration: none;
}

    .radiant-shell-footer a:hover,
    .radiant-shell-footer a:focus {
        color: #bdbdbd;
    }

.radiant-shell-footer__inspiration article {
    display: grid;
    grid-template-columns: 64px 1fr;
    gap: 14px;
    padding: 4px 0 16px;
    border-bottom: 1px solid #858585;
}

    .radiant-shell-footer__inspiration article + article {
        padding-top: 16px;
    }

.radiant-shell-footer__inspiration img {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: cover;
}

.radiant-shell-footer__inspiration p {
    margin: 0;
    line-height: 1.45;
}

.radiant-shell-footer__inspiration small {
    display: block;
    margin-bottom: 2px;
    font-size: .78rem;
}

.radiant-shell-footer__inspiration p a {
    display: block;
}

.radiant-shell-footer__social > div {
    display: flex;
    gap: 8px;
}

.radiant-shell-footer__social a {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 3px;
    background: #e51819;
}

    .radiant-shell-footer__social a:hover,
    .radiant-shell-footer__social a:focus {
        background: #c91415;
        color: #fff;
    }

.radiant-shell-footer__social svg {
    width: 22px;
    height: 22px;
    fill: #fff;
    stroke: #fff;
    stroke-width: 1.7;
}

.radiant-shell-footer__social .radiant-shell-youtube-play {
    fill: #e51819;
    stroke: none;
}

.radiant-shell-footer__contact {
    grid-column: 1 / span 2;
}

.radiant-shell-footer__hours {
    grid-column: 3 / span 2;
}

.radiant-shell-footer address {
    font-style: normal;
}

    .radiant-shell-footer address p {
        display: flex;
        gap: 11px;
        margin: 0 0 9px;
    }

    .radiant-shell-footer address span {
        color: #fff;
        font-size: .58rem;
        transform: translateY(5px);
    }

.radiant-shell-footer__hours dl {
    margin: 0;
}

    .radiant-shell-footer__hours dl > div {
        display: flex;
        justify-content: space-between;
        gap: 24px;
        margin-bottom: 9px;
    }

.radiant-shell-footer__hours dt,
.radiant-shell-footer__hours dd {
    margin: 0;
}

.radiant-shell-back-to-top {
    position: absolute;
    right: 20px;
    bottom: 20px;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 0;
    border-radius: 3px;
    background: #e51819;
    color: #fff;
    cursor: pointer;
}

    .radiant-shell-back-to-top svg {
        width: 24px;
        height: 24px;
        fill: none;
        stroke: currentColor;
        stroke-width: 2;
    }

/* Keep Ask Ray as a full working viewport; the full Radiant footer follows below it. */
body {
    display: block !important;
    height: auto !important;
    min-height: 100vh !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

    body > main {
        min-height: 0 !important;
        overflow: visible !important;
    }

@media (min-width: 821px) {
    .public-ray-page {
        height: calc(100vh - 72px);
        height: calc(100dvh - 72px);
        min-height: 620px;
    }
}

@media (max-width: 1180px) {
    .radiant-shell-nav {
        gap: 8px;
    }

    .radiant-shell-primary-links {
        gap: 0;
    }

    .radiant-shell-nav-link,
    .radiant-shell-nav-heading > a {
        padding-right: 8px;
        padding-left: 8px;
        font-size: .88rem;
    }

    .radiant-shell-utilities {
        gap: 10px;
    }

    .radiant-shell-track {
        padding: 0 12px;
    }
}

@media (min-width: 981px) and (max-width: 1280px) {
    .radiant-shell-search-item {
        width: 40px;
        flex-basis: 40px;
    }

    .radiant-shell-search-compact {
        display: block;
    }

    .radiant-shell-search-overlay {
        position: absolute;
        z-index: 1050;
        top: calc(100% + 8px);
        right: 0;
        display: none;
        width: 270px;
        padding: 8px;
        border-radius: 6px;
        background: #fff;
        box-shadow: 0 10px 25px rgba(0,0,0,.15);
    }

        .radiant-shell-search-overlay.is-open {
            display: block;
        }

        .radiant-shell-search-overlay .radiant-shell-search-results {
            top: calc(100% + 8px);
            right: 0;
        }
}

@media (max-width: 980px) {
    .radiant-shell-header {
        min-height: 64px;
    }

    .radiant-shell-nav {
        position: relative;
        width: min(100% - 28px, 900px);
        min-height: 64px;
        justify-content: space-between;
    }

    .radiant-shell-logo img {
        width: 132px;
        height: 44px;
    }

    .radiant-shell-menu-toggle {
        display: flex;
        width: 44px;
        height: 44px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 5px;
        border: 0;
        background: transparent;
        cursor: pointer;
    }

        .radiant-shell-menu-toggle > span:not(.sr-only) {
            width: 24px;
            height: 2px;
            background: #333;
            transition: transform .15s, opacity .15s;
        }

        .radiant-shell-menu-toggle[aria-expanded="true"] > span:nth-child(2) {
            transform: translateY(7px) rotate(45deg);
        }

        .radiant-shell-menu-toggle[aria-expanded="true"] > span:nth-child(3) {
            opacity: 0;
        }

        .radiant-shell-menu-toggle[aria-expanded="true"] > span:nth-child(4) {
            transform: translateY(-7px) rotate(-45deg);
        }

    .radiant-shell-menu {
        position: absolute;
        top: 64px;
        right: -14px;
        left: -14px;
        display: none;
        max-height: calc(100dvh - 64px);
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        overflow-y: auto;
        padding: 10px 14px 18px;
        background: #e6e6e6;
        box-shadow: 0 12px 22px rgba(0,0,0,.18);
    }

        .radiant-shell-menu.is-open {
            display: flex;
        }

    .radiant-shell-primary-links {
        display: block;
    }

    .radiant-shell-nav-link,
    .radiant-shell-nav-heading > a {
        min-height: 46px;
        flex: 1 1 auto;
        padding: 0 8px;
        font-size: 1rem;
    }

    .radiant-shell-nav-heading {
        border-bottom: 1px solid rgba(0,0,0,.08);
    }

    .radiant-shell-nav-link {
        border-bottom: 1px solid rgba(0,0,0,.08);
    }

    .radiant-shell-nav-heading > button {
        width: 46px;
        height: 46px;
        margin: 0;
    }

    .radiant-shell-nav-group:hover .radiant-shell-dropdown:not(.is-mobile-open) {
        visibility: hidden;
        opacity: 0;
    }

    .radiant-shell-dropdown,
    .radiant-shell-nav-group:focus-within .radiant-shell-dropdown {
        position: static;
        display: none;
        visibility: visible;
        padding: 0;
        opacity: 1;
        box-shadow: none;
        transform: none;
    }

        .radiant-shell-dropdown.is-mobile-open {
            display: block;
            visibility: visible !important;
            opacity: 1 !important;
        }

    .radiant-shell-dropdown__inner {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(2, minmax(0,1fr));
        padding: 8px;
    }

    .radiant-shell-dropdown a {
        padding: 9px 12px;
    }

    .radiant-shell-utilities {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        padding-top: 14px;
    }

    .radiant-shell-search-item {
        width: 100%;
        grid-column: 1 / -1;
    }

    .radiant-shell-search-compact {
        display: none;
    }

    .radiant-shell-search-overlay {
        position: static;
        display: block;
        width: 100%;
    }

    .radiant-shell-search-results {
        position: static;
        width: 100%;
        max-height: 55vh;
        grid-template-columns: 1fr;
        margin-top: 8px;
    }

        .radiant-shell-search-results .ais-Hits-list {
            grid-template-columns: 1fr;
        }

    .radiant-shell-finishiq {
        width: 100%;
    }

    .public-ray-page {
        height: calc(100dvh - 64px) !important;
        min-height: 580px;
    }
}

@media (max-width: 820px) {
    .radiant-shell-footer__inner {
        grid-template-columns: repeat(2, minmax(0,1fr));
    }

    .radiant-shell-footer__contact,
    .radiant-shell-footer__hours {
        grid-column: auto;
    }
}

@media (max-width: 560px) {
    .radiant-shell-nav {
        width: calc(100% - 20px);
    }

    .radiant-shell-menu {
        right: -10px;
        left: -10px;
    }

    .radiant-shell-dropdown__inner {
        grid-template-columns: 1fr;
    }

    .public-ray-page {
        height: calc(100dvh - 64px) !important;
        min-height: 0;
    }

    .radiant-shell-footer {
        padding: 34px 0 54px;
        font-size: .88rem;
    }

    .radiant-shell-footer__inner {
        width: calc(100% - 32px);
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .radiant-shell-footer__column--secondary h2 {
        display: none;
    }

    .radiant-shell-footer__hours dl > div {
        gap: 12px;
    }

    .radiant-shell-footer__hours dd {
        text-align: right;
    }
}

/* Floor-heating Ask Ray drawer */
[hidden] {
    display: none !important;
}

.public-ray-hero[hidden],
.public-ray-floor-chat-toggle[hidden],
.public-ray-floor-chat-backdrop[hidden] {
    display: none !important;
}

#publicRayFloorChangeKit {
    width: fit-content;
    margin-top: 14px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid currentColor;
    background: transparent;
    color: var(--ray-red);
    font-size: .69rem;
    font-weight: 800;
    cursor: pointer;
}

.public-ray-floor-chat-toggle {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 1190;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 190px;
    padding: 9px 15px 9px 9px;
    border: 2px solid var(--ray-red);
    border-radius: 999px;
    background: #fff;
    color: var(--ray-charcoal);
    text-align: left;
    box-shadow: 0 12px 32px rgba(22,25,28,.24);
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(12px);
    transition: transform .18s ease, opacity .18s ease, background-color .18s ease, box-shadow .18s ease;
}

.public-ray-floor-chat-toggle.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.public-ray-floor-chat-toggle.is-visible:hover,
.public-ray-floor-chat-toggle.is-visible:focus-visible {
    transform: translateY(-2px);
    background: #fff5f5;
    box-shadow: 0 15px 36px rgba(22,25,28,.28);
}

.public-ray-floor-chat-toggle img {
    width: 70px;
    height: 47px;
    border-radius: 0;
    background: transparent;
    object-fit: contain;
}

.public-ray-floor-chat-toggle span {
    display: grid;
    gap: 1px;
}

.public-ray-floor-chat-toggle strong {
    font-size: .78rem;
}

.public-ray-floor-chat-toggle small {
    color: var(--ray-red);
    font-size: .65rem;
}

.public-ray-floor-chat-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1195;
    border: 0;
    background: rgba(14,16,18,.38);
    cursor: default;
}

.public-ray-page.is-floor-heating-support .public-ray-chat-card {
    position: fixed !important;
    right: 22px;
    bottom: 22px;
    z-index: 1200;
    display: grid;
    width: min(430px, calc(100vw - 44px));
    height: min(650px, calc(100dvh - 44px));
    min-height: 480px;
    margin: 0 !important;
    border: 1px solid rgba(227,30,36,.28);
    border-top: 4px solid var(--ray-red);
    border-radius: 16px;
    box-shadow: 0 22px 60px rgba(13,16,18,.28);
    transform: translateX(calc(100% + 52px));
    visibility: hidden;
    opacity: 0;
    transition: transform .22s ease, opacity .18s ease, visibility .22s;
}

.public-ray-page.is-floor-heating-support .public-ray-chat-card.is-open {
    transform: translateX(0);
    visibility: visible;
    opacity: 1;
}

.public-ray-page.is-floor-heating-support .public-ray-chat-header {
    padding-right: 10px;
}

.public-ray-page.is-floor-heating-support .public-ray-chat-header__identity strong {
    max-width: 205px;
    font-size: .76rem;
    line-height: 1.2;
}

.public-ray-page.is-floor-heating-support .public-ray-chat-header__identity span:last-child {
    max-width: 205px;
    font-size: .64rem;
}

.public-ray-page.is-floor-heating-support .public-ray-text-button {
    padding: 4px;
    font-size: .62rem;
}

.public-ray-page.is-floor-heating-support .public-ray-close-floor-chat {
    margin-left: 0;
}

.public-ray-floor-chat-open .public-ray-floor-chat-toggle {
    opacity: 0;
    pointer-events: none;
}

/* The floor-heating workspace participates in normal document scrolling. */
@media (min-width: 821px) {
    body:has(.public-ray-page.is-floor-heating-support) {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        grid-template-rows: auto auto auto;
    }

    body:has(.public-ray-page.is-floor-heating-support) > main {
        min-height: 0;
        overflow: visible;
    }

    .public-ray-page.is-floor-heating-support {
        height: auto;
        min-height: 0;
        overflow: visible;
        scrollbar-gutter: auto;
    }
}

@media (max-width: 560px) {
    .public-ray-floor-hero-ask {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 11px;
        margin-top: 20px;
    }

    .public-ray-floor-hero-ask > img {
        width: 96px;
        height: 64px;
    }

    .public-ray-floor-hero-ask > i {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .public-ray-floor-chat-toggle {
        right: 14px;
        bottom: 14px;
        min-width: 0;
        padding-right: 13px;
    }

    .public-ray-floor-chat-toggle img {
        width: 60px;
        height: 40px;
    }

    .public-ray-page.is-floor-heating-support .public-ray-chat-card {
        right: 0;
        bottom: 0;
        width: 100%;
        height: min(82dvh, 680px);
        min-height: 500px;
        border-right: 0;
        border-bottom: 0;
        border-left: 0;
        border-radius: 18px 18px 0 0;
        transform: translateY(calc(100% + 30px));
    }

    .public-ray-page.is-floor-heating-support .public-ray-chat-card.is-open {
        transform: translateY(0);
    }
}

/*
 * The general mobile Ask Ray shell is intentionally locked to one viewport so
 * the chat messages scroll inside the card. The floor-heating workspace is a
 * normal content page, so it must grow with its actions, guides and walkthrough.
 */
@media (max-width: 980px) {
    .public-ray-page.is-floor-heating-support {
        height: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        overflow: visible !important;
    }
}

/* Mobile walkthrough: keep the active instructions directly below their step. */
@media (max-width: 820px) {
    #publicRayFloorWalkthroughSteps {
        gap: 0;
    }

    #publicRayFloorWalkthroughSteps > button {
        margin-bottom: 6px;
        scroll-margin-top: 76px;
    }

    #publicRayFloorWalkthroughSteps > button.is-active {
        margin-bottom: 0;
        border-bottom-color: transparent;
        border-radius: 9px 9px 0 0;
    }

    #publicRayFloorWalkthroughSteps > #publicRayFloorWalkthroughDetail {
        width: 100%;
        min-width: 0;
        max-width: 100%;
        margin: 0 0 8px;
        padding: 18px;
        border-radius: 0 0 12px 12px;
    }

    #publicRayFloorWalkthroughDetail .public-ray-floor-walkthrough__actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    #publicRayFloorWalkthroughDetail .public-ray-floor-walkthrough__actions button {
        display: block;
        width: 100%;
        min-height: 48px;
        padding: 12px 14px;
        font-size: .74rem;
        line-height: 1.3;
        text-align: center;
    }
}
