:root {
    --ddc-accent: #f28a17;
    --ddc-accent-dark: #c86600;
    --ddc-ink: #171717;
    --ddc-muted: #6b6b6b;
    --ddc-line: #e6e3de;
    --ddc-bg: #f6f4f0;
    --ddc-card: #ffffff;
    --ddc-success: #18794e;
    --ddc-danger: #b42318;
    --ddc-radius: 18px;
    --ddc-shadow: 0 18px 60px rgba(24, 20, 14, 0.12);
}

.ddc-configurator,
.ddc-configurator * {
    box-sizing: border-box;
}

.ddc-configurator {
    width: 100%;
    margin: 24px auto;
    color: var(--ddc-ink);
    font-family: inherit;
    line-height: 1.45;
}

.ddc-page-description {
    max-width: 980px;
    margin: 0 0 22px auto;
    color: var(--ddc-muted);
    font-size: clamp(15px, 1.25vw, 18px);
    font-weight: 600;
    line-height: 1.9;
    text-align: right;
}

.ddc-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(390px, 0.75fr);
    min-height: 760px;
    overflow: hidden;
    border: 1px solid var(--ddc-line);
    border-radius: 26px;
    background: var(--ddc-card);
    box-shadow: var(--ddc-shadow);
}

.ddc-viewer-panel {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    background: #f3f2ef;
}

.ddc-viewer-panel:fullscreen {
    width: 100vw;
    height: 100vh;
}

.ddc-viewer-toolbar {
    position: absolute;
    z-index: 5;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 24px 26px;
    pointer-events: none;
}

.ddc-viewer-toolbar > * {
    pointer-events: auto;
}

