.ee-recommendation {
    --ee-rec-navy: #10364d;
    --ee-rec-teal: #19786f;
    --ee-rec-teal-dark: #115f59;
    --ee-rec-orange: #ec7a22;
    --ee-rec-ink: #173d4b;
    --ee-rec-muted: #5c7078;
    --ee-rec-line: #d5e1e3;
    --ee-rec-pale: #edf7f4;
    --ee-rec-warm: #fff7ed;
    max-width: 1020px;
    margin: 24px auto 72px;
    padding: 0 20px;
    color: var(--ee-rec-ink);
    letter-spacing: 0;
}

.ee-rec-intro {
    max-width: 880px;
    margin: 0 auto 24px;
    padding: 24px 28px;
    border-left: 5px solid var(--ee-rec-orange);
    background: var(--ee-rec-warm);
}

.ee-rec-intro h2,
.ee-rec-results__header h2 {
    margin: 4px 0 10px;
    color: var(--ee-rec-navy);
    font-size: 32px;
    line-height: 1.15;
    letter-spacing: 0;
}

.ee-rec-intro > p:not(.ee-rec-eyebrow) {
    max-width: 760px;
    margin: 0;
    line-height: 1.6;
}

.ee-rec-intro ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    color: var(--ee-rec-navy);
    font-size: 14px;
    font-weight: 700;
}

.ee-rec-intro li::before {
    content: "✓";
    margin-right: 7px;
    color: var(--ee-rec-teal);
}

.ee-rec-eyebrow,
.ee-rec-solution__eyebrow {
    margin: 0;
    color: #9a4b12;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.ee-rec-form {
    max-width: 880px;
    margin: 0 auto;
    border: 1px solid var(--ee-rec-line);
    border-top: 4px solid var(--ee-rec-orange);
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 16px 42px rgba(16, 54, 77, .08);
    overflow: hidden;
}

.ee-rec-progress {
    padding: 20px 28px 18px;
    border-bottom: 1px solid var(--ee-rec-line);
    background: #f8fbfb;
}

.ee-rec-progress__status {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 10px;
}

.ee-rec-progress__status span {
    color: var(--ee-rec-muted);
    font-size: 13px;
}

.ee-rec-progress__status strong {
    color: var(--ee-rec-navy);
    font-size: 16px;
}

.ee-rec-progress__track {
    height: 5px;
    border-radius: 3px;
    background: #dce7e8;
    overflow: hidden;
}

.ee-rec-progress__track span {
    display: block;
    width: 20%;
    height: 100%;
    border-radius: inherit;
    background: var(--ee-rec-orange);
    transition: width .25s ease;
}

.ee-rec-progress ol {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.ee-rec-progress li {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    color: #73858b;
}

.ee-rec-progress li > span {
    display: inline-grid;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    place-items: center;
    border: 1px solid #bdcccf;
    border-radius: 50%;
    background: #fff;
    font-size: 12px;
    font-weight: 800;
}

.ee-rec-progress li small {
    min-width: 0;
    font-size: 11px;
    line-height: 1.2;
}

.ee-rec-progress li.is-current,
.ee-rec-progress li.is-complete {
    color: var(--ee-rec-navy);
}

.ee-rec-progress li.is-current > span {
    border-color: var(--ee-rec-orange);
    background: var(--ee-rec-orange);
    color: #fff;
}

.ee-rec-progress li.is-complete > span {
    border-color: var(--ee-rec-teal);
    background: var(--ee-rec-teal);
    color: #fff;
}

.ee-rec-form fieldset {
    min-width: 0;
    margin: 0;
    padding: 28px;
    border: 0;
}

.ee-rec-form legend {
    max-width: 720px;
    padding: 0;
    color: var(--ee-rec-navy);
    font-size: 27px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0;
}

.ee-rec-form legend:focus {
    outline: none;
}

.ee-rec-panel-intro {
    max-width: 680px;
    margin: 8px 0 22px;
    color: var(--ee-rec-muted);
    line-height: 1.55;
}

.ee-rec-subtitle {
    margin: 24px 0 8px;
    color: var(--ee-rec-navy);
    font-size: 17px;
    letter-spacing: 0;
}

.ee-rec-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.ee-rec-grid > label {
    display: grid;
    align-content: start;
    gap: 7px;
    color: var(--ee-rec-navy);
    font-weight: 700;
}

.ee-rec-grid label > span {
    line-height: 1.35;
}

.ee-rec-grid label > small {
    color: var(--ee-rec-muted);
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
}

.ee-rec-grid em {
    color: #b34b22;
    font-style: normal;
}

.ee-rec-form input:not([type="checkbox"]),
.ee-rec-form select {
    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 9px 12px;
    border: 1px solid #abc0c6;
    border-radius: 4px;
    background: #fff;
    color: var(--ee-rec-ink);
    font: inherit;
}

.ee-rec-form input:not([type="checkbox"]):focus,
.ee-rec-form select:focus {
    border-color: var(--ee-rec-teal);
    outline: 3px solid rgba(25, 120, 111, .18);
    outline-offset: 1px;
}

.ee-rec-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 8px 0 20px;
}

