/* Request-flow cards — polishing: 3 columns | upholstery: full-width row */

@media (min-width: 769px) {
    #ltb-step-01 #products-container.sp-products-grid--polishing:not(.swiper-wrapper),
    #ltb-step-01 #products-skeleton-grid.sp-products-grid--polishing:not(.swiper-wrapper),
    .sp-products-grid--polishing:not(.swiper-wrapper) {
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        align-items: stretch !important;
        gap: 16px !important;
    }

    #ltb-step-01 #products-container.sp-products-grid--upholstery:not(.swiper-wrapper),
    #ltb-step-01 #products-skeleton-grid.sp-products-grid--upholstery:not(.swiper-wrapper),
    .sp-products-grid--upholstery:not(.swiper-wrapper) {
        grid-template-columns: minmax(0, 1fr) !important;
        align-items: stretch !important;
        gap: 20px !important;
    }

    .sp-products-grid--upholstery:not(.swiper-wrapper) > .sp-product-card--request-flow,
    .sp-products-grid--upholstery:not(.swiper-wrapper) > .sp-product-card--request-full,
    #ltb-step-01 #products-container.sp-products-grid--upholstery:not(.swiper-wrapper) > .sp-product-card--request-flow {
        grid-column: 1 / -1;
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    #ltb-step-01 #products-container.sp-products-grid--polishing:not(.swiper-wrapper),
    #ltb-step-01 #products-container.sp-products-grid--upholstery:not(.swiper-wrapper),
    .sp-products-grid--polishing:not(.swiper-wrapper),
    .sp-products-grid--upholstery:not(.swiper-wrapper) {
        grid-template-columns: 1fr !important;
    }
}

