.pgm-kemeny-configurator {
    --pgm-red: #b00020;
    --pgm-red-dark: #780016;
    --pgm-ink: #252525;
    --pgm-muted: #6f6f6f;
    --pgm-line: #ddd9d2;
    --pgm-paper: #fffdf9;
    --pgm-soft: #f6f3ee;
    --pgm-shadow: 0 18px 60px rgba(24, 19, 13, 0.11);
    color: var(--pgm-ink);
    font-family: inherit;
    margin: 24px auto;
    max-width: 1180px;
}

.pgm-kemeny-configurator *,
.pgm-kemeny-configurator *::before,
.pgm-kemeny-configurator *::after {
    box-sizing: border-box;
}

.pgm-configurator-heading {
    margin: 0 auto 28px;
    max-width: 800px;
    text-align: center;
}

.pgm-configurator-heading h2 {
    color: var(--pgm-ink);
    font-size: clamp(29px, 4vw, 46px);
    line-height: 1.12;
    margin: 5px 0 12px;
}

.pgm-configurator-heading > p:last-child {
    color: var(--pgm-muted);
    font-size: 17px;
    line-height: 1.6;
    margin: 0;
}

.pgm-configurator-eyebrow {
    color: var(--pgm-red);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    margin: 0;
    text-transform: uppercase;
}

.pgm-configurator-grid {
    align-items: stretch;
    background: var(--pgm-paper);
    border: 1px solid var(--pgm-line);
    border-radius: 22px;
    box-shadow: var(--pgm-shadow);
    display: grid;
    grid-template-columns: minmax(320px, 0.92fr) minmax(390px, 1.08fr);
    overflow: hidden;
}

