#sh-pn400-configurator {
    max-width: 820px;
    margin: 0 auto;
}

/* ── Progress bar ──────────────────────────────────────────────────────────── */

.sh-config-progress {
    display: flex;
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid #e0e0e0;
}

.sh-progress-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: .35;
    transition: opacity .2s;
}
.sh-progress-step.active,
.sh-progress-step.completed { opacity: 1; }

.sh-step-num {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: #bbb;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: .85rem;
}
.sh-progress-step.active    .sh-step-num { background: #005a8e; }
.sh-progress-step.completed .sh-step-num { background: #4caf50; }

.sh-step-label { font-size: .78rem; text-align: center; line-height: 1.2; }

/* ── Steps ─────────────────────────────────────────────────────────────────── */

.sh-config-step         { display: none; }
.sh-config-step.active  { display: block; }

.sh-step-header         { margin-bottom: 1.25rem; }
.sh-step-header h3      { margin: 0 0 4px; font-size: 1.2rem; }

.sh-required-label  { color: #c00;  font-size: .82rem; margin: 0; }
.sh-optional-label  { color: #666;  font-size: .82rem; margin: 0; }

/* ── Product card (steps 1 & 2) ────────────────────────────────────────────── */

.sh-product-card {
    display: flex; gap: 1.5rem;
    border: 1px solid #ddd; border-radius: 6px;
    padding: 1.25rem; background: #fafafa;
}
.sh-product-image           { flex-shrink: 0; width: 130px; }
.sh-product-image img       { width: 100%; height: auto; display: block; }
.sh-product-fields          { flex: 1; min-width: 0; }
.sh-product-desc            { color: #555; font-size: .88rem; margin: 0 0 1rem; }
.sh-sa-learn-link           { display: inline-flex; align-items: center; gap: 4px; font-size: .88rem; }
.sh-sa-learn-link svg       { flex-shrink: 0; }

/* ── SA cards (step 3) ─────────────────────────────────────────────────────── */

.sh-sa-card {
    border: 1px solid #ddd; border-radius: 6px;
    padding: 1.1rem; margin-bottom: .9rem; background: #fafafa;
}
.sh-sa-header               { display: flex; gap: 1rem; align-items: flex-start; }
.sh-sa-thumb                { flex-shrink: 0; width: 72px; }
.sh-sa-thumb img            { width: 100%; height: auto; display: block; }
.sh-sa-info                 { flex: 1; min-width: 0; }
.sh-sa-info h4              { margin: 0 0 4px; font-size: .95rem; }
.sh-sa-base-price           { margin: 4px 0 0; font-weight: 600; font-size: .88rem; }

.sh-sa-qty-wrap             { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.sh-sa-qty-wrap > label     { font-size: .75rem; color: #666; margin: 0; }

.sh-qty-control             { display: flex; align-items: center; gap: 3px; }
.sh-qty-btn {
    width: 30px; height: 30px; border: 1px solid #ccc; background: #f0f0f0;
    border-radius: 3px; cursor: pointer; font-size: 1rem; line-height: 1;
    padding: 0;
}
.sh-qty-btn:hover           { background: #ddd; }
.sh-qty-input {
    width: 46px; height: 30px; text-align: center;
    border: 1px solid #ccc; border-radius: 3px; font-size: .95rem;
    -moz-appearance: textfield;
}
.sh-qty-input::-webkit-inner-spin-button,
.sh-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; }

.sh-sa-options {
    margin-top: 1rem; padding-top: 1rem;
    border-top: 1px solid #e8e8e8;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .85rem;
}

/* ── Field groups ───────────────────────────────────────────────────────────── */

.sh-field-group             { margin-bottom: .85rem; }
.sh-field-group > label     { display: block; font-weight: 600; font-size: .85rem; margin-bottom: 4px; }
.sh-req                     { color: #c00; }

.sh-select {
    width: 100%; padding: 7px 9px;
    border: 1px solid #ccc; border-radius: 4px;
    font-size: .9rem; background: #fff;
}

.sh-checkbox-label {
    display: flex; align-items: center; gap: 7px;
    font-weight: normal; cursor: pointer; font-size: .9rem;
}
.sh-warranty-price          { font-size: .8rem; color: #555; margin: 3px 0 0; min-height: 1.1em; }
.sh-note                    { font-size: .82rem; color: #888; font-style: italic; margin: .5rem 0 0; }

/* ── Review table ───────────────────────────────────────────────────────────── */

.sh-review-table            { width: 100%; border-collapse: collapse; margin-bottom: 1.25rem; }
.sh-review-table td         { padding: 7px 10px; border-bottom: 1px solid #f0f0f0; font-size: .9rem; }
.sh-review-table td:last-child { text-align: right; white-space: nowrap; }

.sh-review-section td       { background: #f3f3f3; padding-top: .9rem; font-size: .82rem; color: #333; }
.sh-review-sub              { padding-left: 1.5rem !important; color: #555; }
.sh-review-total td         { padding-top: .9rem; border-top: 2px solid #333; font-size: 1rem; }

.sh-review-note             { font-size: .78rem; color: #999; margin: 0; }

/* ── Add to cart ────────────────────────────────────────────────────────────── */

.sh-add-to-cart-wrap        { margin-top: 1.25rem; }
#sh-submit-btn:hover,
#sh-submit-btn:focus        { background-color: transparent !important; }
#sh-submit-btn:disabled,
#sh-submit-btn[disabled]    {
    background: #f05422 !important;
    border-color: #f05422 !important;
    color: #fff !important;
    opacity: 0.75;
}
.sh-cart-error              { color: #c00; font-size: .88rem; margin: .5rem 0 0; }
.sh-cart-notice             { color: #555; font-size: .88rem; margin: .5rem 0 0; }

/* ── Navigation ─────────────────────────────────────────────────────────────── */

.sh-config-nav {
    display: flex; justify-content: space-between;
    margin-top: 1.5rem; padding-top: 1rem;
    border-top: 1px solid #e0e0e0;
}

/* ── Responsive ─────────────────────────────────────────────────────────────── */

@media (max-width: 580px) {
    .sh-product-card,
    .sh-sa-header           { flex-direction: column; }
    .sh-product-image       { width: 100px; }
    .sh-sa-qty-wrap         { flex-direction: row; align-items: center; gap: 8px; }
    .sh-sa-options          { grid-template-columns: 1fr; }
    .sh-step-label          { display: none; }
}