.ee-rec-options--compact {
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
}

.ee-rec-choice {
    position: relative;
    display: grid;
    grid-template-columns: 21px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    min-height: 78px;
    padding: 14px;
    border: 1px solid #bdcccf;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    transition: border-color .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.ee-rec-options--compact .ee-rec-choice {
    min-height: 54px;
    align-items: center;
}

.ee-rec-choice:hover {
    border-color: #6b9898;
    box-shadow: 0 5px 16px rgba(16, 54, 77, .07);
}

.ee-rec-choice:has(input:checked) {
    border-color: var(--ee-rec-teal);
    background: var(--ee-rec-pale);
    box-shadow: inset 0 0 0 1px var(--ee-rec-teal);
}

.ee-rec-choice:has(input:focus-visible) {
    outline: 3px solid var(--ee-rec-orange);
    outline-offset: 3px;
}

.ee-rec-choice.is-disabled {
    opacity: .48;
    cursor: not-allowed;
}

.ee-rec-choice input {
    width: 20px;
    height: 20px;
    margin: 1px 0 0;
    accent-color: var(--ee-rec-teal);
}

.ee-rec-choice__copy {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.ee-rec-choice__copy strong {
    color: var(--ee-rec-navy);
    line-height: 1.25;
}

.ee-rec-choice__copy small {
    color: var(--ee-rec-muted);
    font-size: 12px;
    line-height: 1.35;
}

.ee-rec-more {
    margin: 16px 0 20px;
    padding: 0;
}

.ee-rec-more > summary,
.ee-rec-checks > summary {
    width: fit-content;
    cursor: pointer;
    color: #155f74;
    font-weight: 750;
}

.ee-rec-more[open] > summary {
    margin-bottom: 14px;
}

.ee-rec-priority {
    min-height: 24px;
    margin: 8px 0 0;
    color: var(--ee-rec-teal-dark);
    font-weight: 750;
}

.ee-rec-error {
    min-height: 24px;
    margin: 0;
    padding: 0 28px;
    color: #a43b1b;
    font-weight: 700;
}

.ee-rec-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 28px 24px;
    border-top: 1px solid var(--ee-rec-line);
    background: #f8fbfb;
}

.ee-recommendation button,
.ee-rec-link {
    min-height: 44px;
    padding: 10px 18px;
    border: 0;
    border-radius: 4px;
    background: var(--ee-rec-teal);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
}

.ee-rec-actions [data-rec-next],
.ee-rec-actions [type="submit"] {
    margin-left: auto;
}

.ee-recommendation button:hover,
.ee-rec-link:hover {
    background: var(--ee-rec-teal-dark);
    color: #fff;
}

.ee-recommendation button:disabled {
    opacity: .55;
    cursor: wait;
}

.ee-recommendation button:focus-visible,
.ee-recommendation a:focus-visible,
.ee-recommendation summary:focus-visible {
    outline: 3px solid var(--ee-rec-orange);
    outline-offset: 3px;
}

.ee-rec-back,
.ee-rec-remove {
    display: inline-grid;
    width: 44px;
    min-width: 44px;
    padding: 0;
    place-items: center;
    background: #e8f0f1 !important;
    color: var(--ee-rec-navy) !important;
    font-size: 22px !important;
}

.ee-recommendation [hidden] {
    display: none !important;
}

.ee-recommendation [data-rec-results] {
    max-width: 980px;
    margin: 52px auto 0;
    scroll-margin-top: 145px;
}

.ee-rec-results__header {
    max-width: 780px;
    margin-bottom: 28px;
}

.ee-rec-summary {
    margin: 8px 0 0;
    color: var(--ee-rec-muted);
    line-height: 1.5;
}

.ee-rec-solution {
    padding: 32px 0 38px;
    border-top: 1px solid var(--ee-rec-line);
}

.ee-rec-solution.is-primary {
    border-top: 4px solid var(--ee-rec-orange);
}

.ee-rec-solution__header {
    max-width: 760px;
}

.ee-rec-solution h3 {
    margin: 5px 0 8px;
    color: var(--ee-rec-navy);
    font-size: 27px;
    line-height: 1.2;
    letter-spacing: 0;
}

