.appearance-demo form[data-product-demo] {
    margin: 0;
}

.appearance-demo [data-product-demo] .material-choice,
.appearance-demo [data-product-demo] .finish-options label {
    cursor: pointer;
}

.appearance-demo [data-product-demo] .material-card {
    transition:
        transform 180ms ease,
        border-color 180ms ease,
        box-shadow 180ms ease;
}

.appearance-demo [data-product-demo] .material-choice > input:focus-visible + .material-card {
    outline: 2px solid var(--demo-accent);
    outline-offset: 3px;
}

.appearance-demo [data-product-demo] .finish-options input:focus-visible,
.appearance-demo [data-product-demo] select:focus-visible {
    outline: 2px solid var(--demo-accent);
    outline-offset: 3px;
}

.appearance-demo [data-product-demo] .measurement-input:focus-within {
    border-color: var(--demo-accent);
    box-shadow: 0 0 0 2px rgb(229 139 26 / 14%);
}

.appearance-demo [data-product-demo] .measurement-input > input:focus {
    outline: none;
}

.appearance-demo [data-product-demo] .measurement {
    position: relative;
    min-width: 0;
    margin-top: 8px;
}

.appearance-demo [data-product-demo] .measurement > label {
    position: absolute;
    z-index: 1;
    top: 0;
    left: 10px;
    display: block;
    width: auto;
    max-width: calc(100% - 64px);
    margin: 0;
    padding: 0 5px;
    transform: translateY(-50%);
    background: var(--demo-surface);
    color: #6d5b45;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .035em;
    line-height: 1.3;
    text-transform: uppercase;
}

.appearance-demo [data-product-demo] .measurement > label > span[aria-hidden="true"] {
    position: static;
    display: inline;
    margin: 0;
    padding: 0;
    color: #b94f24;
    font: inherit;
}

.appearance-demo [data-product-demo] .measurement-input {
    display: grid;
    min-width: 0;
    min-height: 48px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--demo-line);
    border-radius: 9px;
    background: var(--demo-surface);
}

.appearance-demo [data-product-demo] .measurement-input > input {
    display: block;
    width: 100%;
    min-width: 0;
    height: auto;
    min-height: 46px;
    margin: 0;
    padding: 12px 13px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
    font-size: 14px;
    line-height: 1.4;
}

.appearance-demo [data-product-demo] .measurement-input > span {
    position: static;
    inset: auto;
    display: flex;
    width: auto;
    min-width: 44px;
    height: auto;
    align-self: stretch;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0 12px;
    transform: none;
    border: 0;
    border-left: 1px solid var(--demo-line);
    border-radius: 0;
    background: var(--demo-price-surface);
    color: #796348;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    white-space: nowrap;
}

.appearance-demo [data-product-demo] .measurement:focus-within > label {
    color: var(--demo-accent-dark);
}

.appearance-demo [data-product-demo] input[aria-invalid="true"],
.appearance-demo [data-product-demo] select[aria-invalid="true"] {
    outline: 2px solid #b04436;
    outline-offset: -2px;
}

.appearance-demo [data-product-demo] .mtp-demo-summary-row > dd {
    min-width: 0;
    flex: 0 1 auto;
    overflow-wrap: anywhere;
}

.appearance-demo .demo-result-shell {
    display: grid;
    min-width: 0;
}

.appearance-demo .demo-results,
.appearance-demo .demo-price-status {
    grid-area: 1 / 1;
    min-width: 0;
}

.appearance-demo .demo-results[hidden] {
    display: block !important;
    visibility: hidden;
    pointer-events: none;
}

.appearance-demo .demo-price-status {
    display: flex;
    align-self: center;
    align-items: center;
    justify-content: center;
    gap: 11px;
    margin: 20px 0;
    padding: 17px;
    border: 1px solid var(--demo-price-line);
    border-radius: 11px;
    background: var(--demo-price-surface);
    color: #715638;
    font-size: 13px;
    line-height: 1.65;
    text-align: center;
}

.appearance-demo .demo-price-status[hidden],
.appearance-demo .demo-retry[hidden] {
    display: none;
}

