.forj-configurator-wrapper {
    padding: 0;
    background: #fff;
}

.forj-configurator-loading {
    text-align: center;
    padding: 40px;
}

.forj-configurator-loading .spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid rgb(0, 131, 186);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.forj-preview {
    margin: 20px auto;
}

.forj-configurator-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.forj-option-category {
    margin-bottom: 25px;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 6px;
}

.forj-option-category h4 {
    margin-top: 0;
    color: rgb(0, 131, 186);
    font-size: 18px;
}

.forj-option-category .description {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.forj-option-select {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
}

.forj-configurator-summary {
    padding: 20px;
    margin-bottom: 30px;
    background: #f0f7ff;
    border-radius: 6px;
    border: 2px solid rgb(0, 131, 186);
}

.forj-configurator-summary h3 {
    margin-top: 0;
    color: rgb(0, 131, 186);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #ddd;
}

.summary-item:last-child {
    border-bottom: none;
}

.summary-label {
    font-weight: bold;
}

.forj-configurator-actions {
    margin-top: 20px;
    text-align: right;
}

.forj-configurator-actions .button {
    margin-left: 10px;
    padding: 10px 20px;
}

@media (max-width: 768px) {
    .forj-configurator-wrapper {
        padding: 15px;
    }

    .summary-item {
        flex-direction: column;
        gap: 5px;
    }

    .forj-configurator-actions {
        text-align: center;
    }

    .forj-configurator-actions .button {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
}

.button {
    font-size: 18px !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
}

.button-secondary:disabled {
    color: #666666 !important;
    border-color: #666666 !important;
}

.button-primary:disabled {
    background-color: #666666 !important;
    color: #333333 !important;
}

.button-primary {
    background-color: rgb(0, 131, 186) !important;
    color: white !important;
    fill: white !important;
    border: none !important;
}

.button-primary:not(:disabled):hover, .button-primary:not(:disabled):focus {
    background-color: #0E2A49 !important;
}

.button-secondary {
    background-color: white !important;
    color: rgb(0, 131, 186) !important;
    fill: rgb(0, 131, 186) !important;
    border: 1px solid rgb(0, 131, 186) !important;
}

.button-secondary:not(:disabled):hover, .button-secondary:not(:disabled):focus {
    color: #0E2A49 !important;
    border: 1px solid #0E2A49 !important;
}

/* Overrides for Select2 */

/* Make the main box look like a standard input */
.select2-container--default .select2-selection--single {
    border: 1px solid #ccc;
    border-radius: 4px !important;
    height: 38px;
    padding: 5px;
}

/* Adjust the text inside the box */
.select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 26px;
    color: #333 !important;
    font-size: 14px;
    padding-left: 5px;
}

/* Fix the arrow position */
.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

/* Reduce size and padding of the search results */
.select2-results__option {
    padding: 6px 10px !important;
    font-size: 13px !important;
}

/* Fix the search input field inside the dropdown */
.select2-container--default .select2-search--dropdown .select2-search__field {
    padding: 6px;
    border: 1px solid #ddd;
}

/* Prevent the dropdown from being wider than the container */
.select2-container {
    max-width: 400px !important;
}

.forj-open-pdf {
    cursor: pointer;
    color: var(--e-global-color-primary) !important; /* Standard link color */
}