.stressless-configurator__gallery {
    width: 100%;
}

.stressless-gallery-main {
    background: #fff;
    padding: 0;
}

.stressless-gallery-main img {
    width: 100%;
    height: auto;
    display: block;
}

.stressless-gallery-thumbs {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    flex-wrap: nowrap;
}

.stressless-thumb {
    border: 1px solid #d7d7d7;
    padding: 2px;
    cursor: pointer;
    background: #fff;
}

.stressless-thumb img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    display: block;
}

.stressless-thumb.is-active {
    border-color: #111;
}

.stressless-configurator__controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stressless-configurator__section {
    border: 1px solid #d9d9d9;
    background: #fff;
}

.stressless-configurator__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 14px 16px;
    border: 0;
    background: #f3f3f3;
    cursor: pointer;
    text-align: left;
}

.stressless-configurator__section.is-open .stressless-configurator__toggle {
    background: #eaeaea;
}

.stressless-configurator__toggle-label {
    font-size: 15px;
    font-weight: 700;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.stressless-configurator__toggle-value {
    font-size: 13px;
    color: #555;
    text-align: right;
}

.stressless-configurator__panel {
    display: none;
    padding: 14px 16px 16px;
    border-top: 1px solid #e5e5e5;
    background: #fff;
}

.stressless-configurator__section.is-open .stressless-configurator__panel {
    display: block;
}

.stressless-option-btn {
    display: inline-block;
    margin: 0 8px 8px 0;
    padding: 10px 14px;
    border: 1px solid #cfcfcf;
    background: #fff;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.2;
}

.stressless-option-btn.is-active {
    border-color: #111;
    background: #f1f1f1;
    font-weight: 700;
}

.stressless-option-btn.is-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.stressless-leather-family {
    margin-bottom: 14px;
}

.stressless-leather-family__title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    color: #222;
}

.stressless-leather-family__colors {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.stressless-swatch-btn {
    width: 64px;
    border: 1px solid #d0d0d0;
    background: #fff;
    padding: 4px;
    cursor: pointer;
    text-align: center;
}

.stressless-swatch-btn img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    display: block;
    margin: 0 auto 4px;
}

.stressless-swatch-btn span {
    display: block;
    font-size: 10px;
    line-height: 1.15;
    color: #333;
}

.stressless-swatch-btn.is-active {
    border-color: #111;
    background: #f3f3f3;
}

.stressless-wood-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 8px 8px 0;
    padding: 8px 10px;
    border: 1px solid #d0d0d0;
    background: #fff;
    cursor: pointer;
    font-size: 12px;
    line-height: 1.2;
}

.stressless-wood-btn img {
    width: 32px;
    height: 32px;
    object-fit: cover;
    display: block;
}

.stressless-wood-btn.is-active {
    border-color: #111;
    background: #f3f3f3;
    font-weight: 700;
}

@media (max-width: 768px) {
    .stressless-gallery-thumbs {
        flex-wrap: wrap;
    }

    .stressless-thumb img {
        width: 58px;
        height: 58px;
    }

    .stressless-swatch-btn {
        width: 60px;
    }

    .stressless-swatch-btn img {
        width: 46px;
        height: 46px;
    }
}







/* Step 1: only restyle the accordion headers */
.stressless-configurator__toggle {
    background: #f5f5f5 !important;
    padding: 18px 20px !important;
    border: 0 !important;
}

.stressless-configurator__section.is-open .stressless-configurator__toggle {
    background: #ebebeb !important;
}

.stressless-configurator__toggle-label {
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #111 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
}

.stressless-configurator__toggle-value {
    display: inline-block !important;
    padding: 4px 10px !important;
    border: 1px solid #d8d8d8 !important;
    background: #fff !important;
    font-size: 12px !important;
    color: #444 !important;
}







/* Step 2: stronger visual change, still safe */

/* overall spacing */
.stressless-configurator__controls {
    gap: 16px !important;
}

/* section card */
.stressless-configurator__section {
    border: 1px solid #dcdcdc !important;
    background: #fff !important;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04) !important;
}

/* header */
.stressless-configurator__toggle {
    background: #f7f7f7 !important;
    padding: 20px !important;
    border: 0 !important;
}

.stressless-configurator__section.is-open .stressless-configurator__toggle {
    background: #ececec !important;
}

.stressless-configurator__toggle-label {
    font-size: 16px !important;
    font-weight: 700 !important;
    letter-spacing: 0.06em !important;
}

.stressless-configurator__toggle-value {
    padding: 6px 12px !important;
    border: 1px solid #cfcfcf !important;
    background: #fff !important;
    border-radius: 999px !important;
    font-size: 12px !important;
    color: #333 !important;
}

/* panel body */
.stressless-configurator__panel {
    padding: 20px !important;
    background: #fff !important;
}

/* size + base buttons */
.stressless-option-btn {
    min-width: 120px !important;
    min-height: 46px !important;
    margin: 0 10px 10px 0 !important;
    padding: 12px 16px !important;
    border: 1px solid #d2d2d2 !important;
    background: #f5f5f5 !important;
    font-size: 13px !important;
    font-weight: 600 !important;
}

.stressless-option-btn.is-active {
    border-color: #111 !important;
    background: #e3e3e3 !important;
    box-shadow: inset 0 0 0 1px #111 !important;
}