.appearance-demo .demo-price-status[data-state="loading"]::before {
    width: 17px;
    height: 17px;
    box-sizing: border-box;
    flex: 0 0 17px;
    border: 2px solid var(--demo-price-line);
    border-top-color: var(--demo-accent-dark);
    border-radius: 50%;
    content: "";
    animation: cb-demo-loading 750ms linear infinite;
}

.appearance-demo .demo-price-status[data-state="error"] {
    border-color: #d7aaa1;
    background: #fff5f2;
    color: #984334;
}

.appearance-demo .demo-retry {
    display: block;
    margin: 0 auto 16px;
    padding: 9px 16px;
    border: 1px solid var(--demo-price-line);
    border-radius: 8px;
    background: #fff;
    color: var(--demo-accent-dark);
    font: inherit;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

.appearance-demo .demo-retry:focus-visible {
    outline: 2px solid var(--demo-accent);
    outline-offset: 3px;
}

.appearance-demo .demo-description {
    margin: 12px 0 0;
    color: #6b5948;
    font-size: 12px;
    line-height: 1.7;
}

/*
 * Information tables use the same structure in the live form,
 * the Pricing preview and the product-information examples.
 */
.appearance-demo,
.page-home .customer-information {
    --information-heading: var(--demo-price-surface, #f6f0e5);
    --information-line: var(--demo-price-line, #ded2bf);
    --information-text: #625440;
    --information-alternate: #faf9f7;
}

body .appearance-demo .information-group {
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--information-line);
}

body .appearance-demo .information-group > .config-label,
body.page-home .workflow-table-label {
    margin: 0 0 10px;
    padding: 0;
    border: 0;
    color: var(--information-text);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .035em;
    line-height: 1.5;
    text-transform: uppercase;
}

body.page-home .workflow-table-label {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--information-line);
}

body .appearance-demo .information-group table,
body.page-home .workflow-table,
body.page-home .mtp-information-example table {
    width: 100%;
    border-collapse: collapse;
    color: var(--information-text);
    font-variant-numeric: tabular-nums;
}

body .appearance-demo .information-group :is(th, td),
body.page-home .workflow-table :is(th, td),
body.page-home .mtp-information-example table :is(th, td) {
    padding: 10px 11px;
    border-bottom: 1px solid var(--information-line);
    text-align: left;
    line-height: 1.5;
}

body .appearance-demo .information-group thead th,
body.page-home .workflow-table thead th,
body.page-home .mtp-information-example table thead th {
    background: var(--information-heading);
    color: var(--information-text);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: .02em;
    text-transform: uppercase;
}

body .appearance-demo .information-group tbody td,
body.page-home .workflow-table tbody td,
body.page-home .mtp-information-example table tbody td {
    border-bottom: 1px solid var(--information-line);
    color: var(--information-text);
    font-weight: 400;
}

body .appearance-demo .information-group tbody tr:nth-child(odd) > td,
body.page-home .workflow-table tbody tr:nth-child(odd) > td,
body.page-home .mtp-information-example table tbody tr:nth-child(odd) > td {
    background: #fff;
}

body .appearance-demo .information-group tbody tr:nth-child(even) > td,
body.page-home .workflow-table tbody tr:nth-child(even) > td,
body.page-home .mtp-information-example table tbody tr:nth-child(even) > td {
    background: var(--information-alternate);
}

body .appearance-demo .information-group :is(th, td):last-child,
body.page-home .workflow-table :is(th, td):last-child,
body.page-home .mtp-information-example table :is(th, td):last-child {
    text-align: right;
    white-space: nowrap;
}

body.page-home .mtp-information-example table .is-unavailable > td {
    color: #9b8c7a;
}

@keyframes cb-demo-loading {
    to {
        transform: rotate(360deg);
    }
}

@media (hover: hover) and (pointer: fine) {
    .appearance-demo [data-product-demo] .material-choice:hover .material-card {
        transform: translateY(-2px);
        box-shadow: 0 6px 14px rgb(54 35 17 / 9%);
    }

    .appearance-demo .demo-retry:hover {
        background: var(--demo-price-surface);
    }
}

@media (prefers-reduced-motion: reduce) {
    .appearance-demo [data-product-demo] .material-card {
        transition: none;
    }

    .appearance-demo [data-product-demo] .material-choice:hover .material-card {
        transform: none;
    }

    .appearance-demo .demo-price-status[data-state="loading"]::before {
        animation: none;
    }
}
.appearance-demo [data-product-demo] .config-choice-row--stacked {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 22px;
}

.appearance-demo [data-product-demo] .config-choice-row--stacked > .finish-group,
.appearance-demo [data-product-demo] .config-choice-row--stacked > .edge-group {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.appearance-demo [data-product-demo] .config-choice-row--stacked .finish-options {
    display: grid;
    width: 100%;
    min-width: 0;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    gap: 10px;
}

.appearance-demo [data-product-demo] .finish-options > .demo-finish-choice {
    position: relative;
    display: block;
    min-width: 0;
    margin: 0;
    padding: 0;
    cursor: pointer;
    transition: transform 160ms ease;
}

.appearance-demo [data-product-demo] .demo-finish-choice > input {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 11px;
    width: 14px;
    height: 14px;
    margin: 0;
    padding: 0;
    transform: translateY(-50%);
    accent-color: var(--demo-accent);
    cursor: pointer;
}

.appearance-demo [data-product-demo] .demo-finish-content {
    display: flex;
    min-width: 0;
    min-height: 50px;
    height: 100%;
    align-items: center;
    gap: 8px;
    padding: 10px 10px 10px 34px;
    border: 1px solid var(--demo-line);
    border-radius: 9px;
    background: var(--demo-surface);
    transition:
        border-color 160ms ease,
        background-color 160ms ease,
        box-shadow 160ms ease;
}

.appearance-demo [data-product-demo] .demo-finish-swatch {
    display: block;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border: 1px solid rgb(0 0 0 / 17%);
    border-radius: 50%;
    background: var(--finish-colour);
    box-shadow: inset 0 1px 2px rgb(255 255 255 / 25%);
}

.appearance-demo [data-product-demo] .demo-finish-name {
    display: block;
    min-width: 0;
    color: #51463a;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.appearance-demo [data-product-demo] .demo-finish-choice > input:checked + .demo-finish-content {
    border-color: var(--demo-accent);
    background: var(--demo-price-surface);
    box-shadow: 0 0 0 1px var(--demo-accent);
}

.appearance-demo [data-product-demo] .demo-finish-choice > input:focus-visible {
    outline: none;
}

.appearance-demo [data-product-demo] .demo-finish-choice > input:focus-visible + .demo-finish-content {
    outline: 2px solid var(--demo-accent);
    outline-offset: 3px;
}

.appearance-demo [data-product-demo] .config-choice-row--stacked > .edge-group > select {
    display: block;
    width: 100%;
    max-width: 100%;
    min-height: 44px;
}

@media (max-width: 1050px) {
    .appearance-demo [data-product-demo] .config-choice-row--stacked .finish-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (hover: hover) and (pointer: fine) {
    .appearance-demo [data-product-demo] .finish-group:not(:disabled) .demo-finish-choice:hover {
        transform: translateY(-1px);
    }

    .appearance-demo [data-product-demo] .finish-group:not(:disabled) .demo-finish-choice:hover .demo-finish-content {
        border-color: var(--demo-accent);
        box-shadow: 0 5px 12px rgb(54 35 17 / 8%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .appearance-demo [data-product-demo] .finish-options > .demo-finish-choice,
    .appearance-demo [data-product-demo] .demo-finish-content {
        transition: none;
    }

    .appearance-demo [data-product-demo] .finish-group:not(:disabled) .demo-finish-choice:hover {
        transform: none;
    }
}
/* Practical merchant walkthroughs. */
.mtp-product .mtp-worked-examples {
    min-width: 0;
    padding-bottom: 72px;
    scroll-margin-top: 88px;
}

.mtp-product .mtp-worked-shell {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--mtp-line);
    border-radius: 20px;
    background: #ffffff;
    box-shadow: var(--mtp-shadow);
}

.mtp-product .mtp-worked-tabs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 14px;
    border-bottom: 1px solid var(--mtp-line);
    background: #f8f3eb;
    scrollbar-width: thin;
}

.mtp-product .mtp-worked-tabs > a {
    display: flex;
    flex: 1 0 240px;
    align-items: center;
    gap: 12px;
    padding: 15px;
    border: 1px solid #e7ddcf;
    border-radius: 12px;
    background: #ffffff;
    color: #675744;
    text-decoration: none;
}

.mtp-product .mtp-worked-tabs > a[aria-selected="true"] {
    border-color: #e5a656;
    background: #fff6e7;
    color: #8a4b0e;
    box-shadow: inset 0 -2px 0 #e58b1a;
}

.mtp-product .mtp-worked-number {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border: 1px solid #e7cfaf;
    border-radius: 10px;
    background: #fff9ef;
    color: #a16628;
    font-size: 11px;
    font-weight: 700;
}

.mtp-product .mtp-worked-tabs strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.mtp-product .mtp-worked-tabs small {
    display: block;
    margin-top: 5px;
    color: #89745d;
    font-size: 11px;
    line-height: 1.5;
}

.mtp-product .mtp-worked-panel {
    min-width: 0;
    padding: 28px;
    scroll-margin-top: 90px;
}

.mtp-product .mtp-worked-panel + .mtp-worked-panel {
    border-top: 1px solid var(--mtp-line);
}

.mtp-product .mtp-worked-panel[role="tabpanel"] {
    border-top: 0;
}

.mtp-product .mtp-worked-intro {
    max-width: 940px;
    margin-bottom: 24px;
    color: var(--mtp-muted);
    font-size: 14px;
    line-height: 1.8;
}

.mtp-product .mtp-worked-steps {
    display: grid;
    gap: 12px;
}

.mtp-product .mtp-worked-step {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--mtp-line);
    border-radius: 13px;
    background: #ffffff;
}

.mtp-product .mtp-worked-step > summary {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 17px 20px;
    background: #fcfaf6;
    color: #493b2d;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
    list-style: none;
}

.mtp-product .mtp-worked-step > summary::-webkit-details-marker {
    display: none;
}

.mtp-product .mtp-worked-step > summary::after {
    margin-inline-start: auto;
    color: #a96a25;
    font-size: 21px;
    font-weight: 400;
    content: "+";
}

.mtp-product .mtp-worked-step[open] > summary {
    border-bottom: 1px solid #ecddc9;
    background: #fff7e9;
}

.mtp-product .mtp-worked-step[open] > summary::after {
    content: "−";
}

.mtp-product .mtp-worked-step-number {
    flex: 0 0 24px;
    color: #ae7a3c;
    font-size: 11px;
    font-weight: 600;
}

.mtp-product .mtp-worked-step-body {
    padding: 24px;
}

.mtp-product .mtp-worked-route {
    margin: 0;
    color: #a06426;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.7;
}

.mtp-product .mtp-worked-description {
    margin-top: 10px;
    color: var(--mtp-muted);
    font-size: 13px;
    line-height: 1.8;
}

.mtp-product .mtp-worked-step-layout {
    display: grid;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: 28px;
    margin-top: 22px;
}

.mtp-product .mtp-worked-instructions,
.mtp-product .mtp-worked-screens {
    min-width: 0;
}

.mtp-product .mtp-worked-fields {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 12px;
    line-height: 1.65;
}

.mtp-product .mtp-worked-fields th,
.mtp-product .mtp-worked-fields td {
    padding: 11px 12px;
    border-bottom: 1px solid #eadfce;
    text-align: left;
    vertical-align: top;
    overflow-wrap: break-word;
}

.mtp-product .mtp-worked-fields thead th {
    background: #fff3df;
    color: #84603a;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.mtp-product .mtp-worked-fields tbody th {
    width: 46%;
    color: #514332;
    font-weight: 600;
}

.mtp-product .mtp-worked-fields tbody td {
    color: #78644e;
    font-weight: 400;
}

.mtp-product .mtp-worked-fields tbody tr:nth-child(even) > * {
    background: #faf8f4;
}

.mtp-product .mtp-worked-action {
    margin-top: 18px;
    padding: 14px 16px;
    border-inline-start: 3px solid #e58b1a;
    background: #fff8ec;
    color: #72502d;
    font-size: 12px;
    line-height: 1.8;
}

.mtp-product .mtp-worked-action strong {
    display: block;
    margin-bottom: 4px;
    color: #8a4b0e;
    font-weight: 700;
}

.mtp-product .mtp-worked-note {
    margin-top: 14px;
    color: #8a7966;
    font-size: 11px;
    line-height: 1.8;
}

.mtp-product .mtp-worked-screens {
    display: grid;
    gap: 22px;
}

.mtp-product .mtp-worked-screen {
    min-width: 0;
    margin: 0;
}

.mtp-product .mtp-worked-screen > a {
    display: block;
    overflow: hidden;
    padding: 8px;
    border: 1px solid #e6dfd5;
    border-radius: 11px;
    background: #ffffff;
    color: #97581b;
    text-decoration: none;
}

.mtp-product .mtp-worked-screen picture {
    display: flex;
    min-height: 180px;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: #f2f0ec;
}

.mtp-product .mtp-worked-screen img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 380px;
    object-fit: contain;
}

.mtp-product .mtp-worked-screen > a > span {
    display: block;
    padding: 12px 6px 5px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.5;
    text-align: right;
}

.mtp-product .mtp-worked-screen figcaption {
    margin-top: 9px;
    color: #8a7966;
    font-size: 10px;
    line-height: 1.6;
    text-align: center;
}

.mtp-product .mtp-worked-result {
    margin-top: 26px;
    padding: 24px;
    border: 1px solid #e9c18b;
    border-radius: 14px;
    background: linear-gradient(135deg, #fff9ef, #fff2dc);
}

.mtp-product .mtp-worked-result h3 {
    margin-top: 9px;
    color: #714315;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.25;
}

.mtp-product .mtp-worked-result dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 28px;
    margin: 22px 0 0;
}

.mtp-product .mtp-worked-result dl > div {
    min-width: 0;
}

.mtp-product .mtp-worked-result dt {
    color: #987448;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.5;
}

.mtp-product .mtp-worked-result dd {
    margin: 5px 0 0;
    color: #6f4d28;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.7;
}

.mtp-product .mtp-worked-result-note {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #ead4b5;
    color: #947752;
    font-size: 11px;
    line-height: 1.8;
}

.mtp-product .mtp-admin-view {
    scroll-margin-top: 90px;
}

@media (hover: hover) and (pointer: fine) {
    .mtp-product .mtp-worked-tabs > a:hover,
    .mtp-product .mtp-worked-screen > a:hover {
        border-color: #dda55f;
    }
}

@media (max-width: 900px) {
    .mtp-product .mtp-worked-step-layout {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 760px) {
    .mtp-product .mtp-worked-examples {
        padding-bottom: 48px;
    }

    .mtp-product .mtp-worked-panel {
        padding: 22px;
    }

    .mtp-product .mtp-worked-step > summary {
        gap: 9px;
        padding: 15px;
        font-size: 13px;
    }

    .mtp-product .mtp-worked-step-body {
        padding: 18px;
    }

    .mtp-product .mtp-worked-fields th,
    .mtp-product .mtp-worked-fields td {
        padding: 10px;
        font-size: 11px;
    }

    .mtp-product .mtp-worked-result {
        padding: 20px;
    }

    .mtp-product .mtp-worked-result dl {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }

    .mtp-product .mtp-worked-result h3 {
        font-size: 21px;
    }
}

@media (forced-colors: active) {
    .mtp-product .mtp-worked-tabs > a[aria-selected="true"] {
        outline: 2px solid Highlight;
        outline-offset: -3px;
    }
}