.cmb-configurator {
    max-width: 700px;
    margin: 0 auto 30px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* Steps bar */
.cmb-steps-bar {
    display: flex;
    justify-content: space-between;
    margin-bottom: 25px;
    padding: 0;
    border-bottom: 2px solid #eee;
    padding-bottom: 12px;
}
.cmb-step-indicator {
    font-size: 13px;
    color: #aaa;
    text-align: center;
    flex: 1;
    position: relative;
}
.cmb-step-indicator span {
    display: inline-block;
    width: 26px;
    height: 26px;
    line-height: 26px;
    border-radius: 50%;
    background: #ddd;
    color: #fff;
    font-weight: 700;
    margin-right: 4px;
    font-size: 12px;
}
.cmb-step-indicator.active span {
    background: #8B6914;
}
.cmb-step-indicator.active {
    color: #333;
    font-weight: 600;
}
.cmb-step-indicator.completed span {
    background: #27ae60;
}
.cmb-step-indicator.completed {
    color: #27ae60;
}

/* Step content */
.cmb-step h3 {
    margin: 0 0 8px;
    font-size: 20px;
    color: #333;
}
.cmb-step > p {
    color: #666;
    margin: 0 0 20px;
    font-size: 14px;
}
.cmb-step-content {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}
.cmb-diagram {
    flex: 0 0 260px;
}
.cmb-diagram svg {
    width: 100%;
    height: auto;
}
.cmb-input-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 180px;
}
.cmb-input-group label {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 8px;
    color: #333;
}
.cmb-input-group input[type="number"] {
    width: 100%;
    padding: 12px 14px;
    font-size: 18px;
    border: 2px solid #ddd;
    border-radius: 6px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}
.cmb-input-group input[type="number"]:focus {
    border-color: #8B6914;
    outline: none;
}
.cmb-hint {
    font-size: 12px;
    color: #999;
    margin-top: 6px;
}
.cmb-error {
    color: #e74c3c;
    font-size: 13px;
    margin-top: 6px;
    display: none;
}

/* Navigation */
.cmb-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}
.cmb-btn {
    padding: 10px 24px;
    font-size: 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s;
}
.cmb-btn.cmb-next, .cmb-btn.cmb-calculate {
    background: #8B6914;
    color: #fff;
    margin-left: auto;
}
.cmb-btn.cmb-next:hover, .cmb-btn.cmb-calculate:hover {
    background: #6d5310;
}
.cmb-btn.cmb-prev {
    background: #eee;
    color: #555;
}
.cmb-btn.cmb-prev:hover {
    background: #ddd;
}
.cmb-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Preview step */
.cmb-preview-content {
    flex-direction: column;
    align-items: center;
}
.cmb-3d-preview {
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
}
.cmb-3d-preview canvas {
    width: 100%;
    height: auto;
    border: 1px solid #eee;
    border-radius: 8px;
    background: #fafafa;
}
.cmb-price-summary {
    width: 100%;
    text-align: center;
    margin-top: 15px;
}
.cmb-summary-dimensions {
    display: inline-block;
    text-align: left;
    background: #f9f6f0;
    padding: 15px 25px;
    border-radius: 8px;
    margin-bottom: 15px;
}
.cmb-summary-dimensions h4 {
    margin: 0 0 8px;
    font-size: 15px;
    color: #8B6914;
}
.cmb-summary-dimensions p {
    margin: 4px 0;
    font-size: 14px;
    color: #555;
}
.cmb-summary-dimensions p span {
    display: inline-block;
    width: 110px;
}
.cmb-price-display {
    margin: 15px 0;
}
.cmb-price-label {
    font-size: 18px;
    color: #555;
}
.cmb-price-value {
    font-size: 36px;
    font-weight: 700;
    color: #27ae60;
    margin-left: 8px;
}
.cmb-features {
    font-size: 13px;
    color: #888;
    margin-top: 10px;
}

/* Loading spinner */
.cmb-loading {
    text-align: center;
    padding: 40px;
    color: #888;
}
.cmb-loading::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    border: 3px solid #ddd;
    border-top-color: #8B6914;
    border-radius: 50%;
    animation: cmb-spin 0.8s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}
@keyframes cmb-spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 600px) {
    .cmb-step-content {
        flex-direction: column;
    }
    .cmb-diagram {
        flex: none;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
    }
    .cmb-input-group {
        min-height: auto;
    }
    .cmb-steps-bar {
        font-size: 11px;
    }
}

/* Hide default WC price on this product since it's dynamic */
.cmb-configurator ~ .price,
.cmb-configurator ~ .woocommerce-Price-amount {
    display: none;
}