/* leather swatches */
.stressless-swatch-btn {
    width: 58px !important;
    padding: 3px !important;
    border: 1px solid #d2d2d2 !important;
    background: #fff !important;
}

.stressless-swatch-btn img {
    width: 50px !important;
    height: 50px !important;
}

.stressless-swatch-btn.is-active {
    border-color: #111 !important;
    box-shadow: inset 0 0 0 1px #111 !important;
}

/* wood buttons */
.stressless-wood-btn {
    padding: 10px 12px !important;
    border: 1px solid #d2d2d2 !important;
    background: #f5f5f5 !important;
    min-width: 150px !important;
}

.stressless-wood-btn.is-active {
    border-color: #111 !important;
    background: #e3e3e3 !important;
    box-shadow: inset 0 0 0 1px #111 !important;
}






/* Step 3: push current UI closer to old Mayfair styling */

/* flatter panel rhythm */
.stressless-configurator__controls {
    gap: 12px !important;
}

.stressless-configurator__section {
    border: 1px solid #d8d8d8 !important;
    box-shadow: none !important;
}

/* stronger toolbar-header feel */
.stressless-configurator__toggle {
    padding: 22px 20px !important;
    background: #f1f1f1 !important;
}

.stressless-configurator__section.is-open .stressless-configurator__toggle {
    background: #e7e7e7 !important;
}

.stressless-configurator__toggle-label {
    font-size: 14px !important;
    letter-spacing: 0.08em !important;
}

.stressless-configurator__toggle-value {
    min-width: 120px !important;
    text-align: center !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: none !important;
}

/* give options more "tile" presence */
.stressless-option-btn {
    min-width: 132px !important;
    min-height: 52px !important;
    background: #f1f1f1 !important;
    border: 1px solid #cfcfcf !important;
    border-radius: 0 !important;
}

.stressless-option-btn:hover {
    background: #ebebeb !important;
}

.stressless-option-btn.is-active {
    background: #dedede !important;
    border-color: #111 !important;
    color: #111 !important;
}

/* leather families read more like grouped product swatches */
.stressless-leather-family {
    margin-bottom: 22px !important;
}

.stressless-leather-family__title {
    margin-bottom: 12px !important;
    padding-bottom: 6px !important;
    border-bottom: 1px solid #e3e3e3 !important;
    font-size: 16px !important;
}

.stressless-leather-family__colors {
    gap: 10px !important;
}

/* make swatches feel more premium */
.stressless-swatch-btn {
    width: 62px !important;
    padding: 4px !important;
    background: #f7f7f7 !important;
}

.stressless-swatch-btn:hover {
    border-color: #999 !important;
}

.stressless-swatch-btn img {
    width: 52px !important;
    height: 52px !important;
    margin-bottom: 0 !important;
}

.stressless-swatch-btn span {
    margin-top: 4px !important;
    font-size: 9px !important;
}

/* wood options should read like labeled finish chips */
.stressless-wood-btn {
    min-width: 160px !important;
    background: #f3f3f3 !important;
    border-radius: 0 !important;
}

.stressless-wood-btn:hover {
    background: #ebebeb !important;
}

.stressless-wood-btn img {
    width: 38px !important;
    height: 38px !important;
}

/* gallery thumbs slightly cleaner */
.stressless-thumb {
    background: #fff !important;
    padding: 3px !important;
}

.stressless-thumb img {
    width: 74px !important;
    height: 74px !important;
}

@media (max-width: 768px) {
    .stressless-option-btn {
        min-width: calc(50% - 10px) !important;
    }

    .stressless-wood-btn {
        min-width: calc(50% - 10px) !important;
    }
}






/* ===== Tabs layout: selections on top, selectors side-by-side ===== */

.stressless-configurator__controls--tabs {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.stressless-configurator__summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.stressless-configurator__summary-item {
    border: 1px solid #d7d7d7;
    background: #f7f7f7;
    padding: 12px 14px;
}

.stressless-configurator__summary-item--wide {
    min-width: 0;
}

.stressless-configurator__summary-label {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #666;
}

.stressless-configurator__summary-value {
    display: block;
    font-size: 14px;
    line-height: 1.3;
    font-weight: 600;
    color: #111;
    word-break: break-word;
}

.stressless-configurator__nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.stressless-configurator__nav-btn {
    appearance: none;
    border: 1px solid #d2d2d2;
    background: #f3f3f3;
    padding: 14px 12px;
    cursor: pointer;
    text-align: center;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: background .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.stressless-configurator__nav-btn:hover {
    background: #ececec;
}

.stressless-configurator__nav-btn.is-active {
    background: #e4e4e4;
    border-color: #111;
    box-shadow: inset 0 0 0 1px #111;
}

.stressless-configurator__panels {
    border: 1px solid #dcdcdc;
    background: #fff;
}

.stressless-configurator__panel {
    display: none;
    padding: 20px;
    border-top: 0;
    background: #fff;
}

.stressless-configurator__panel.is-open {
    display: block;
}

/* neutralize old accordion section visuals when using tab layout */
.stressless-configurator__controls--tabs .stressless-configurator__section,
.stressless-configurator__controls--tabs .stressless-configurator__toggle {
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
}

@media (max-width: 900px) {
    .stressless-configurator__summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .stressless-configurator__nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .stressless-configurator__summary,
    .stressless-configurator__nav {
        grid-template-columns: 1fr;
    }
}