.sp-products-swiper .swiper-slide > .sp-product-card--request-flow,
.sp-products-swiper .swiper-slide > .sp-product-card--request-full {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

@media (max-width: 768px) {
    .sp-products-swiper .swiper-slide > .sp-product-card--request-flow,
    .sp-products-swiper .swiper-slide > .sp-product-card--request-full {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }

    .sp-products-swiper .sp-product-card--request-full .sp-polish-card__preview-col,
    .sp-products-swiper .sp-product-card--request-flow .sp-polish-card__preview-col {
        width: 100%;
        max-width: 100%;
    }

    .sp-products-swiper .sp-product-card__media,
    .sp-products-swiper .sp-product-card__media.product-image-container {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }

    .sp-products-swiper .sp-product-card__media-frame {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* Polishing grid — compact stacked card (fits 3-column row) */
@media (min-width: 769px) {
    .sp-products-grid--polishing .sp-product-card--request-flow .sp-polish-card__header,
    .sp-products-grid--polishing .sp-product-card--polish .sp-polish-card__header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
        padding: 12px 14px 10px;
    }

    .sp-products-grid--polishing .sp-product-card--request-flow .sp-polish-card__header .sp-polish-card__stepper,
    .sp-products-grid--polishing .sp-product-card--polish .sp-polish-card__header .sp-polish-card__stepper {
        width: 100%;
        justify-content: center;
    }

    .sp-products-grid--polishing .sp-product-card--request-flow .sp-polish-card__subtitle,
    .sp-products-grid--polishing .sp-product-card--polish .sp-polish-card__subtitle {
        display: none;
    }

    .sp-products-grid--polishing .sp-product-card--request-flow .sp-polish-card__body,
    .sp-products-grid--polishing .sp-product-card--polish .sp-polish-card__body,
    .sp-products-grid--polishing .sp-product-card--request-flow .sp-polish-card__layout,
    .sp-products-grid--polishing .sp-product-card--polish .sp-polish-card__layout {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 10px 12px 12px;
        min-height: 0;
    }

    .sp-products-grid--polishing .sp-product-card--request-flow .sp-polish-card__preview-col,
    .sp-products-grid--polishing .sp-product-card--polish .sp-polish-card__preview-col {
        position: static;
    }

    .sp-products-grid--polishing .sp-product-card--request-flow .sp-polish-card__media .sp-product-card__media-frame,
    .sp-products-grid--polishing .sp-product-card--polish .sp-polish-card__media .sp-product-card__media-frame {
        min-height: 180px;
        aspect-ratio: 1 / 1.05;
    }

    .sp-products-grid--polishing .sp-product-card--request-flow .sp-polish-card__main-col,
    .sp-products-grid--polishing .sp-product-card--polish .sp-polish-card__main-col {
        padding: 12px;
        gap: 10px;
    }

    .sp-products-grid--polishing .sp-product-card--request-flow .sp-polish-card__patterns,
    .sp-products-grid--polishing .sp-product-card--polish .sp-polish-card__patterns {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .sp-products-grid--polishing .sp-product-card--request-flow .sp-polish-card__pattern-swatch,
    .sp-products-grid--polishing .sp-product-card--polish .sp-polish-card__pattern-swatch {
        max-height: 56px;
    }

    .sp-products-grid--polishing .sp-product-card--request-flow .sp-polish-card__palette,
    .sp-products-grid--polishing .sp-product-card--polish .sp-polish-card__palette {
        grid-template-columns: repeat(auto-fill, 40px);
        gap: 8px;
    }

    .sp-products-grid--polishing .sp-product-card--request-flow .sp-polish-card__swatch,
    .sp-products-grid--polishing .sp-product-card--request-flow .sp-polish-card__custom-color,
    .sp-products-grid--polishing .sp-product-card--polish .sp-polish-card__swatch,
    .sp-products-grid--polishing .sp-product-card--polish .sp-polish-card__custom-color {
        width: 40px !important;
        height: 40px !important;
        max-height: 40px;
    }

    .sp-products-grid--polishing .sp-product-card--request-flow .sp-polish-card__requests,
    .sp-products-grid--polishing .sp-product-card--polish .sp-polish-card__requests {
        padding: 10px;
    }

    .sp-products-grid--polishing .sp-product-card--request-flow .sp-polish-card__main-col .sp-polish-card__footer,
    .sp-products-grid--polishing .sp-product-card--polish .sp-polish-card__main-col .sp-polish-card__footer {
        flex-direction: column;
        align-items: stretch;
        padding-top: 10px;
    }

    .sp-products-grid--polishing .sp-product-card--request-flow .sp-polish-card__add-btn,
    .sp-products-grid--polishing .sp-product-card--polish .sp-polish-card__add-btn {
        width: 100%;
        min-width: 0;
        min-height: 44px;
        font-size: 13px;
    }
}

.sp-polish-card__shell--full {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.28s ease, border-color 0.28s ease;
}

.sp-product-card--request-flow:hover .sp-polish-card__shell--full,
.sp-product-card--polish:hover .sp-polish-card__shell--full {
    border-color: rgba(var(--sp-primary-rgb, 196, 22, 28), 0.28);
    box-shadow: 0 14px 40px rgba(15, 23, 42, 0.1);
}

/* Header */
.sp-polish-card__header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 20px;
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    background: #fff;
}

.sp-polish-card__header-main {
    flex: 1 1 200px;
    min-width: 0;
}

.sp-polish-card__title {
    margin: 0 0 4px;
    font-size: clamp(17px, 2vw, 20px);
    font-weight: 800;
    line-height: 1.3;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.sp-polish-card__subtitle {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: #64748b;
    font-weight: 500;
}

.sp-polish-card__header .sp-polish-card__stepper {
    flex: 0 0 auto;
}

/* Body — equal-height preview + details */
.sp-polish-card__body,
.sp-polish-card__layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 14px;
    align-items: stretch;
}

@media (min-width: 768px) {
    .sp-polish-card__body,
    .sp-polish-card__layout {
        grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
        gap: 16px;
        padding: 16px 18px 18px;
        min-height: 360px;
    }
}

@media (min-width: 1100px) {
    .sp-polish-card__body,
    .sp-polish-card__layout {
        grid-template-columns: minmax(0, 40%) minmax(0, 1fr);
        gap: 18px;
        padding: 18px 20px 20px;
        min-height: 400px;
    }

    .sp-products-grid--upholstery .sp-polish-card__body,
    .sp-products-grid--upholstery .sp-polish-card__layout {
        min-height: 0;
    }
}

.sp-polish-card__preview-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    height: 100%;
}

.sp-polish-card__media {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 0;
    width: 100%;
    height: 100%;
}

.sp-polish-card__media .sp-product-card__media-frame {
    position: relative;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-height: 260px;
    height: 100%;
    border-radius: 12px;
    background: #f1f5f9;
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

@media (min-width: 768px) {
    .sp-polish-card__media .sp-product-card__media-frame {
        min-height: 200px;
        max-height: 280px;
    }

    .sp-products-grid--upholstery .sp-polish-card__media .sp-product-card__media-frame {
        min-height: 0;
        max-height: none;
    }
}

.sp-polish-preview__viewport {
    flex: 1 1 auto;
    display: flex;
    align-items: stretch;
    justify-content: stretch;
    min-height: 0;
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    overflow: hidden;
}

.sp-polish-preview__svg {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 0;
    line-height: 0;
}

.sp-polish-preview__caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    margin: 0;
    padding: 8px 12px;
    font-size: 11px;
    font-weight: 600;
    color: #475569;
    text-align: center;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.sp-polish-preview__prompt {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    pointer-events: none;
}

.sp-polish-preview__prompt[hidden] {
    display: none !important;
}

.sp-polish-preview__prompt-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 220px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.95);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    text-align: center;
}

.sp-polish-preview__prompt-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: rgba(var(--sp-primary-rgb, 196, 22, 28), 0.1);
    color: var(--sp-primary, #c4161c);
}

.sp-polish-preview__prompt-icon svg {
    display: block;
    width: 24px;
    height: 24px;
}