.ee-rec-solution__why {
    margin: 0;
    color: var(--ee-rec-muted);
    line-height: 1.55;
}

.ee-rec-solution__organization {
    margin: 6px 0 0;
    color: var(--ee-rec-navy);
    font-size: 14px;
    font-weight: 700;
}

.ee-rec-items {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 22px 0;
    padding: 0;
    list-style: none;
}

.ee-rec-item {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    border: 1px solid var(--ee-rec-line);
    border-radius: 5px;
    background: #fff;
    overflow: hidden;
}

.ee-rec-item img {
    width: 100%;
    height: 142px;
    flex: none;
    object-fit: contain;
    background: #f4f7f7;
}

.ee-rec-item-body {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 8px;
    padding: 13px;
    overflow-wrap: anywhere;
}

.ee-rec-item h4 {
    margin: 0;
    color: var(--ee-rec-navy);
    font-size: 16px;
    line-height: 1.3;
    letter-spacing: 0;
}

.ee-rec-item p {
    margin: 0;
    font-size: 13px;
    line-height: 1.4;
}

.ee-rec-item a {
    color: #155f74;
}

.ee-rec-item__reason {
    color: var(--ee-rec-muted);
}

.ee-rec-item__price {
    margin-top: auto !important;
    color: var(--ee-rec-navy);
    font-weight: 800;
}

.ee-rec-remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 34px;
    min-width: 34px;
    min-height: 34px !important;
    font-size: 18px !important;
}

.ee-rec-cost {
    display: grid;
    grid-template-columns: minmax(210px, 1fr) minmax(210px, 1fr);
    gap: 0;
    margin: 24px 0 18px;
    border: 1px solid #b9cfce;
    border-left: 5px solid var(--ee-rec-teal);
    border-radius: 5px;
    background: #f5fbf9;
    overflow: hidden;
}

.ee-rec-cost__known,
.ee-rec-cost__total,
.ee-rec-cost__transport {
    display: grid;
    align-content: center;
    gap: 4px;
    min-height: 84px;
    margin: 0;
    padding: 16px 18px;
}