.pgm-configurator-visual {
    align-items: center;
    background:
        radial-gradient(circle at 50% 28%, rgba(176, 0, 32, 0.08), transparent 34%),
        linear-gradient(145deg, #f9f7f2, #ece8e0);
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 620px;
    padding: 32px;
}

.pgm-chimney-svg {
    display: block;
    height: auto;
    max-height: 515px;
    max-width: 420px;
    overflow: visible;
    width: 100%;
}

.pgm-chimney-body {
    stroke: #aaa69e;
    stroke-width: 2;
    transition: all 260ms ease;
}

.pgm-chimney-cap {
    fill: #8d8981;
    stroke: #747069;
    stroke-width: 2;
    transition: all 260ms ease;
}

.pgm-flue-outer {
    fill: #e8e3da;
    stroke: #8c877f;
    stroke-width: 2;
    transition: all 260ms ease;
}

.pgm-flue-inner {
    fill: #4c4945;
    stroke: #282624;
    stroke-width: 2;
    transition: all 260ms ease;
}

.pgm-block-lines line {
    stroke: rgba(91, 88, 82, 0.25);
    stroke-width: 1.5;
}

.pgm-cleanout-door {
    fill: #a6a29b;
    stroke: #55514c;
    stroke-width: 2;
}

.pgm-door-handle {
    fill: var(--pgm-red);
}

.pgm-upper-cleanout {
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
    visibility: hidden;
}

.pgm-upper-cleanout.is-visible {
    opacity: 1;
    visibility: visible;
}

.pgm-dimension-line,
.pgm-ground-line {
    fill: none;
    stroke: #6e6a63;
    stroke-width: 2;
}

.pgm-dimension-arrow {
    fill: none;
    stroke: #6e6a63;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.pgm-svg-label {
    fill: var(--pgm-red);
    font-family: inherit;
    font-size: 19px;
    font-weight: 800;
}

.pgm-visual-note {
    color: #77736c;
    font-size: 12px;
    margin: 6px 0 0;
    text-align: center;
}

.pgm-configurator-controls {
    padding: clamp(28px, 4vw, 52px);
}

.pgm-fieldset {
    border: 0;
    margin: 0 0 28px;
    min-width: 0;
    padding: 0;
}

.pgm-fieldset legend {
    color: var(--pgm-ink);
    display: block;
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 12px;
    padding: 0;
    width: 100%;
}

.pgm-diameter-options {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pgm-diameter-button {
    align-items: baseline;
    background: #fff;
    border: 2px solid var(--pgm-line);
    border-radius: 12px;
    color: var(--pgm-ink);
    cursor: pointer;
    display: flex;
    font-family: inherit;
    justify-content: center;
    min-height: 66px;
    padding: 12px;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease, transform 160ms ease;
}

.pgm-diameter-button:hover {
    border-color: #b9aaa9;
    transform: translateY(-1px);
}

.pgm-diameter-button.is-selected {
    background: var(--pgm-red);
    border-color: var(--pgm-red);
    color: #fff;
}

.pgm-diameter-button strong {
    font-size: 23px;
    font-weight: 800;
}

.pgm-diameter-button span {
    font-size: 14px;
    font-weight: 700;
    margin-left: 4px;
}

.pgm-height-control {
    display: grid;
    gap: 10px;
    grid-template-columns: 52px 1fr 52px;
}

.pgm-height-step,
.pgm-height-select {
    background: #fff;
    border: 2px solid var(--pgm-line);
    border-radius: 10px;
    color: var(--pgm-ink);
    font-family: inherit;
    font-size: 17px;
    font-weight: 800;
    height: 52px;
}

.pgm-height-step {
    cursor: pointer;
    font-size: 26px;
    line-height: 1;
    padding: 0;
}

.pgm-height-step:not(:disabled):hover {
    border-color: var(--pgm-red);
    color: var(--pgm-red);
}

.pgm-height-step:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.pgm-height-select {
    padding: 0 14px;
    text-align: center;
}

.pgm-height-range {
    accent-color: var(--pgm-red);
    cursor: pointer;
    margin: 18px 0 0;
    width: 100%;
}

.pgm-addon-card {
    align-items: center;
    background: #fff;
    border: 2px solid var(--pgm-line);
    border-radius: 14px;
    cursor: pointer;
    display: grid;
    gap: 12px;
    grid-template-columns: 28px 1fr auto;
    padding: 16px;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.pgm-addon-card:has(.pgm-addon-checkbox:checked) {
    border-color: var(--pgm-red);
    box-shadow: 0 0 0 3px rgba(176, 0, 32, 0.08);
}

.pgm-addon-checkbox {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.pgm-addon-check {
    align-items: center;
    border: 2px solid #aaa49b;
    border-radius: 7px;
    display: flex;
    height: 26px;
    justify-content: center;
    width: 26px;
}

.pgm-addon-checkbox:checked + .pgm-addon-check {
    background: var(--pgm-red);
    border-color: var(--pgm-red);
}

.pgm-addon-checkbox:checked + .pgm-addon-check::after {
    border: solid #fff;
    border-width: 0 2px 2px 0;
    content: '';
    height: 11px;
    transform: rotate(45deg) translate(-1px, -1px);
    width: 6px;
}

.pgm-addon-checkbox:focus-visible + .pgm-addon-check {
    outline: 3px solid rgba(176, 0, 32, 0.24);
    outline-offset: 2px;
}

.pgm-addon-copy strong,
.pgm-addon-copy small {
    display: block;
}

.pgm-addon-copy strong {
    font-size: 15px;
    font-weight: 800;
}

.pgm-addon-copy small {
    color: var(--pgm-muted);
    font-size: 12px;
    line-height: 1.45;
    margin-top: 2px;
}

.pgm-addon-price {
    color: var(--pgm-red);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.pgm-price-summary {
    background: var(--pgm-soft);
    border: 1px solid var(--pgm-line);
    border-radius: 16px;
    margin: 8px 0 18px;
    padding: 20px;
}

.pgm-summary-product {
    border-bottom: 1px solid var(--pgm-line);
    display: flex;
    flex-wrap: wrap;
    gap: 4px 12px;
    justify-content: space-between;
    margin-bottom: 13px;
    padding-bottom: 13px;
}

.pgm-summary-product strong {
    font-size: 15px;
    font-weight: 800;
}

.pgm-summary-product span {
    color: var(--pgm-muted);
    font-size: 13px;
    font-weight: 700;
}

.pgm-price-row {
    align-items: baseline;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin: 7px 0;
}

.pgm-price-row span {
    color: var(--pgm-muted);
    font-size: 13px;
}

.pgm-price-row strong,
.pgm-price-row del {
    font-size: 15px;
}

.pgm-regular-row del {
    color: #6d6963;
}

.pgm-sale-row strong {
    color: var(--pgm-red);
    font-size: 22px;
    font-weight: 900;
}

.pgm-discount-row {
    color: var(--pgm-red);
    font-size: 14px;
    font-weight: 800;
    margin: 2px 0 12px;
    text-align: right;
}

.pgm-discount-row strong {
    font-size: 17px;
}

.pgm-total-row {
    border-top: 1px solid var(--pgm-line);
    margin-top: 14px;
    padding-top: 14px;
}

.pgm-total-row span {
    color: var(--pgm-ink);
    font-weight: 800;
}

.pgm-total-row strong {
    color: var(--pgm-red);
    font-size: 22px;
    font-weight: 900;
}

.pgm-sale-end {
    background: rgba(176, 0, 32, 0.06);
    border-left: 4px solid var(--pgm-red);
    color: #4f4848;
    font-size: 13px;
    margin: 16px 0 0;
    padding: 9px 11px;
}

.pgm-sale-end strong {
    color: var(--pgm-red);
    font-weight: 800;
}

.pgm-availability {
    color: var(--pgm-red);
    font-weight: 800;
    margin: 12px 0 0;
}

.pgm-configurator-button {
    align-items: center;
    background: var(--pgm-red);
    border: 2px solid var(--pgm-red);
    border-radius: 12px;
    color: #fff !important;
    display: flex;
    font-size: 16px;
    font-weight: 900;
    gap: 14px;
    justify-content: center;
    min-height: 56px;
    padding: 14px 20px;
    text-decoration: none !important;
    transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.pgm-configurator-button:hover {
    background: var(--pgm-red-dark);
    border-color: var(--pgm-red-dark);
    color: #fff !important;
    transform: translateY(-1px);
}

.pgm-configurator-button.is-disabled {
    cursor: not-allowed;
    opacity: 0.48;
    transform: none;
}

.pgm-handoff-note {
    color: var(--pgm-muted);
    font-size: 12px;
    line-height: 1.5;
    margin: 9px 8px 0;
    text-align: center;
}

.pgm-handoff-notice {
    background: rgba(176, 0, 32, 0.07);
    border: 1px solid rgba(176, 0, 32, 0.24);
    border-left: 5px solid #b00020;
    border-radius: 5px;
    color: #353030;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.55;
    margin: 12px 0 18px;
    padding: 12px 15px;
}

.pgm-handoff-notice.has-warning {
    background: #fff6e5;
    border-color: #d49a27;
    border-left-color: #d49a27;
}

@media (max-width: 860px) {
    .pgm-configurator-grid {
        grid-template-columns: 1fr;
    }

    .pgm-configurator-visual {
        min-height: 500px;
        padding: 22px;
    }

    .pgm-chimney-svg {
        max-height: 440px;
    }
}

@media (max-width: 520px) {
    .pgm-kemeny-configurator {
        margin: 14px auto;
    }

    .pgm-configurator-heading {
        margin-bottom: 18px;
        padding: 0 8px;
    }

    .pgm-configurator-heading h2 {
        font-size: 30px;
    }

    .pgm-configurator-heading > p:last-child {
        font-size: 15px;
    }

    .pgm-configurator-grid {
        border-radius: 14px;
    }

    .pgm-configurator-visual {
        min-height: 420px;
        padding: 14px;
    }

    .pgm-chimney-svg {
        max-height: 375px;
    }

    .pgm-configurator-controls {
        padding: 24px 18px 28px;
    }

    .pgm-diameter-button {
        min-height: 58px;
        padding: 8px;
    }

    .pgm-diameter-button strong {
        font-size: 20px;
    }

    .pgm-addon-card {
        grid-template-columns: 28px 1fr;
    }

    .pgm-addon-price {
        grid-column: 2;
    }

    .pgm-summary-product {
        display: block;
    }

    .pgm-summary-product span {
        display: block;
        margin-top: 4px;
    }
}