.sp-polish-preview__prompt-text {
    font-size: 13px;
    font-weight: 800;
    line-height: 1.45;
    color: #0f172a;
}

.sp-polish-card--no-pattern .sp-polish-preview__svg {
    filter: blur(7px) saturate(0.85);
    transform: scale(1.04);
    transition: filter 0.35s ease, transform 0.35s ease;
}

.sp-polish-card:not(.sp-polish-card--no-pattern) .sp-polish-preview__svg {
    filter: none;
    transform: none;
    transition: filter 0.35s ease, transform 0.35s ease;
}

.sp-polish-card--no-pattern .sp-product-card__media-frame {
    background: #e2e8f0;
}

.sp-polish-card--step-color .sp-polish-preview__caption:not([hidden]) {
    display: block;
}

.sp-polish-preview__svg-el {
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    max-height: 100%;
    display: block;
    object-fit: contain;
    transition: opacity 0.3s ease;
}

/* Seat color path blends over pattern texture (matches Illustrator .st2 overlay) */
[data-sp-polish-svg-mount] #ch-color,
.sp-polish-preview__svg #ch-color {
    mix-blend-mode: overlay;
}

.sp-polish-card--svg-loading .sp-polish-preview__svg-el {
    opacity: 0.4;
}

.sp-polish-card__main-col {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
    min-height: 0;
    height: 100%;
    padding: 14px 16px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e8ecf0;
    box-sizing: border-box;
}

@media (min-width: 768px) {
    .sp-polish-card__main-col {
        padding: 16px 18px;
    }
}

.sp-polish-card__steps-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
}