.ee-rec-cost__known span,
.ee-rec-cost__total span {
    color: var(--ee-rec-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.ee-rec-cost__known strong,
.ee-rec-cost__total strong {
    color: var(--ee-rec-navy);
    font-size: 23px;
    line-height: 1.2;
}

.ee-rec-cost__known small {
    max-width: 340px;
    color: #8a4219;
    font-weight: 700;
    line-height: 1.35;
}

.ee-rec-cost__transport {
    border-left: 1px solid var(--ee-rec-line);
    color: var(--ee-rec-navy);
    font-weight: 750;
}

.ee-rec-cost__total {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    min-height: 64px;
    border-top: 1px solid #c8d9da;
    background: var(--ee-rec-navy);
}

.ee-rec-cost__total span,
.ee-rec-cost__total strong {
    color: #fff;
}

.ee-rec-cost__total--known {
    background: var(--ee-rec-teal-dark);
}

.ee-rec-cost__alert {
    grid-column: 1 / -1;
    padding: 16px 18px;
    border-top: 1px solid #efd0b4;
    background: var(--ee-rec-warm);
}

.ee-rec-cost__alert h4 {
    margin: 0 0 8px;
    color: #7e3c13;
    font-size: 15px;
    letter-spacing: 0;
}

.ee-rec-cost__alert ul {
    margin: 0;
    padding-left: 20px;
    color: #624635;
    font-size: 14px;
    line-height: 1.55;
}

.ee-rec-incomplete {
    margin: 16px 0;
    padding: 12px 16px;
    border-left: 3px solid var(--ee-rec-orange);
    background: var(--ee-rec-warm);
    line-height: 1.5;
}

.ee-rec-checks {
    margin: 18px 0 22px;
    font-size: 14px;
}

.ee-rec-checks[open] > summary {
    margin-bottom: 10px;
}

.ee-rec-cautions {
    margin: 0;
    padding-left: 22px;
    line-height: 1.6;
}

.ee-rec-quote {
    background: var(--ee-rec-orange) !important;
    color: #102f42 !important;
}

.ee-rec-quote:hover {
    background: #db6919 !important;
    color: #fff !important;
}

.ee-rec-empty {
    padding: 22px 24px;
    border-left: 4px solid var(--ee-rec-orange);
    background: var(--ee-rec-warm);
}

.ee-rec-adjust {
    padding: 26px 0 8px;
    border-top: 1px solid var(--ee-rec-line);
}

.ee-rec-adjust h3 {
    margin: 0 0 14px;
    color: var(--ee-rec-navy);
    font-size: 19px;
    letter-spacing: 0;
}

.ee-rec-adjust__controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.ee-rec-adjust__button,
.ee-rec-edit {
    min-height: 40px !important;
    padding: 8px 13px !important;
    background: #e8f0f1 !important;
    color: var(--ee-rec-navy) !important;
    font-size: 14px !important;
}

@media (min-width: 761px) {
    .ee-recommendation .ee-rec-items {
        grid-template-columns: repeat(var(--ee-rec-columns, 3), minmax(0, 1fr));
    }

    .ee-recommendation .ee-rec-items--single {
        grid-template-columns: minmax(0, 1fr);
    }

    .ee-rec-items--single .ee-rec-item:has(img) {
        display: grid;
        grid-template-columns: minmax(180px, 30%) minmax(0, 1fr);
    }

    .ee-rec-items--single .ee-rec-item img {
        height: 188px;
    }
}

@media (max-width: 760px) {
    .ee-recommendation {
        margin-top: 18px;
        padding: 0 14px;
    }

    .ee-rec-intro {
        margin-bottom: 16px;
        padding: 16px 18px;
    }

    .ee-rec-intro ul {
        gap: 5px 14px;
        margin-top: 12px;
        font-size: 12px;
    }

    .ee-rec-intro h2,
    .ee-rec-results__header h2 {
        font-size: 23px;
    }

    .ee-rec-intro > p:not(.ee-rec-eyebrow) {
        font-size: 14px;
        line-height: 1.45;
    }

    .ee-rec-progress,
    .ee-rec-form fieldset {
        padding-right: 18px;
        padding-left: 18px;
    }

    .ee-rec-progress li {
        display: grid;
        justify-items: center;
        gap: 5px;
        text-align: center;
    }

    .ee-rec-progress li small {
        font-size: 10px;
    }

    .ee-rec-grid,
    .ee-rec-options {
        grid-template-columns: 1fr;
    }

    .ee-rec-options--compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ee-rec-choice {
        min-height: 66px;
    }

    .ee-rec-options--compact .ee-rec-choice {
        min-height: 54px;
    }

    .ee-rec-form legend,
    .ee-rec-solution h3 {
        font-size: 23px;
    }

    .ee-rec-actions {
        padding-right: 18px;
        padding-left: 18px;
    }

    .ee-rec-actions [data-rec-next],
    .ee-rec-actions [type="submit"] {
        flex: 1;
    }

    .ee-rec-items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .ee-rec-item img {
        height: 118px;
    }

    .ee-rec-item-body {
        padding: 10px;
    }

    .ee-rec-cost {
        grid-template-columns: 1fr;
    }

    .ee-rec-cost__transport {
        min-height: 58px;
        border-top: 1px solid var(--ee-rec-line);
        border-left: 0;
    }

    .ee-rec-cost__total {
        grid-template-columns: 1fr;
    }

    .ee-rec-quote {
        width: 100%;
    }
}

@media (max-width: 420px) {
    .ee-rec-options--compact,
    .ee-rec-items {
        grid-template-columns: 1fr;
    }

    .ee-rec-item:has(img) {
        display: grid;
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .ee-rec-item img {
        height: 100%;
        min-height: 136px;
    }
}

@media (max-width: 520px) {
    .ee-rec-intro {
        margin-bottom: 10px;
        padding: 12px 16px;
        border-left-width: 4px;
    }

    .ee-rec-intro h2 {
        display: none;
    }

    .ee-rec-intro .ee-rec-eyebrow {
        margin-bottom: 5px;
    }

    .ee-rec-intro > p:not(.ee-rec-eyebrow) {
        line-height: 1.35;
    }

    .ee-rec-intro ul {
        gap: 3px 12px;
        margin-top: 8px;
        line-height: 1.35;
    }

    .ee-rec-intro li::before {
        margin-right: 4px;
    }

    .ee-rec-progress {
        padding: 12px 16px 10px;
    }

    .ee-rec-progress__status {
        margin-bottom: 6px;
    }

    .ee-rec-progress__status span {
        font-size: 12px;
    }

    .ee-rec-progress__status strong {
        font-size: 14px;
    }

    .ee-rec-progress__track {
        height: 4px;
    }

    .ee-rec-progress ol {
        gap: 4px;
        margin-top: 8px;
    }

    .ee-rec-progress li {
        gap: 3px;
    }

    .ee-rec-progress li > span {
        flex-basis: 22px;
        width: 22px;
        height: 22px;
    }

    .ee-rec-form fieldset {
        padding-top: 18px;
        padding-bottom: 22px;
    }

    .ee-rec-panel-intro {
        margin: 6px 0 14px;
        font-size: 15px;
        line-height: 1.4;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ee-recommendation *,
    .ee-rec-progress__track span {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}