.ddc-eyebrow {
    display: block;
    margin-bottom: 2px;
    color: var(--ddc-accent-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.ddc-viewer-toolbar h2 {
    margin: 0;
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1.15;
}

.ddc-viewer-current-price {
    position: absolute;
    top: 18px;
    left: 50%;
    display: flex;
    min-width: 154px;
    max-width: min(220px, 34vw);
    padding: 8px 14px 9px;
    transform: translateX(-50%);
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(242, 138, 23, 0.35);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 7px 24px rgba(0, 0, 0, 0.09);
    text-align: center;
    pointer-events: none;
    backdrop-filter: blur(12px);
}

.ddc-viewer-current-price span {
    color: var(--ddc-muted);
    font-size: 10px;
    line-height: 1.2;
    white-space: nowrap;
}

.ddc-viewer-current-price strong {
    margin-top: 2px;
    color: var(--ddc-ink);
    font-size: clamp(18px, 1.65vw, 23px);
    line-height: 1.05;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ddc-viewer-actions {
    display: flex;
    gap: 8px;
}

.ddc-icon-button {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
    color: #171717;
    cursor: pointer;
    font-size: 20px;
    backdrop-filter: blur(10px);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.ddc-icon-button:hover,
.ddc-icon-button:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    outline: 2px solid rgba(242, 138, 23, 0.35);
}

.ddc-viewer {
    position: relative;
    min-height: 650px;
    flex: 1;
    overflow: hidden;
    background: radial-gradient(circle at 50% 42%, #fff 0, #f0eeea 65%, #e8e5df 100%);
}

.ddc-viewer canvas {
    display: block;
    width: 100%;
    height: 100%;
    touch-action: none;
}

.ddc-dimension-label {
    position: absolute;
    z-index: 4;
    top: 0;
    left: 0;
    min-width: 76px;
    padding: 7px 13px;
    border: 2px solid rgba(242, 138, 23, 0.92);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 5px 16px rgba(31, 22, 12, 0.15);
    color: #151515;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
    will-change: transform;
    backface-visibility: hidden;
}

.ddc-viewer canvas {
    image-rendering: auto;
    transform: translateZ(0);
}

.ddc-primary-button[aria-busy="true"] {
    cursor: progress;
}

@media (max-width: 767px) {
    .ddc-dimension-label {
        min-width: 62px;
        padding: 6px 9px;
        border-width: 1.5px;
        border-radius: 10px;
        font-size: 12px;
    }
}

.ddc-viewer-loading,
.ddc-viewer-fallback {
    position: absolute;
    z-index: 4;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
    padding: 30px;
    background: rgba(243, 242, 239, 0.94);
    text-align: center;
}

.ddc-viewer-loading[hidden],
.ddc-viewer-fallback[hidden] {
    display: none !important;
}

.ddc-viewer-fallback strong {
    font-size: 18px;
}

.ddc-viewer-fallback span {
    max-width: 480px;
    color: var(--ddc-muted);
}

.ddc-spinner,
.ddc-button-spinner {
    display: inline-block;
    width: 28px;
    height: 28px;
    border: 3px solid rgba(242, 138, 23, 0.2);
    border-top-color: var(--ddc-accent);
    border-radius: 50%;
    animation: ddc-spin 0.8s linear infinite;
}

.ddc-button-spinner {
    width: 18px;
    height: 18px;
    border-width: 2px;
    border-color: rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
}

@keyframes ddc-spin {
    to { transform: rotate(360deg); }
}

.ddc-viewer-hint {
    position: absolute;
    z-index: 3;
    right: 50%;
    bottom: 24px;
    padding: 9px 14px;
    transform: translateX(50%);
    border: 1px solid rgba(0, 0, 0, 0.07);
    border-radius: 100px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.07);
    color: #595959;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
    backdrop-filter: blur(10px);
}

.ddc-live-selection {
    position: absolute;
    z-index: 3;
    right: 24px;
    bottom: 78px;
    left: 24px;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    color: #555;
    font-size: 13px;
    pointer-events: none;
}

.ddc-live-selection b {
    color: var(--ddc-accent);
}

.ddc-controls-panel {
    position: relative;
    display: flex;
    max-height: 880px;
    flex-direction: column;
    overflow-y: auto;
    background: #fff;
    scrollbar-width: thin;
}

.ddc-progress {
    display: flex;
    align-items: center;
    padding: 24px 28px 10px;
    direction: ltr;
}

.ddc-progress span {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ddc-line);
    border-radius: 50%;
    background: #fff;
    color: #888;
    font-size: 12px;
    font-weight: 700;
}

.ddc-progress span.is-active,
.ddc-progress span:first-child {
    border-color: var(--ddc-accent);
    background: var(--ddc-accent);
    color: #fff;
}

.ddc-progress i {
    height: 1px;
    flex: 1;
    background: var(--ddc-line);
}

.ddc-step {
    padding: 21px 28px;
    border-bottom: 1px solid var(--ddc-line);
}

.ddc-step-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 14px;
}

.ddc-step-heading span {
    display: block;
    margin-bottom: 2px;
    color: var(--ddc-accent-dark);
    font-size: 11px;
    font-weight: 800;
}

.ddc-step-heading h3 {
    margin: 0;
    font-size: 18px;
}

.ddc-step-heading small {
    color: var(--ddc-muted);
    font-size: 11px;
}

.ddc-subheading {
    margin: 16px 0 8px;
    color: #333;
    font-size: 13px;
    font-weight: 700;
}

.ddc-option-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ddc-option-grid-sizes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ddc-option-card {
    position: relative;
    display: flex;
    min-height: 76px;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid var(--ddc-line);
    border-radius: 13px;
    background: #fff;
    color: var(--ddc-ink);
    cursor: pointer;
    text-align: right;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.ddc-option-card:hover:not(:disabled),
.ddc-option-card:focus-visible:not(:disabled) {
    border-color: rgba(242, 138, 23, 0.55);
    box-shadow: 0 7px 18px rgba(30, 20, 5, 0.07);
    transform: translateY(-1px);
    outline: none;
}

.ddc-option-card.is-selected {
    border-color: var(--ddc-accent);
    box-shadow: 0 0 0 2px rgba(242, 138, 23, 0.12);
}

.ddc-option-card.is-selected::after {
    content: "✓";
    position: absolute;
    top: 7px;
    left: 7px;
    display: flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ddc-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

.ddc-option-card.is-disabled,
.ddc-option-card:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.ddc-option-card em {
    position: absolute;
    bottom: 5px;
    left: 8px;
    color: var(--ddc-danger);
    font-size: 9px;
    font-style: normal;
}

.ddc-option-card img,
.ddc-option-placeholder,
.ddc-surface-swatch {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 9px;
    object-fit: cover;
    background-color: #efede9;
}

.ddc-option-placeholder {
    position: relative;
    overflow: hidden;
}

.ddc-option-placeholder::before,
.ddc-option-placeholder::after {
    content: "";
    position: absolute;
    right: 50%;
    width: 4px;
    height: 40px;
    border-radius: 3px;
    background: #292929;
    transform-origin: center;
}

.ddc-option-placeholder.is-x::before { transform: translateX(50%) rotate(30deg); }
.ddc-option-placeholder.is-x::after { transform: translateX(50%) rotate(-30deg); }
.ddc-option-placeholder.is-a::before { transform: translateX(8px) rotate(18deg); }
.ddc-option-placeholder.is-a::after { transform: translateX(-8px) rotate(-18deg); }
.ddc-option-placeholder.is-t::before { transform: translateX(50%); height: 32px; top: 7px; }
.ddc-option-placeholder.is-t::after { width: 30px; height: 4px; right: 9px; bottom: 6px; }

.ddc-option-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.ddc-option-copy strong {
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ddc-option-copy small {
    color: var(--ddc-muted);
    font-size: 11px;
}

.ddc-size-card {
    min-height: 90px;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
    padding: 9px 5px;
    text-align: center;
}

.ddc-size-card strong { font-size: 14px; }
.ddc-size-card span { color: var(--ddc-muted); font-size: 11px; }
.ddc-size-card small { color: var(--ddc-accent-dark); font-size: 10px; }

.ddc-color-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ddc-color-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 92px;
    padding: 8px 12px;
    border: 1px solid var(--ddc-line);
    border-radius: 100px;
    background: #fff;
    color: #333;
    cursor: pointer;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.ddc-color-button span {
    display: inline-block;
    flex: 0 0 auto;
    white-space: nowrap;
}

.ddc-color-button i {
    display: block;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border: 1px solid rgba(0, 0, 0, 0.14);
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.ddc-color-button.is-selected {
    border-color: var(--ddc-accent);
    box-shadow: 0 0 0 2px rgba(242, 138, 23, 0.1);
}

.ddc-checkbox-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.ddc-check-card {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 11px;
    border: 1px solid var(--ddc-line);
    border-radius: 11px;
    cursor: pointer;
}

.ddc-check-card:has(input:checked) {
    border-color: var(--ddc-accent);
    background: rgba(242, 138, 23, 0.045);
}

.ddc-check-card.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.ddc-check-card input {
    width: 17px;
    height: 17px;
    accent-color: var(--ddc-accent);
}

.ddc-check-card span {
    display: flex;
    flex-direction: column;
}

.ddc-check-card strong { font-size: 12px; }
.ddc-check-card small { color: var(--ddc-muted); font-size: 10px; }

.ddc-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.ddc-form-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ddc-form-field > span {
    color: #444;
    font-size: 12px;
    font-weight: 700;
}

.ddc-form-field select {
    width: 100%;
    min-height: 44px;
    padding: 7px 11px;
    border: 1px solid var(--ddc-line);
    border-radius: 10px;
    background: #fff;
    color: #222;
    font: inherit;
}

.ddc-form-field select:focus {
    border-color: var(--ddc-accent);
    outline: 2px solid rgba(242, 138, 23, 0.12);
}

.ddc-installation-option {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    align-self: end;
    padding: 8px 11px;
    border: 1px solid var(--ddc-line);
    border-radius: 10px;
    cursor: pointer;
}

.ddc-installation-option[hidden] { display: none; }
.ddc-installation-option input { width: 18px; height: 18px; accent-color: var(--ddc-accent); }
.ddc-installation-option span { display: flex; flex-direction: column; }
.ddc-installation-option strong { font-size: 12px; }
.ddc-installation-option small { color: var(--ddc-accent-dark); font-size: 10px; }

.ddc-summary {
    position: sticky;
    z-index: 7;
    bottom: 0;
    margin-top: auto;
    padding: 20px 28px 24px;
    border-top: 1px solid var(--ddc-line);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 -16px 38px rgba(20, 15, 8, 0.07);
    backdrop-filter: blur(14px);
}

.ddc-summary-top {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
}

.ddc-summary-top > div {
    display: flex;
    flex-direction: column;
}

.ddc-summary-top span {
    color: var(--ddc-muted);
    font-size: 11px;
}

.ddc-summary-top strong {
    font-size: 26px;
    line-height: 1.1;
}

/* 3.6.25 — live quantity, discount and final-total preview. */
.ddc-unit-price-block {
    flex: 0 0 auto;
    text-align: right;
}

.ddc-quantity-price-summary {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px 14px;
    min-width: 210px;
    padding: 10px 12px;
    border: 1px solid rgba(242, 138, 23, .25);
    border-radius: 12px;
    background: rgba(242, 138, 23, .055);
    color: #202020;
}

.ddc-quantity-price-summary[hidden] { display: none !important; }

.ddc-quantity-price-summary > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
}

.ddc-quantity-price-summary span {
    color: #5e5e5e;
    font-size: 9px;
    white-space: nowrap;
}

.ddc-quantity-price-summary strong {
    color: #191919;
    font-size: 11px;
    line-height: 1.25;
    direction: ltr;
    white-space: nowrap;
}

.ddc-quantity-price-summary .is-zero { opacity: .62; }

.ddc-quantity-price-summary .ddc-quantity-summary-final {
    grid-column: 1 / -1;
    margin-top: 2px;
    padding-top: 6px;
    border-top: 1px solid rgba(242, 138, 23, .23);
}

.ddc-quantity-price-summary .ddc-quantity-summary-final span {
    color: #6f4700;
    font-weight: 800;
}

.ddc-quantity-price-summary .ddc-quantity-summary-final strong {
    color: #111;
    font-size: 15px;
    font-weight: 900;
}

.ddc-text-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--ddc-accent-dark);
    cursor: pointer;
    font-size: 11px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ddc-price-breakdown {
    display: grid;
    gap: 5px;
    margin-top: 12px;
    padding: 12px;
    border-radius: 10px;
    background: #f7f6f3;
}

.ddc-price-breakdown[hidden] { display: none; }

.ddc-price-breakdown div {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: #555;
    font-size: 11px;
}

.ddc-price-breakdown strong { color: #222; font-size: 11px; }

.ddc-lead-time {
    display: flex;
    gap: 18px;
    margin-top: 10px;
    color: var(--ddc-muted);
    font-size: 11px;
}

.ddc-lead-time strong { color: #333; }

.ddc-message {
    min-height: 18px;
    margin: 7px 0 4px;
    font-size: 11px;
}

.ddc-message.is-error { color: var(--ddc-danger); }
.ddc-message.is-success { color: var(--ddc-success); }
.ddc-message.is-notice { color: #7a5200; }

.ddc-multi-desk-discount {
    margin-top: 10px;
    padding: 9px 11px;
    border: 1px solid rgba(242, 138, 23, 0.28);
    border-radius: 10px;
    background: rgba(242, 138, 23, 0.07);
    color: #6f4700;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.65;
}

.ddc-multi-desk-discount[hidden] { display: none; }

.ddc-summary-actions {
    display: grid;
    gap: 9px;
}

.ddc-secondary-button {
    display: flex;
    width: 100%;
    min-height: 50px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 17px;
    border: 1px solid var(--ddc-accent);
    border-radius: 13px;
    background: #fff8ef;
    color: #9a5100;
    cursor: pointer;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease, background 0.16s ease;
}

.ddc-secondary-button:hover:not(:disabled),
.ddc-secondary-button:focus-visible:not(:disabled) {
    transform: translateY(-1px);
    background: #fff2e0;
    box-shadow: 0 9px 22px rgba(226, 111, 0, 0.13);
    outline: 2px solid rgba(242, 138, 23, 0.2);
}

.ddc-secondary-button:disabled {
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.5;
}

.ddc-secondary-button b { font-size: 19px; }

.ddc-primary-button {
    display: flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 18px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--ddc-accent), #e87300);
    box-shadow: 0 10px 25px rgba(226, 111, 0, 0.24);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.ddc-primary-button:hover:not(:disabled),
.ddc-primary-button:focus-visible:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 14px 32px rgba(226, 111, 0, 0.3);
    outline: 2px solid rgba(242, 138, 23, 0.3);
}

.ddc-primary-button:disabled {
    cursor: not-allowed;
    box-shadow: none;
    opacity: 0.5;
}

.ddc-primary-button b { font-size: 21px; }
.ddc-summary-note { margin: 8px 0 0; color: #8a8a8a; font-size: 9px; text-align: center; }
.ddc-muted { color: var(--ddc-muted); font-size: 12px; }

.ddc-empty-state {
    padding: 28px;
    border: 1px solid #e5e1da;
    border-radius: 14px;
    background: #faf9f7;
    color: #5a5349;
    text-align: center;
}

.woocommerce-cart .ddc-cart-preview,
.ddc-cart-preview {
    width: 78px !important;
    height: 58px !important;
    border-radius: 7px;
    object-fit: cover;
}

@media (max-width: 1180px) {
    .ddc-shell {
        grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.75fr);
    }
    .ddc-viewer { min-height: 580px; }
    .ddc-option-grid-sizes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .ddc-configurator { margin: 10px auto; }
    .ddc-page-description { margin: 0 14px 14px; font-size: 14px; line-height: 1.75; }
    .ddc-shell {
        display: block;
        overflow: visible;
        border-radius: 18px;
    }
    .ddc-viewer-panel {
        position: sticky;
        z-index: 8;
        top: 0;
        height: min(54vh, 520px);
        border-bottom: 1px solid var(--ddc-line);
    }
    .ddc-viewer { min-height: 0; height: 100%; }
    .ddc-controls-panel { max-height: none; overflow: visible; }
    .ddc-viewer-toolbar { padding: 16px 17px; }
    .ddc-viewer-current-price { top: 12px; min-width: 142px; padding: 7px 11px 8px; }
    .ddc-viewer-hint { bottom: 14px; font-size: 10px; }
    .ddc-live-selection { right: 12px; bottom: 54px; left: 12px; font-size: 10px; }
    .ddc-summary { padding-bottom: max(20px, env(safe-area-inset-bottom)); }
}

@media (max-width: 560px) {
    .ddc-viewer-panel { height: 46vh; min-height: 360px; }
    .ddc-viewer-toolbar h2 { font-size: 20px; }
    .ddc-icon-button { width: 37px; height: 37px; }
    .ddc-viewer-current-price { min-width: 128px; max-width: 42vw; padding: 6px 9px 7px; border-radius: 12px; }
    .ddc-viewer-current-price span { font-size: 8px; }
    .ddc-viewer-current-price strong { font-size: 17px; }
    .ddc-viewer-hint { display: none; }
    .ddc-live-selection { bottom: 12px; padding: 6px 9px; border-radius: 10px; background: rgba(255,255,255,.74); }
    .ddc-progress { padding: 18px 18px 6px; }
    .ddc-step { padding: 18px; }
    .ddc-step-heading { align-items: flex-start; flex-direction: column; gap: 3px; }
    .ddc-option-grid,
    .ddc-option-grid-sizes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ddc-option-card { min-height: 70px; padding: 8px; }
    .ddc-option-card img,
    .ddc-option-placeholder,
    .ddc-surface-swatch { width: 41px; height: 41px; flex-basis: 41px; }
    .ddc-checkbox-options,
    .ddc-form-grid { grid-template-columns: 1fr; }
    .ddc-summary { padding: 17px 18px 20px; }
    .ddc-unit-price-block > strong { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
    .ddc-configurator *,
    .ddc-configurator *::before,
    .ddc-configurator *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 1.1.2 — cleaner option cards, cable position and delivery methods */
.ddc-option-placeholder.is-k::before {
    right: 13px;
    top: 5px;
    width: 4px;
    height: 38px;
    transform: none;
}
.ddc-option-placeholder.is-k::after {
    content: "K";
    right: 16px;
    top: 1px;
    width: auto;
    height: auto;
    background: transparent;
    color: #292929;
    font-family: Arial, sans-serif;
    font-size: 37px;
    font-weight: 700;
    line-height: 45px;
    transform: none;
}

.ddc-segment-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 14px;
}

.ddc-segment-button {
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid var(--ddc-line);
    border-radius: 11px;
    background: #fff;
    color: #333;
    cursor: pointer;
    font: inherit;
    font-size: 11px;
    font-weight: 700;
}

.ddc-segment-button:hover,
.ddc-segment-button:focus-visible,
.ddc-segment-button.is-selected {
    border-color: var(--ddc-accent);
    background: rgba(242, 138, 23, 0.055);
    box-shadow: 0 0 0 2px rgba(242, 138, 23, 0.1);
    outline: none;
}

.ddc-delivery-options {
    display: grid;
    gap: 9px;
}

.ddc-delivery-card {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 62px;
    align-items: center;
    gap: 12px;
    padding: 11px 13px;
    border: 1px solid var(--ddc-line);
    border-radius: 13px;
    background: #fff;
    color: var(--ddc-ink);
    cursor: pointer;
    text-align: right;
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.ddc-delivery-card:hover,
.ddc-delivery-card:focus-visible,
.ddc-delivery-card.is-selected {
    border-color: var(--ddc-accent);
    box-shadow: 0 0 0 2px rgba(242, 138, 23, 0.1);
    outline: none;
}

.ddc-delivery-card.is-selected::after {
    content: "✓";
    position: absolute;
    top: 8px;
    left: 9px;
    display: inline-flex;
    width: 19px;
    height: 19px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--ddc-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 900;
}

.ddc-delivery-icon {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #f5f3ef;
    font-size: 18px;
}

.ddc-delivery-card > span:last-child {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.ddc-delivery-card strong { font-size: 13px; }
.ddc-delivery-card small { color: var(--ddc-muted); font-size: 11px; }

.ddc-option-copy small,
.ddc-size-card small {
    display: none;
}

@media (max-width: 560px) {
    .ddc-segment-options { grid-template-columns: 1fr; }
}


/* 3.5.0 — compact measurement choices and editable introductory message. */
.ddc-configurator-intro {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 18px 28px 2px;
    padding: 12px 14px;
    border: 1px solid rgba(242, 138, 23, 0.24);
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(242, 138, 23, 0.08), rgba(255,255,255,0.94));
    color: #34302a;
    line-height: 1.75;
}
.ddc-configurator-intro > span { color: var(--ddc-accent); font-size: 16px; line-height: 1.6; }
.ddc-configurator-intro p { margin: 0; font-size: 12px; font-weight: 650; }
.ddc-option-grid-sizes { gap: 8px; }
.ddc-size-card {
    min-height: 54px;
    height: 54px;
    flex-direction: row;
    justify-content: center;
    gap: 0;
    padding: 7px 10px;
    border-radius: 11px;
    white-space: nowrap;
}
.ddc-size-card .ddc-size-dimension { font-size: 13px; line-height: 1; }
.ddc-size-card span:not(.ddc-size-dimension) { display: none; }
@media (max-width: 780px) {
    .ddc-configurator-intro { margin: 14px 18px 0; padding: 10px 12px; }
    .ddc-option-grid-sizes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ddc-size-card { min-height: 50px; height: 50px; }
}


/* Identity plate customisation */
.ddc-identity-fields{margin-top:16px;padding:16px;border:1px solid #eadfd2;border-radius:16px;background:#fffaf5}
.ddc-identity-fields[hidden]{display:none!important}
.ddc-identity-input-label{display:grid;gap:8px;font-weight:700;color:#182033}
.ddc-identity-input-label input{width:100%;box-sizing:border-box;border:1px solid #d8d4cf;border-radius:12px;padding:12px 14px;font:700 16px/1.3 Arial,sans-serif;letter-spacing:.08em;text-transform:uppercase;direction:ltr;text-align:left;background:#fff;color:#111;outline:none}
.ddc-identity-input-label input:focus{border-color:#f28a17;box-shadow:0 0 0 3px rgba(242,138,23,.14)}
.ddc-identity-input-label small{font-weight:400;color:#6b7280;direction:rtl}
.ddc-identity-input-label small b{color:#f28a17}
.ddc-identity-fields .ddc-subheading{margin-top:16px}
@media(max-width:640px){.ddc-identity-fields{padding:13px}.ddc-identity-input-label input{font-size:15px}}

.ddc-secondary-button[hidden] { display: none; }

/* 3.6.24 — quantity selector and live cart count for multi-desk ordering. */
.ddc-add-another-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 138px;
    gap: 9px;
    align-items: stretch;
}

.ddc-secondary-button {
    min-height: 68px;
    border: 0;
    background: linear-gradient(135deg, var(--ddc-accent), #e87300);
    box-shadow: 0 9px 22px rgba(226, 111, 0, 0.21);
    color: #fff;
}

.ddc-secondary-button:hover:not(:disabled),
.ddc-secondary-button:focus-visible:not(:disabled) {
    background: linear-gradient(135deg, #ff981e, #df6d00);
    box-shadow: 0 13px 28px rgba(226, 111, 0, 0.29);
    outline: 2px solid rgba(242, 138, 23, 0.28);
}

.ddc-add-another-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
    text-align: right;
    line-height: 1.45;
}

.ddc-add-another-copy > span {
    white-space: nowrap;
    font-size: 10.5px;
}

.ddc-cart-count-badge {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border: 1px solid rgba(255,255,255,.34);
    border-radius: 999px;
    background: rgba(255,255,255,.14);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
}

.ddc-cart-count-badge strong {
    color: #fff;
    font-size: 11px;
}

.ddc-quantity-control {
    display: grid;
    align-content: center;
    gap: 7px;
    min-height: 68px;
    padding: 8px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--ddc-accent), #e87300);
    box-shadow: 0 9px 22px rgba(226, 111, 0, 0.21);
    color: #fff;
}

.ddc-quantity-label {
    text-align: center;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 1.25;
}

.ddc-quantity-stepper {
    display: grid;
    grid-template-columns: 34px minmax(34px, 1fr) 34px;
    align-items: center;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.38);
    border-radius: 10px;
    background: rgba(255,255,255,.14);
}

.ddc-quantity-stepper button {
    min-width: 0;
    height: 34px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    cursor: pointer;
    font: 900 20px/1 Arial, sans-serif;
}

.ddc-quantity-stepper button:hover:not(:disabled),
.ddc-quantity-stepper button:focus-visible:not(:disabled) {
    background: rgba(255,255,255,.18);
    outline: none;
}

.ddc-quantity-stepper button:disabled {
    cursor: not-allowed;
    opacity: .42;
}

.ddc-quantity-stepper output {
    display: grid;
    height: 34px;
    place-items: center;
    border-inline: 1px solid rgba(255,255,255,.32);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    direction: ltr;
}

@media (max-width: 620px) {
    .ddc-summary-top { align-items: stretch; flex-direction: column; }
    .ddc-quantity-price-summary { width: 100%; box-sizing: border-box; min-width: 0; }
    .ddc-add-another-copy > span { white-space: normal; }
    .ddc-add-another-row {
        grid-template-columns: 1fr;
    }
    .ddc-quantity-control {
        grid-template-columns: 1fr minmax(145px, 190px);
        align-items: center;
        min-height: 54px;
    }
    .ddc-quantity-label { text-align: right; }
    .ddc-secondary-button { min-height: 60px; }
}

/* 3.6.26 — summary is a normal tenth step, not a sticky footer. */
.ddc-step-summary {
    padding-bottom: 28px;
}

.ddc-step-summary .ddc-summary {
    position: static;
    z-index: auto;
    bottom: auto;
    margin: 0;
    padding: 0;
    border-top: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
}

@media (max-width: 900px) {
    .ddc-step-summary .ddc-summary {
        padding: 0;
    }
}

@media (max-width: 560px) {
    .ddc-step-summary {
        padding-bottom: max(24px, env(safe-area-inset-bottom));
    }
    .ddc-step-summary .ddc-summary {
        padding: 0;
    }
}


/* 3.6.32 — default icon for the isolated Z-leg model. */
.ddc-option-placeholder.is-z::before {
    content: "Z";
    inset: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    color: #292929;
    font-family: Arial, sans-serif;
    font-size: 37px;
    font-weight: 700;
    line-height: 48px;
    text-align: center;
    transform: none;
}
.ddc-option-placeholder.is-z::after { display: none; }

/* 3.6.33 — default icon for the isolated Y-leg model. */
.ddc-option-placeholder.is-y::before {
    content: "Y";
    inset: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    color: #292929;
    font-family: Arial, sans-serif;
    font-size: 37px;
    font-weight: 700;
    line-height: 48px;
    text-align: center;
    transform: none;
}
.ddc-option-placeholder.is-y::after { display: none; }


/* 3.6.34 — default icon for the isolated WV-leg model. */
.ddc-option-placeholder.is-wv::before {
    content: "WV";
    inset: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    color: #292929;
    font-family: Arial, sans-serif;
    font-size: 25px;
    font-weight: 700;
    line-height: 48px;
    text-align: center;
    transform: none;
}
.ddc-option-placeholder.is-wv::after { display: none; }


/* 3.6.35 — default icon for the isolated VM-leg model. */
.ddc-option-placeholder.is-vm::before {
    content: "VM";
    inset: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    color: #292929;
    font-family: Arial, sans-serif;
    font-size: 26px;
    font-weight: 700;
    line-height: 48px;
    text-align: center;
    transform: none;
}
.ddc-option-placeholder.is-vm::after { display: none; }


/* 3.6.36 — default icon for the isolated III-leg model. */
.ddc-option-placeholder.is-iii::before {
    content: "III";
    inset: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    color: #292929;
    font-family: Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 48px;
    text-align: center;
    transform: none;
}
.ddc-option-placeholder.is-iii::after { display: none; }


/* 3.6.37 — default icon for the isolated CR-leg model. */
.ddc-option-placeholder.is-cr::before {
    content: "CR";
    inset: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    color: #292929;
    font-family: Arial, sans-serif;
    font-size: 25px;
    font-weight: 700;
    line-height: 48px;
    text-align: center;
    transform: none;
}
.ddc-option-placeholder.is-cr::after { display: none; }


/* 3.6.43 — default icon for the isolated N-leg model. */
.ddc-option-placeholder.is-n::before {
    content: "N";
    inset: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    color: #292929;
    font-family: Arial, sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 48px;
    text-align: center;
    transform: none;
}
.ddc-option-placeholder.is-n::after { display: none; }


/* 3.6.44 — default icon for the isolated ZZ-leg model. */
.ddc-option-placeholder.is-zz::before {
    content: "ZZ";
    inset: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    color: #292929;
    font-family: Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 48px;
    text-align: center;
    transform: none;
}
.ddc-option-placeholder.is-zz::after { display: none; }


/* 3.6.45 — default icon for the isolated GM-leg model. */
.ddc-option-placeholder.is-gm::before {
    content: "GM";
    inset: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    color: #292929;
    font-family: Arial, sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 48px;
    text-align: center;
    transform: none;
}
.ddc-option-placeholder.is-gm::after { display: none; }

/* 3.6.51 — Premium Minimal refinement for the controls sidebar only.
 * The 3D viewer, catalog logic, pricing, cart and all interaction behavior stay unchanged.
 */
.ddc-controls-panel {
    --ddc-sidebar-bg: #faf9f6;
    --ddc-sidebar-card: #ffffff;
    --ddc-sidebar-line: #ebe7e1;
    --ddc-sidebar-soft: #f4f1ec;
    --ddc-sidebar-accent-soft: #fff7ed;
    background: var(--ddc-sidebar-bg);
    scrollbar-color: #cfc8bf transparent;
    scrollbar-width: thin;
}

.ddc-controls-panel::-webkit-scrollbar {
    width: 8px;
}

.ddc-controls-panel::-webkit-scrollbar-track {
    background: transparent;
}

.ddc-controls-panel::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: #cfc8bf;
    background-clip: padding-box;
}

.ddc-controls-panel .ddc-configurator-intro {
    gap: 11px;
    margin: 22px 22px 8px;
    padding: 14px 15px;
    border: 1px solid rgba(242, 138, 23, 0.2);
    border-radius: 14px;
    background: linear-gradient(135deg, #fff8ef 0%, #fffdf9 100%);
    box-shadow: 0 8px 22px rgba(49, 37, 22, 0.045);
}

.ddc-controls-panel .ddc-configurator-intro > span {
    display: grid;
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    place-items: center;
    border-radius: 9px;
    background: rgba(242, 138, 23, 0.12);
    font-size: 14px;
    line-height: 1;
}

.ddc-controls-panel .ddc-configurator-intro p {
    color: #39342e;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.75;
}

.ddc-controls-panel .ddc-step {
    margin: 0 18px;
    padding: 25px 4px 26px;
    border-bottom: 1px solid var(--ddc-sidebar-line);
    background: transparent;
}

.ddc-controls-panel .ddc-step:last-child {
    border-bottom: 0;
}

.ddc-controls-panel .ddc-step-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 6px;
    margin-bottom: 15px;
}

.ddc-controls-panel .ddc-step-heading > div {
    min-width: 0;
}

.ddc-controls-panel .ddc-step-heading span {
    display: inline-flex;
    width: fit-content;
    margin: 0 0 6px;
    padding: 4px 8px;
    border: 1px solid rgba(242, 138, 23, 0.2);
    border-radius: 999px;
    background: rgba(242, 138, 23, 0.075);
    color: #a85200;
    font-size: 9px;
    font-weight: 850;
    line-height: 1;
}

.ddc-controls-panel .ddc-step-heading h3 {
    color: #1c1a17;
    font-size: 18px;
    font-weight: 850;
    line-height: 1.35;
    letter-spacing: -0.015em;
}

.ddc-controls-panel .ddc-step-heading small {
    max-width: 100%;
    color: #7a746c;
    font-size: 10.5px;
    line-height: 1.65;
}

.ddc-controls-panel .ddc-subheading {
    margin: 18px 0 9px;
    color: #454039;
    font-size: 12px;
    font-weight: 800;
}

/* Sizes: clearer comparison with compact, equal cards. */
.ddc-controls-panel .ddc-option-grid-sizes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.ddc-controls-panel .ddc-size-card {
    min-height: 54px;
    height: 54px;
    padding: 8px 9px;
    border-color: var(--ddc-sidebar-line);
    border-radius: 11px;
    background: var(--ddc-sidebar-card);
    box-shadow: 0 2px 8px rgba(34, 28, 20, 0.025);
}

.ddc-controls-panel .ddc-size-card .ddc-size-dimension,
.ddc-controls-panel .ddc-size-card strong {
    color: #26221d;
    font-size: 13px;
    font-weight: 800;
}

/* Product cards: uniform proportions for legs and desktop surfaces. */
.ddc-controls-panel .ddc-option-grid:not(.ddc-option-grid-sizes) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.ddc-controls-panel .ddc-option-card {
    min-height: 86px;
    gap: 11px;
    padding: 10px;
    overflow: hidden;
    border-color: var(--ddc-sidebar-line);
    border-radius: 13px;
    background: var(--ddc-sidebar-card);
    box-shadow: 0 2px 9px rgba(34, 28, 20, 0.028);
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease, background 0.16s ease;
}

.ddc-controls-panel .ddc-option-card:hover:not(:disabled),
.ddc-controls-panel .ddc-option-card:focus-visible:not(:disabled) {
    border-color: rgba(242, 138, 23, 0.48);
    background: #fffdf9;
    box-shadow: 0 8px 20px rgba(41, 31, 18, 0.07);
}

.ddc-controls-panel .ddc-option-card.is-selected {
    border-color: var(--ddc-accent);
    background: var(--ddc-sidebar-accent-soft);
    box-shadow: 0 0 0 2px rgba(242, 138, 23, 0.105), 0 7px 18px rgba(59, 39, 15, 0.055);
}

.ddc-controls-panel .ddc-option-card.is-selected::after {
    top: 7px;
    left: 7px;
    width: 19px;
    height: 19px;
    box-shadow: 0 3px 8px rgba(200, 102, 0, 0.24);
}

.ddc-controls-panel .ddc-option-card img,
.ddc-controls-panel .ddc-option-placeholder,
.ddc-controls-panel .ddc-surface-swatch {
    width: 54px;
    height: 54px;
    flex-basis: 54px;
    border-color: rgba(42, 34, 25, 0.07);
    border-radius: 10px;
    background-color: var(--ddc-sidebar-soft);
}

.ddc-controls-panel .ddc-option-copy strong {
    color: #28231e;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.45;
}

/* Equal, readable colour buttons in a deliberate 3 + 2 layout. */
.ddc-controls-panel .ddc-color-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.ddc-controls-panel .ddc-color-button {
    width: 100%;
    min-width: 0;
    min-height: 43px;
    gap: 7px;
    padding: 8px 9px;
    overflow: visible;
    border-color: var(--ddc-sidebar-line);
    border-radius: 11px;
    background: var(--ddc-sidebar-card);
    color: #37322c;
    box-shadow: 0 2px 8px rgba(34, 28, 20, 0.025);
    font-size: 11px;
    font-weight: 800;
}

.ddc-controls-panel .ddc-color-button span {
    min-width: 0;
    overflow: visible;
    text-overflow: clip;
}

.ddc-controls-panel .ddc-color-button i {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.42), 0 2px 5px rgba(0, 0, 0, 0.09);
}

.ddc-controls-panel .ddc-color-button:hover,
.ddc-controls-panel .ddc-color-button:focus-visible {
    border-color: rgba(242, 138, 23, 0.48);
    background: #fffdf9;
    outline: none;
}

.ddc-controls-panel .ddc-color-button.is-selected {
    border-color: var(--ddc-accent);
    background: var(--ddc-sidebar-accent-soft);
    box-shadow: 0 0 0 2px rgba(242, 138, 23, 0.1);
}

/* Binary and multi-choice controls use available width instead of fixed thirds. */
.ddc-controls-panel .ddc-segment-options {
    grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
    gap: 8px;
    margin-bottom: 0;
}

.ddc-controls-panel .ddc-segment-button {
    min-height: 46px;
    padding: 9px 11px;
    border-color: var(--ddc-sidebar-line);
    border-radius: 11px;
    background: var(--ddc-sidebar-card);
    color: #3c3731;
    font-size: 11px;
    font-weight: 800;
    transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.ddc-controls-panel .ddc-segment-button:hover,
.ddc-controls-panel .ddc-segment-button:focus-visible {
    border-color: rgba(242, 138, 23, 0.48);
    background: #fffdf9;
    box-shadow: none;
}

.ddc-controls-panel .ddc-segment-button.is-selected {
    border-color: var(--ddc-accent);
    background: var(--ddc-sidebar-accent-soft);
    box-shadow: 0 0 0 2px rgba(242, 138, 23, 0.1);
    color: #8a4700;
}

.ddc-controls-panel .ddc-check-card,
.ddc-controls-panel .ddc-identity-fields,
.ddc-controls-panel .ddc-form-field select,
.ddc-controls-panel .ddc-installation-option {
    border-color: var(--ddc-sidebar-line);
    background: var(--ddc-sidebar-card);
}

.ddc-controls-panel .ddc-identity-fields {
    border-radius: 13px;
    box-shadow: 0 5px 18px rgba(34, 28, 20, 0.035);
}

.ddc-controls-panel .ddc-delivery-options {
    gap: 8px;
}

.ddc-controls-panel .ddc-delivery-card {
    min-height: 64px;
    border-color: var(--ddc-sidebar-line);
    background: var(--ddc-sidebar-card);
    box-shadow: 0 2px 8px rgba(34, 28, 20, 0.025);
}

.ddc-controls-panel .ddc-delivery-card:hover,
.ddc-controls-panel .ddc-delivery-card:focus-visible {
    border-color: rgba(242, 138, 23, 0.48);
    background: #fffdf9;
    box-shadow: 0 7px 18px rgba(41, 31, 18, 0.06);
}

.ddc-controls-panel .ddc-delivery-card.is-selected {
    border-color: var(--ddc-accent);
    background: var(--ddc-sidebar-accent-soft);
    box-shadow: 0 0 0 2px rgba(242, 138, 23, 0.1);
}

.ddc-controls-panel .ddc-delivery-icon {
    background: var(--ddc-sidebar-soft);
}

/* The final review step becomes a calm premium checkout block. */
.ddc-controls-panel .ddc-step-summary {
    margin: 14px 14px 18px;
    padding: 22px 14px 18px;
    border: 1px solid var(--ddc-sidebar-line);
    border-radius: 17px;
    background: #ffffff;
    box-shadow: 0 13px 32px rgba(38, 29, 18, 0.065);
}

.ddc-controls-panel .ddc-step-summary .ddc-step-heading {
    padding: 0 2px;
}

.ddc-controls-panel .ddc-price-breakdown {
    border: 1px solid var(--ddc-sidebar-line);
    background: #faf9f7;
}

.ddc-controls-panel .ddc-primary-button,
.ddc-controls-panel .ddc-secondary-button,
.ddc-controls-panel .ddc-quantity-control {
    border-radius: 12px;
}

@media (max-width: 1180px) {
    .ddc-controls-panel .ddc-color-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .ddc-controls-panel .ddc-configurator-intro {
        margin: 18px 18px 6px;
    }

    .ddc-controls-panel .ddc-step {
        margin: 0 16px;
        padding: 23px 2px 24px;
    }

    .ddc-controls-panel .ddc-step-summary {
        margin: 12px 14px 18px;
        padding: 21px 14px 18px;
    }
}

@media (max-width: 560px) {
    .ddc-controls-panel .ddc-configurator-intro {
        margin: 14px 14px 4px;
        padding: 12px;
    }

    .ddc-controls-panel .ddc-step {
        margin: 0 14px;
        padding: 21px 0 22px;
    }

    .ddc-controls-panel .ddc-step-heading {
        gap: 5px;
    }

    .ddc-controls-panel .ddc-option-grid-sizes,
    .ddc-controls-panel .ddc-option-grid:not(.ddc-option-grid-sizes) {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ddc-controls-panel .ddc-option-card {
        min-height: 78px;
        gap: 8px;
        padding: 8px;
    }

    .ddc-controls-panel .ddc-option-card img,
    .ddc-controls-panel .ddc-option-placeholder,
    .ddc-controls-panel .ddc-surface-swatch {
        width: 46px;
        height: 46px;
        flex-basis: 46px;
    }

    .ddc-controls-panel .ddc-color-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ddc-controls-panel .ddc-segment-options {
        grid-template-columns: 1fr;
    }

    .ddc-controls-panel .ddc-step-summary {
        margin: 12px 10px 16px;
        padding: 20px 12px 16px;
    }
}


/* 3.6.52 — Sidebar refinement based on live UX review.
 * Keeps configurator logic unchanged. Only visual adjustments to:
 * intro message, size cards, leg colour selector, and sidebar background.
 */
.ddc-controls-panel {
    --ddc-sidebar-bg: #ffffff;
    --ddc-sidebar-card: #ffffff;
    --ddc-sidebar-line: #ebe6de;
    --ddc-sidebar-soft: #f6f4ef;
    --ddc-sidebar-accent-soft: #fff7ed;
    background: #ffffff;
}

.ddc-controls-panel .ddc-configurator-intro {
    display: block;
    margin: 24px 20px 10px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    text-align: center;
}

.ddc-controls-panel .ddc-configurator-intro > span {
    display: none;
}

.ddc-controls-panel .ddc-configurator-intro p {
    margin: 0;
    color: #111111;
    font-size: 19px;
    font-weight: 800;
    line-height: 1.75;
    letter-spacing: -0.012em;
}

.ddc-controls-panel .ddc-step {
    margin: 0 18px;
    padding: 22px 2px 24px;
    border-bottom: 1px solid var(--ddc-sidebar-line);
}

.ddc-controls-panel .ddc-step-heading {
    gap: 5px;
    margin-bottom: 14px;
}

.ddc-controls-panel .ddc-step-heading h3 {
    font-size: 18px;
    font-weight: 850;
}

.ddc-controls-panel .ddc-step-heading small {
    color: #5f5952;
    font-size: 11px;
    font-weight: 500;
}

/* Step 1 only: compact rectangular size buttons. */
.ddc-controls-panel .ddc-option-grid-sizes {
    gap: 10px;
}

.ddc-controls-panel .ddc-size-card {
    min-height: 48px;
    height: 48px;
    padding: 5px 8px;
    border-width: 1px;
    border-radius: 10px;
    background: #ffffff;
    box-shadow: none;
}

.ddc-controls-panel .ddc-size-card .ddc-size-dimension,
.ddc-controls-panel .ddc-size-card strong {
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
}

/* Step 2 only: clearer leg colour buttons with rectangular swatches and bolder labels. */
.ddc-controls-panel .ddc-color-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.ddc-controls-panel .ddc-color-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px;
    gap: 10px;
    padding: 10px 12px;
    border-width: 1px;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: none;
    color: #161616;
}

.ddc-controls-panel .ddc-color-button span {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    overflow: visible;
    color: #111111;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.2;
    text-align: right;
    white-space: nowrap;
}

.ddc-controls-panel .ddc-color-button i {
    width: 30px;
    height: 22px;
    flex: 0 0 30px;
    border-radius: 6px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.42), 0 0 0 1px rgba(17,17,17,.08);
}

.ddc-controls-panel .ddc-color-button.is-selected {
    border-color: var(--ddc-accent);
    background: #fffaf2;
    box-shadow: 0 0 0 2px rgba(242, 138, 23, 0.12);
}

.ddc-controls-panel .ddc-color-button:hover,
.ddc-controls-panel .ddc-color-button:focus-visible {
    background: #fffdf9;
}

@media (max-width: 900px) {
    .ddc-controls-panel .ddc-configurator-intro {
        margin: 20px 18px 8px;
    }

    .ddc-controls-panel .ddc-configurator-intro p {
        font-size: 17px;
    }
}

@media (max-width: 560px) {
    .ddc-controls-panel .ddc-configurator-intro {
        margin: 16px 14px 6px;
    }

    .ddc-controls-panel .ddc-configurator-intro p {
        font-size: 16px;
        line-height: 1.7;
    }

    .ddc-controls-panel .ddc-color-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ddc-controls-panel .ddc-color-button {
        min-height: 50px;
        padding: 8px 10px;
    }

    .ddc-controls-panel .ddc-color-button span {
        font-size: 14px;
    }

    .ddc-controls-panel .ddc-size-card {
        min-height: 46px;
        height: 46px;
    }
}