/* Stepper */
.sp-polish-card__stepper {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px;
    border-radius: 999px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.sp-polish-card__step-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
    transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.sp-polish-card__step-pill.is-active {
    background: #fff;
    border-color: rgba(var(--sp-primary-rgb, 196, 22, 28), 0.25);
    color: var(--sp-primary, #c4161c);
    box-shadow: 0 4px 14px rgba(var(--sp-primary-rgb, 196, 22, 28), 0.12);
}

.sp-polish-card__step-pill.is-done {
    background: rgba(var(--sp-primary-rgb, 196, 22, 28), 0.06);
    color: #374151;
}

.sp-polish-card__step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #d1d5db;
    color: #fff;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
}

.sp-polish-card__step-pill.is-active .sp-polish-card__step-num,
.sp-polish-card__step-pill.is-done .sp-polish-card__step-num {
    background: var(--sp-primary, #c4161c);
}

.sp-polish-card__step-connector {
    width: 28px;
    height: 2px;
    flex: 0 0 28px;
    background: linear-gradient(90deg, #d1d5db, #e5e7eb);
    border-radius: 2px;
}

/* Panels — pattern and color share one slot (swap in place, never stack) */
.sp-polish-card__panels {
    position: relative;
    flex: 0 0 auto;
    display: grid;
    grid-template-areas: "step";
    width: 100%;
    min-width: 0;
    min-height: 0;
    align-content: start;
}

.sp-polish-card__panel {
    grid-area: step;
    width: 100%;
    min-width: 0;
    margin: 0;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.28s cubic-bezier(0.33, 1, 0.68, 1), transform 0.28s cubic-bezier(0.33, 1, 0.68, 1);
}

.sp-polish-card__panel[hidden] {
    display: none !important;
    visibility: hidden !important;
}

.sp-polish-card__panel.is-active:not([hidden]) {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.sp-polish-card__panel-hint {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    line-height: 1.45;
}

.sp-polish-card--step-color .sp-polish-card__panel[data-sp-polish-panel="color"] .sp-polish-card__panel-hint {
    color: #334155;
}

.sp-polish-card__selected-pattern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 8px 14px;
    border-radius: 10px;
    background: rgba(var(--sp-primary-rgb, 196, 22, 28), 0.08);
    border: 1px solid rgba(var(--sp-primary-rgb, 196, 22, 28), 0.18);
    font-size: 13px;
    font-weight: 700;
    color: #1f2937;
}

.sp-polish-card__selected-pattern::before {
    content: '✓';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--sp-primary, #c4161c);
    color: #fff;
    font-size: 11px;
    flex-shrink: 0;
}

/* Patterns */
.sp-polish-card__patterns {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

@media (min-width: 600px) {
    .sp-polish-card__patterns {
        grid-template-columns: repeat(auto-fill, minmax(108px, 1fr));
        gap: 14px;
    }
}

.sp-polish-card__pattern {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 12px 10px;
    border: 2px solid #e8ecf0;
    border-radius: 16px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
    -webkit-tap-highlight-color: transparent;
}

.sp-polish-card__pattern:hover {
    border-color: rgba(var(--sp-primary-rgb, 196, 22, 28), 0.4);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.sp-polish-card__pattern.is-active {
    border-color: var(--sp-primary, #c4161c);
    box-shadow: 0 0 0 3px rgba(var(--sp-primary-rgb, 196, 22, 28), 0.14);
    transform: translateY(-2px);
}

.sp-polish-card__pattern-swatch {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-height: 88px;
    border-radius: 12px;
    background: #f8fafc;
    overflow: hidden;
}

@media (min-width: 768px) {
    .sp-polish-card__pattern-swatch {
        max-height: 100px;
    }
}

.sp-polish-card__pattern-icon {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.sp-polish-card__pattern-fallback {
    font-size: 24px;
    font-weight: 800;
    color: var(--sp-primary, #c4161c);
}

.sp-polish-card__pattern-label {
    font-size: 12px;
    font-weight: 700;
    color: #374151;
    text-align: center;
    line-height: 1.35;
}

/* Palette — compact swatches (fixed width, not full-row stretch) */
.sp-polish-card__palette {
    display: grid;
    grid-template-columns: repeat(auto-fill, 40px);
    justify-content: start;
    gap: 8px;
    width: 100%;
    max-width: 100%;
}

@media (min-width: 600px) {
    .sp-polish-card__palette {
        grid-template-columns: repeat(auto-fill, 44px);
        gap: 10px;
    }
}

.sp-polish-card__swatch,
.sp-polish-card__custom-color {
    width: 40px !important;
    max-width: 44px;
    height: 40px !important;
    max-height: 44px;
    min-height: 0;
    aspect-ratio: 1 / 1;
    padding: 0 !important;
    margin: 0 !important;
    border: 2px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 10px !important;
    cursor: pointer;
    box-sizing: border-box;
    transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

@media (min-width: 600px) {
    .sp-polish-card__swatch,
    .sp-polish-card__custom-color {
        width: 44px !important;
        height: 44px !important;
    }
}

.sp-polish-card__swatch:hover,
.sp-polish-card__custom-color:hover {
    transform: scale(1.05);
    border-color: rgba(0, 0, 0, 0.2) !important;
}

.sp-polish-card__swatch.is-active {
    border-color: var(--sp-primary, #c4161c) !important;
    box-shadow: 0 0 0 3px rgba(var(--sp-primary-rgb, 196, 22, 28), 0.2);
    transform: scale(1.06);
}

.sp-polish-card__swatch--image {
    background: #f8fafc !important;
    overflow: hidden;
}

.sp-polish-card__swatch-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.sp-polish-card__custom-color {
    display: flex !important;
    align-items: center;
    justify-content: center;
    background: #fff !important;
    position: relative;
    overflow: hidden;
}

.sp-polish-card__custom-color-plus {
    font-size: 18px;
    font-weight: 700;
    color: #6b7280;
    line-height: 1;
    pointer-events: none;
}

.sp-polish-card__custom-color-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    border: none;
    padding: 0;
}

.sp-polish-card__next-step,
.sp-polish-card__back-step {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding: 10px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #f9fafb;
    color: #374151;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, opacity 0.2s ease;
}

.sp-polish-card__next-step:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.sp-polish-card__next-step.is-ready:not(:disabled) {
    background: var(--sp-primary, #c4161c);
    border-color: var(--sp-primary, #c4161c);
    color: #fff;
}

.sp-polish-card__next-step.is-ready:not(:disabled):hover,
.sp-polish-card__back-step:hover {
    background: #fff;
    border-color: rgba(var(--sp-primary-rgb, 196, 22, 28), 0.35);
    color: var(--sp-primary, #c4161c);
}

.sp-polish-card__next-step.is-ready:not(:disabled):hover {
    background: #a81218;
    border-color: #a81218;
    color: #fff;
}

.sp-polish-card__next-step-icon,
.sp-polish-card__back-step-icon {
    font-size: 16px;
    line-height: 1;
}

.sp-polish-card__step-pill.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.sp-polish-card__step-pill:not(.is-disabled) {
    cursor: pointer;
}

/* Footer (inside main column) */
.sp-polish-card__main-col .sp-polish-card__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px 16px;
    padding: 12px 0 0;
    margin-top: auto;
    border-top: 1px solid #e2e8f0;
    background: transparent;
    flex-shrink: 0;
}

.sp-polish-card__footer-hint {
    margin: 0;
    flex: 1 1 200px;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    line-height: 1.45;
}

.sp-polish-card__footer-hint.is-hidden {
    display: none;
}

.sp-polish-card__add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 0 0 auto;
    min-width: min(100%, 220px);
    min-height: 50px;
    padding: 0 28px;
    border: none;
    border-radius: 14px;
    background: var(--sp-primary, #c4161c);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: opacity 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
    box-shadow: 0 6px 20px rgba(var(--sp-primary-rgb, 196, 22, 28), 0.28);
}

.sp-polish-card__add-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.sp-polish-card__add-btn.is-ready:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(var(--sp-primary-rgb, 196, 22, 28), 0.35);
}

/* Auto-sync status bar (upholstery single selection) */
.sp-polish-card--single-selection .sp-polish-card__footer {
    border-top: none;
    padding: 10px 0 0;
    margin-top: 4px;
}

.sp-polish-card__sync-status {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    padding: 12px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.sp-polish-card__sync-status-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: #e2e8f0;
    position: relative;
}

.sp-polish-card__sync-status-icon::after {
    content: "";
    position: absolute;
    inset: 0;
    margin: auto;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #94a3b8;
}

.sp-polish-card__sync-status-text {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.55;
    color: #475569;
}

.sp-polish-card__sync-status.is-progress {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-color: #bfdbfe;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.08);
}

.sp-polish-card__sync-status.is-progress .sp-polish-card__sync-status-icon {
    background: #dbeafe;
}

.sp-polish-card__sync-status.is-progress .sp-polish-card__sync-status-icon::after {
    background: #2563eb;
}

.sp-polish-card__sync-status.is-progress .sp-polish-card__sync-status-text {
    color: #1e40af;
}

.sp-polish-card__sync-status.is-synced {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border-color: #6ee7b7;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.14);
}

.sp-polish-card__sync-status.is-synced .sp-polish-card__sync-status-icon {
    background: #10b981;
}

.sp-polish-card__sync-status.is-synced .sp-polish-card__sync-status-icon::after {
    width: 10px;
    height: 6px;
    border-radius: 0;
    background: transparent;
    border: 2px solid #fff;
    border-top: none;
    border-right: none;
    transform: rotate(-45deg) translate(1px, -1px);
}

.sp-polish-card__sync-status.is-synced .sp-polish-card__sync-status-text {
    color: #065f46;
}

.sp-polish-card--single-selection .sp-polish-card__requests.is-updating {
    animation: sp-polish-selection-pulse 0.45s ease;
}

@keyframes sp-polish-selection-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.35);
    }
    100% {
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }
}

.sp-polish-card__add-btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.2);
    font-size: 18px;
    line-height: 1;
}

.sp-products-swiper .sp-product-card--polish,
.sp-products-swiper .sp-product-card--request-flow {
    min-height: 0 !important;
    height: auto !important;
}

.sp-products-swiper .sp-polish-card__patterns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.sp-products-swiper .sp-polish-card__palette {
    grid-template-columns: repeat(auto-fill, 44px);
    justify-content: start;
}

/* Mobile Swiper — keep pattern/color controls tappable */
.sp-products-swiper .sp-polish-card__panels,
.sp-products-swiper .sp-polish-card__pattern,
.sp-products-swiper .sp-polish-card__swatch,
.sp-products-swiper .sp-polish-card__custom-color,
.sp-products-swiper .sp-polish-card__next-step,
.sp-products-swiper .sp-polish-card__back-step,
.sp-products-swiper .sp-polish-card__add-btn,
.sp-products-swiper .sp-polish-card__selection-clear {
    touch-action: manipulation;
    pointer-events: auto;
    -webkit-user-select: none;
    user-select: none;
}

/* Mobile — request-flow cards must expand fully (never clip pattern/color UI) */
@media (max-width: 768px) {
    .sp-products-swiper:has(.sp-product-card--request-flow),
    .sp-products-swiper:has(.sp-product-card--request-full),
    .sp-products-swiper:has([data-request-service="1"]) {
        overflow: visible !important;
        height: auto !important;
        max-height: none !important;
    }

    .sp-products-swiper .swiper-slide:has(> .sp-product-card--request-flow),
    .sp-products-swiper .swiper-slide:has(> .sp-product-card--request-full),
    .sp-products-swiper .swiper-slide:has(> [data-request-service="1"]) {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }

    .sp-product-card--request-flow .sp-polish-card__shell--full,
    .sp-product-card--request-full .sp-polish-card__shell--full,
    .sp-products-grid--upholstery .sp-polish-card__shell--full {
        overflow: visible;
        height: auto !important;
        max-height: none !important;
    }

    .sp-product-card--request-flow .sp-polish-card__body,
    .sp-product-card--request-flow .sp-polish-card__layout,
    .sp-products-grid--upholstery .sp-polish-card__body,
    .sp-products-grid--upholstery .sp-polish-card__layout {
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        align-items: start;
    }

    .sp-product-card--request-flow .sp-polish-card__preview-col,
    .sp-product-card--request-flow .sp-polish-card__main-col,
    .sp-products-grid--upholstery .sp-polish-card__preview-col,
    .sp-products-grid--upholstery .sp-polish-card__main-col {
        height: auto !important;
        max-height: none !important;
        min-height: 0 !important;
        overflow: visible !important;
        flex: 0 0 auto;
    }

    .sp-product-card--request-flow .sp-polish-card__media,
    .sp-products-grid--upholstery .sp-product-card--request-flow .sp-polish-card__media,
    #products-container.sp-products-grid--upholstery .sp-product-card--request-flow .sp-polish-card__media {
        height: auto !important;
        max-height: none !important;
        flex: 0 0 auto;
    }

    .sp-product-card--request-flow .sp-polish-card__media .sp-product-card__media-frame,
    .sp-products-grid--upholstery .sp-product-card--request-flow .sp-polish-card__media .sp-product-card__media-frame,
    #products-container.sp-products-grid--upholstery .sp-product-card--request-flow .sp-polish-card__media .sp-product-card__media-frame {
        height: auto !important;
        max-height: 280px !important;
        min-height: 200px !important;
        flex: 0 0 auto;
    }

    .sp-product-card--request-flow .sp-polish-card__panels,
    .sp-product-card--request-flow .sp-polish-card__panel.is-active:not([hidden]),
    .sp-product-card--request-flow .sp-polish-card__patterns {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
        flex: 0 0 auto;
    }

    .sp-product-card--request-flow .sp-polish-card__pattern {
        min-height: 0;
        overflow: visible;
    }

    .sp-product-card--request-flow .sp-polish-card__pattern-label {
        display: block;
        overflow: visible;
        white-space: normal;
    }
}

/* Requests table */
.sp-polish-card__requests {
    flex-shrink: 0;
    margin-top: 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
}

.sp-polish-card__requests.has-requests {
    background: #fff;
    border-color: #e2e8f0;
}

.sp-polish-card--single-selection .sp-polish-card__requests-badge {
    display: none !important;
}

.sp-polish-card--single-selection .sp-polish-card__requests {
    flex: 0 0 auto !important;
    min-height: 0;
    overflow: visible !important;
    padding: 12px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sp-polish-card--single-selection .sp-polish-card__back-step--above-selection {
    display: flex;
    width: 100%;
    justify-content: center;
    margin: 0 0 6px;
}

.sp-polish-card--single-selection .sp-polish-card__back-step--above-selection[hidden] {
    display: none !important;
}

.sp-polish-card--single-selection .sp-polish-card__requests.has-requests {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-color: #bbf7d0;
}

.sp-polish-card--single-selection .sp-polish-card__requests-head {
    margin-bottom: 0;
}

.sp-polish-card--single-selection .sp-polish-card__requests-title {
    font-size: 13px;
    color: #0f172a;
}

.sp-polish-card--single-selection .sp-polish-card__requests:not(.has-requests) {
    display: none !important;
}

.sp-polish-card--single-selection .sp-polish-card__requests-empty {
    margin: 0;
    padding: 2px 0 0;
    font-size: 12.5px;
    line-height: 1.55;
    color: #64748b;
}

.sp-polish-card--single-selection .sp-polish-card__requests.has-requests .sp-polish-card__requests-head {
    margin-bottom: 4px;
}

.sp-polish-card__selection-card {
    display: block;
    width: 100%;
}

.sp-polish-card--single-selection .sp-polish-card__selection-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
    gap: 8px;
    align-items: stretch;
}

.sp-polish-card__selection-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 5px;
    min-width: 0;
    min-height: 72px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.sp-polish-card__selection-label {
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    line-height: 1.2;
}

.sp-polish-card__selection-pattern {
    display: block;
    width: 100%;
    font-size: 14px;
    font-weight: 800;
    color: #111827;
    line-height: 1.35;
    word-break: break-word;
}

.sp-polish-card__selection-color {
    display: block;
    width: 100%;
    min-width: 0;
}

.sp-polish-card__selection-color .sp-polish-card__requests-color {
    align-items: center;
}

.sp-polish-card__selection-color .sp-polish-card__requests-swatch {
    width: 26px;
    height: 26px;
    border-radius: 8px;
}

.sp-polish-card__selection-color .sp-polish-card__requests-color-name {
    font-size: 13px;
    font-weight: 700;
    color: #111827;
}

.sp-polish-card__selection-color .sp-polish-card__requests-hex {
    font-size: 10px;
}

.sp-polish-card__selection-clear {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    align-self: stretch;
    min-width: 52px;
    max-width: 64px;
    margin: 0;
    padding: 8px 6px;
    border: 1px solid rgba(196, 22, 28, 0.18);
    border-radius: 10px;
    background: rgba(196, 22, 28, 0.06);
    color: var(--sp-primary, #c4161c);
    font-size: 11px;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.sp-polish-card__selection-clear-icon {
    font-size: 18px;
    line-height: 1;
}

.sp-polish-card__selection-clear-label {
    display: block;
    text-align: center;
}

.sp-polish-card__selection-clear:hover {
    background: rgba(196, 22, 28, 0.12);
    border-color: rgba(196, 22, 28, 0.28);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .sp-polish-card--single-selection .sp-polish-card__requests.has-requests {
        padding: 12px;
        gap: 10px;
    }

    .sp-polish-card--single-selection .sp-polish-card__back-step--above-selection {
        margin-bottom: 4px;
        min-height: 40px;
        font-size: 12.5px;
    }

    .sp-polish-card--single-selection .sp-polish-card__selection-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        grid-template-rows: auto auto;
        gap: 8px;
        align-items: stretch;
    }

    .sp-polish-card__selection-item--pattern,
    .sp-polish-card__selection-item--color {
        min-height: 76px;
        justify-content: flex-start;
    }

    .sp-polish-card__selection-clear {
        grid-column: 1 / -1;
        flex-direction: row;
        align-self: auto;
        width: 100%;
        min-width: 0;
        max-width: none;
        min-height: 42px;
        padding: 10px 14px;
        gap: 8px;
        border-radius: 10px;
    }

    .sp-polish-card__selection-clear-icon {
        font-size: 16px;
    }

    .sp-polish-card__selection-color .sp-polish-card__requests-color {
        flex-wrap: wrap;
        align-items: center;
        gap: 6px;
        row-gap: 4px;
    }

    .sp-polish-card__selection-color .sp-polish-card__requests-color-name {
        flex: 1 1 auto;
        min-width: 0;
        font-size: 12.5px;
        line-height: 1.3;
    }

    .sp-polish-card__selection-color .sp-polish-card__requests-hex {
        flex: 0 0 100%;
        font-size: 10px;
        line-height: 1.2;
        word-break: break-all;
        color: #64748b;
    }

    .sp-polish-card__selection-pattern {
        font-size: 13.5px;
        line-height: 1.35;
    }

    .sp-polish-preview__prompt-inner {
        max-width: min(100%, 200px);
        padding: 12px 14px;
    }

    .sp-polish-preview__prompt-text {
        font-size: 12.5px;
    }
}

@media (max-width: 480px) {
    .sp-polish-card--single-selection .sp-polish-card__selection-grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .sp-polish-card__selection-item {
        min-height: 72px;
        padding: 9px 10px;
    }

    .sp-polish-card__selection-clear {
        min-height: 40px;
        padding: 9px 12px;
    }
}

.sp-polish-card__requests-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.sp-polish-card__requests-title {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
    color: #1f2937;
}

.sp-polish-card__requests-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--sp-primary, #c4161c);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
}

.sp-polish-card__requests-empty {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #6b7280;
}

.sp-polish-card__requests-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.sp-polish-card__requests-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.sp-polish-card__requests-table th {
    text-align: right;
    font-weight: 700;
    color: #6b7280;
    padding: 6px 8px 10px;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

.sp-polish-card__requests-table td {
    padding: 10px 8px;
    vertical-align: middle;
    border-bottom: 1px solid #f1f5f9;
}

.sp-polish-card__requests-col-pattern {
    font-weight: 700;
    color: #111827;
}

.sp-polish-card__requests-color {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.sp-polish-card__requests-swatch {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    flex-shrink: 0;
}

.sp-polish-card__requests-color-name {
    font-weight: 600;
}

.sp-polish-card__requests-hex {
    font-size: 11px;
    color: #6b7280;
    background: #f3f4f6;
    padding: 3px 6px;
    border-radius: 6px;
}

.sp-polish-card__request-remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: rgba(196, 22, 28, 0.08);
    color: var(--sp-primary, #c4161c);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.sp-polish-card__request-remove:hover {
    background: rgba(196, 22, 28, 0.16);
    transform: scale(1.05);
}

.sp-summary-request-label {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(196, 22, 28, 0.1);
    color: var(--sp-primary, #c4161c);
    font-size: 13px;
    font-weight: 800;
}

/* Override default product-card media padding (edge-to-edge preview) */
.sp-product-card--request-flow .sp-polish-card__media,
.sp-product-card--request-flow .sp-polish-card__media.product-image-container,
#products-container .sp-product-card--request-flow .sp-polish-card__media,
#products-container .sp-product-card--request-flow .sp-polish-card__media.product-image-container {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    flex-shrink: 0 !important;
}

#products-container.sp-products-grid--upholstery .sp-product-card--request-flow .sp-polish-card__media {
    height: auto !important;
}

/* Full-width upholstery — tight preview + info column matched to image height */
.sp-products-grid--upholstery .sp-product-card--request-flow .sp-polish-card__body,
.sp-products-grid--upholstery .sp-product-card--request-full .sp-polish-card__body,
.sp-products-grid--upholstery .sp-product-card--request-flow .sp-polish-card__layout,
.sp-products-grid--upholstery .sp-product-card--request-full .sp-polish-card__layout,
#products-container.sp-products-grid--upholstery .sp-product-card--request-flow .sp-polish-card__body {
    min-height: 0 !important;
    align-items: stretch;
    gap: 12px;
    padding: 12px 14px;
}

@media (min-width: 768px) {
    /* Preview + controls share one row height (main column drives height). */
    .sp-products-grid--upholstery .sp-product-card--request-flow .sp-polish-card__body,
    .sp-products-grid--upholstery .sp-product-card--request-full .sp-polish-card__body,
    #products-container.sp-products-grid--upholstery .sp-product-card--request-flow .sp-polish-card__body {
        grid-template-columns: minmax(220px, 34%) minmax(0, 1fr);
        justify-content: stretch;
        gap: 14px;
        width: 100%;
        align-items: stretch;
    }
}

.sp-products-grid--upholstery .sp-product-card--request-flow .sp-polish-card__preview-col,
.sp-products-grid--upholstery .sp-product-card--request-full .sp-polish-card__preview-col {
    align-self: stretch;
    justify-self: stretch;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.sp-products-grid--upholstery .sp-product-card--request-flow .sp-polish-card__media,
.sp-products-grid--upholstery .sp-product-card--request-full .sp-polish-card__media,
#products-container.sp-products-grid--upholstery .sp-product-card--request-flow .sp-polish-card__media {
    height: 100% !important;
    flex: 1 1 auto;
    min-height: 0;
}

.sp-products-grid--upholstery .sp-product-card--request-flow .sp-polish-card__media .sp-product-card__media-frame,
.sp-products-grid--upholstery .sp-product-card--request-full .sp-polish-card__media .sp-product-card__media-frame,
#products-container.sp-products-grid--upholstery .sp-product-card--request-flow .sp-polish-card__media .sp-product-card__media-frame {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    width: 100%;
    aspect-ratio: auto;
    padding: 0;
    box-shadow: none !important;
    border-radius: 12px !important;
    overflow: hidden;
}

.sp-products-grid--upholstery .sp-polish-preview__viewport {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
    height: auto;
    line-height: 0;
    overflow: hidden;
}

.sp-products-grid--upholstery .sp-polish-preview__svg {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-height: 0;
    width: 100%;
    height: 100%;
}

.sp-products-grid--upholstery .sp-polish-preview__svg-el,
#products-container.sp-products-grid--upholstery .sp-polish-preview__svg-el {
    width: auto !important;
    height: auto !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 auto !important;
    display: block;
}

