.sj-config-container {
    background: #fff;
    padding: 25px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    margin-bottom: 30px;
    font-family: sans-serif;
}

/* Section Titles */
.sj-section-title {
    display: flex;
    align-items: center;
    font-size: 13px;
    font-weight: 700;
    margin: 25px 0 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
    gap: 8px;
    /* This fixes the overlapping issue */
}

.sj-section-title span {
    background: #000;
    color: #fff;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 11px;
    flex-shrink: 0;
    /* Prevents the circle from squishing */
}

/* Style for the selected option text */
#selected-color-name {
    color: #b33951;
    /* Highlights the selection */
    font-weight: 600;
}

/* Color Swatches */
.sj-swatches-grid {
    display: flex;
    gap: 15px;
    margin: 15px 0;
    min-height: 40px;
}

.sj-swatch {
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    cursor: pointer;
    border: 2px solid transparent;
    box-shadow: inset 0 0 0 1px #ddd;
    display: block !important;
    transition: all 0.2s ease-in-out;
}

.sj-swatch:hover {
    transform: scale(1.1);
}

.sj-swatch.active {
    border-color: #fff !important;
    box-shadow: 0 0 0 2px #b33951 !important;
}

/* Grids for other sections */
.sj-lining-grid,
.sj-mount-grid,
.sj-header-grid,
.sj-tieback-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 10px;
}

.sj-lining-item,
.sj-mount-item,
.sj-header-item,
.sj-tieback-item {
    border: 1px solid #ddd;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    background: #fff;
}

.sj-lining-item:hover,
.sj-mount-item:hover,
.sj-header-item:hover,
.sj-tieback-item:hover {
    border-color: #b33951;
}

.sj-lining-item.active,
.sj-mount-item.active,
.sj-header-item.active,
.sj-tieback-item.active {
    border: 2px solid #b33951;
    background: #fff9fa;
}

/* Dimensions and Guide */
.sj-dimensions-row {
    display: flex;
    gap: 15px;
}

.sj-input-group {
    flex: 1;
}

.sj-input-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 600;
}

.sj-input-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
}

.sj-guide-link {
    color: #b33951;
    font-size: 11px;
    text-decoration: underline;
    margin-bottom: 10px;
    display: block;
    cursor: pointer;
}

/* Motorization Checkbox */
.sj-checkbox-container {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #f9f9f9;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
}

.sj-checkbox-container input {
    margin-right: 10px;
    accent-color: #b33951;
}

/* Price Preview */
.sj-price-preview {
    margin-top: 30px;
    padding: 20px 0;
    border-top: 2px solid #f0f0f0;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#dynamic-price-display {
    color: #b33951;
    font-size: 22px;
}

/* Disabled button */
.sj-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #999 !important;
    border-color: #999 !important;
}

/* Modal */
#sj-measurement-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

.sj-modal-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.sj-modal-content {
    position: relative;
    background: #fff;
    width: 90%;
    max-width: 500px;
    margin: 100px auto;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}

.sj-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
}