.bjpc-configurator {
    position: relative;
}

.bjpc-configurator.bjpc-loading {
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.bjpc-configurator.bjpc-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    margin: -12px 0 0 -12px;
    border: 2px solid #e0e0e0;
    border-top-color: #1a1a2e;
    border-radius: 50%;
    animation: bjpc-spin 0.6s linear infinite;
    z-index: 10;
}

@keyframes bjpc-spin {
    to { transform: rotate(360deg); }
}

.bjpc-product-code {
    margin-bottom: 16px;
    font-size: 13px;
    color: #666;
}

.bjpc-product-code .bjpc-code-label {
    font-weight: 600;
    color: #333;
}

.bjpc-field {
    margin-bottom: 16px;
    position: relative;
}

.bjpc-field--hidden {
    display: none !important;
}

.bjpc-field--disabled {
    opacity: 0.4;
    pointer-events: none;
}

.bjpc-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.bjpc-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    background: #fff;
    border: 1.5px solid #d0d5dd;
    border-radius: 6px;
    font-size: 15px;
    color: #1a1a2e;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    font-family: inherit;
    text-align: left;
}

.bjpc-dropdown-toggle:hover {
    border-color: #1a1a2e;
}

.bjpc-dropdown-toggle:focus {
    outline: none;
    border-color: #1a1a2e;
    box-shadow: 0 0 0 3px rgba(26, 26, 46, 0.08);
}

.bjpc-field--open .bjpc-dropdown-toggle {
    border-color: #1a1a2e;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.bjpc-chevron {
    transition: transform 0.2s ease;
    flex-shrink: 0;
    margin-left: 8px;
    color: #888;
}

.bjpc-field--open .bjpc-chevron {
    transform: rotate(180deg);
}

.bjpc-dropdown-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1.5px solid #1a1a2e;
    border-top: none;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    z-index: 100;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.bjpc-field--open .bjpc-dropdown-options {
    display: block;
}

.bjpc-option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px;
    font-size: 15px;
    color: #1a1a2e;
    cursor: pointer;
    transition: background-color 0.1s ease;
}

.bjpc-option:hover {
    background-color: #f5f6f8;
}

.bjpc-option--active {
    background-color: #f0f4ff;
    font-weight: 600;
}

.bjpc-option--unavailable {
    opacity: 0.35;
    text-decoration: line-through;
    pointer-events: none;
}

.bjpc-option--disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.bjpc-check {
    color: #1a73e8;
    flex-shrink: 0;
    margin-left: 8px;
}

.bjpc-accessories-section {
    margin-top: 8px;
    margin-bottom: 16px;
    border: 1.5px solid #e8eaed;
    border-radius: 6px;
    overflow: hidden;
}

.bjpc-accessories-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 16px;
    background: #fff;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: #1a73e8;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.bjpc-accessories-toggle:hover {
    background: #f8f9fa;
}

.bjpc-plus-icon {
    color: #1a73e8;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.bjpc-accessories-toggle--open .bjpc-plus-icon {
    transform: rotate(45deg);
}

.bjpc-accessories-list {
    border-top: 1px solid #e8eaed;
}

.bjpc-accessory-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s ease;
}

.bjpc-accessory-item:last-child {
    border-bottom: none;
}

.bjpc-accessory-item--selected {
    background: #f0f7ff;
}

.bjpc-acc-image {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 4px;
    background: #fafafa;
    flex-shrink: 0;
}

.bjpc-acc-info {
    flex: 1;
    min-width: 0;
}

.bjpc-acc-name {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #1a1a2e;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bjpc-acc-price {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}

.bjpc-acc-add {
    padding: 6px 16px;
    background: #fff;
    border: 1.5px solid #1a73e8;
    border-radius: 4px;
    color: #1a73e8;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    font-family: inherit;
}

.bjpc-acc-add:hover {
    background: #1a73e8;
    color: #fff;
}

.bjpc-acc-add.bjpc-acc-added {
    background: #1a73e8;
    color: #fff;
    border-color: #1a73e8;
}

.bjpc-product-info-bar {
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.bjpc-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #555;
}

.bjpc-info-item svg {
    color: #888;
    flex-shrink: 0;
}

.bjpc-stock-info {
    margin-top: 8px;
    font-size: 13px;
}

.bjpc-stock--instock {
    color: #2e7d32;
}

.bjpc-stock--outofstock {
    color: #c62828;
    font-weight: 600;
}

.bjpc-service-addons {
    margin: 16px 0;
}

.bjpc-service-addon-item {
    margin-bottom: 16px;
}

.bjpc-service-addon-options {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 4px;
}

.bjpc-service-option {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: #fff;
    border: 1.5px solid #d0d5dd;
    border-radius: 6px;
    font-size: 14px;
    color: #1a1a2e;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.bjpc-service-option:hover {
    border-color: #1a1a2e;
}

.bjpc-service-option input[type="radio"] {
    margin: 0;
    accent-color: #1a73e8;
}

.bjpc-service-option input[type="radio"]:checked + span {
    font-weight: 600;
}

.bjpc-service-sku {
    font-size: 11px;
    color: #888;
}

.bjpc-service-sub-field {
    margin-top: 10px;
    margin-left: 16px;
    position: relative;
}

.bjpc-service-sub-field--hidden {
    display: none;
}

.bjpc-service-dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 10px 14px;
    background: #fff;
    border: 1.5px solid #d0d5dd;
    border-radius: 6px;
    font-size: 14px;
    color: #1a1a2e;
    cursor: pointer;
    transition: border-color 0.15s ease;
    font-family: inherit;
    text-align: left;
}

.bjpc-service-dropdown-toggle:hover {
    border-color: #1a1a2e;
}

.bjpc-service-sub-field--open .bjpc-service-dropdown-toggle {
    border-color: #1a1a2e;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

.bjpc-service-sub-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1.5px solid #1a1a2e;
    border-top: none;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
    z-index: 100;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.bjpc-service-sub-field--open .bjpc-service-sub-options {
    display: block;
}

.bjpc-service-sub-option {
    padding: 10px 14px;
    font-size: 14px;
    color: #1a1a2e;
    cursor: pointer;
    transition: background-color 0.1s ease;
}

.bjpc-service-sub-option:hover {
    background-color: #f5f6f8;
}

.bjpc-service-sub-option--active {
    background-color: #f0f4ff;
    font-weight: 600;
}

@media (max-width: 768px) {
    .bjpc-dropdown-toggle {
        padding: 10px 14px;
        font-size: 14px;
    }

    .bjpc-option {
        padding: 10px 14px;
        font-size: 14px;
    }

    .bjpc-accessory-item {
        gap: 8px;
        padding: 8px 12px;
    }

    .bjpc-acc-image {
        width: 40px;
        height: 40px;
    }
}