.sp-products-grid--upholstery .sp-polish-card--heights-synced .sp-polish-preview__svg-el,
#products-container.sp-products-grid--upholstery .sp-polish-card--heights-synced .sp-polish-preview__svg-el {
    max-height: calc(100% - 28px) !important;
}

.sp-products-grid--upholstery .sp-polish-preview__caption {
    position: static;
    flex: 0 0 auto;
    margin: 0;
    padding: 6px 10px;
    font-size: 10px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.sp-products-grid--upholstery .sp-product-card--request-flow .sp-polish-card__main-col,
.sp-products-grid--upholstery .sp-product-card--request-full .sp-polish-card__main-col {
    width: 100%;
    max-width: none;
    min-width: 0;
    justify-self: stretch;
    align-self: stretch;
    height: auto;
    min-height: 0;
    padding: 12px 14px;
    gap: 8px;
    justify-content: flex-start;
    overflow: visible;
    box-sizing: border-box;
}

.sp-products-grid--upholstery .sp-polish-card--heights-synced .sp-polish-card__main-col {
    display: flex;
    flex-direction: column;
}

.sp-products-grid--upholstery .sp-polish-card--heights-synced .sp-polish-card__panels {
    flex: 0 0 auto;
}

.sp-products-grid--upholstery .sp-polish-card--heights-synced:not(.sp-polish-card--single-selection) .sp-polish-card__requests {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

.sp-products-grid--upholstery .sp-polish-card--heights-synced.sp-polish-card--single-selection .sp-polish-card__requests {
    flex: 0 0 auto;
    overflow: visible;
    margin-top: auto;
}

.sp-products-grid--upholstery .sp-polish-card--heights-synced .sp-polish-card__footer {
    flex: 0 0 auto;
    margin-top: auto;
}

.sp-products-grid--upholstery .sp-polish-card__panels {
    flex: 0 0 auto;
}

.sp-products-grid--upholstery .sp-polish-card__panel.is-active:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sp-products-grid--upholstery .sp-polish-card--step-color .sp-polish-card__panel[data-sp-polish-panel="color"] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sp-products-grid--upholstery .sp-polish-card--step-pattern .sp-polish-card__panel[data-sp-polish-panel="pattern"] {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sp-products-grid--upholstery .sp-polish-card__selected-pattern {
    margin: 0 0 4px;
    padding: 6px 10px;
}

.sp-products-grid--upholstery .sp-polish-card--step-color .sp-polish-card__panel-hint {
    margin: 0 0 6px;
}

.sp-products-grid--upholstery .sp-polish-card__palette-wrap {
    margin: 0;
}

.sp-products-grid--upholstery .sp-polish-card--single-selection .sp-polish-card__requests {
    margin-top: 4px;
}

@media (max-width: 640px) {
    .sp-polish-card__header {
        padding: 14px 14px 12px;
    }

    .sp-polish-card__body,
    .sp-polish-card__layout {
        padding: 12px;
    }

    .sp-polish-card__header .sp-polish-card__stepper {
        width: 100%;
        justify-content: center;
    }

    .sp-polish-card__main-col .sp-polish-card__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .sp-polish-card__add-btn {
        width: 100%;
        min-width: 0;
    }

    .sp-polish-card__media .sp-product-card__media-frame {
        min-height: 240px;
    }
}
