/* ChoicesJS Overrides */

.bundleBuilderComponent .choices,
.bundleProductsComponent .choices {
    margin-bottom: 0;
}

.bundleBuilderComponent .choices__inner,
.bundleProductsComponent .choices__inner {
    min-height: auto;
    padding: 6px 10px;
    border: 1px solid lightgray;
    border-radius: 0;
    background-color: white;
}

.bundleBuilderComponent .choices__list--single,
.bundleProductsComponent .choices__list--single {
    padding: 0;
}

.bundleBuilderComponent .choices__item,
.bundleProductsComponent .choices__item {
    font-size: 14px;
}

.bundleBuilderComponent .choices,
.bundleProductsComponent .choices {
    flex: 1;
}


/* Bundle Builder — Received Separately */

#bundleBuilder {
    margin-bottom: 20px;
}

#bundleBuilder h3 {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #666;
}

.bundleBuilderSection {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.bundleBuilderSection:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

#bundleBuilderComponents {
    margin-bottom: 15px;
}

.bundleBuilderComponent {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.bundleBuilderComponent input[type="number"] {
    width: 80px;
    flex-shrink: 0;
}

.bundleBuilderComponentRemove {
    width: 36px;
    flex-shrink: 0;
    padding: 6px 10px;
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 18px;
}

.bundleBuilderSkuNote {
    margin: 0 0 10px 0;
    font-size: 13px;
    color: #666;
}

#bundleBuilderPreview {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 4px;
}

#bundleBuilderSkuPreview {
    font-size: 14px;
    word-break: break-all;
    flex: 1;
}

#bundleBuilderCopyBtn {
    flex-shrink: 0;
}

#bundleBuilderCopyBtn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

#bundleBuilderSkuPreview.error {
    color: #dc3545;
    font-weight: 500;
}


@media (max-width: 800px) {
    .bundleBuilderComponent {
        flex-wrap: wrap;
    }

    .bundleBuilderComponent .choices {
        width: 100%;
        flex: none;
    }

    .bundleBuilderComponent input[type="number"] {
        flex: 1;
    }
}


/* Bundle Products — Received Together */

#bundleProducts {
    margin-bottom: 20px;
}

#bundleProductsNote {
    margin: 0 0 15px 0;
    font-size: 12px;
    color: #888;
    font-style: italic;
}

#bundleProductsForm {
    margin-bottom: 20px;
}

.bundleProductsFormRow {
    margin-bottom: 10px;
}

.bundleProductsFormGroup {
    margin-bottom: 10px;
}

.bundleProductsFormGroup label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
    font-size: 14px;
}

.bundleProductsFormGroupTitle {
    max-width: 400px;
}

#bundleProductsComponents {
    margin-bottom: 10px;
}

.bundleProductsComponent {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 4px;
}

.bundleProductsComponentQty {
    width: 80px;
    flex-shrink: 0;
}

.bundleProductsComponentRemove {
    width: 36px;
    flex-shrink: 0;
    padding: 6px 10px;
    background: none;
    border: none;
    color: #dc3545;
    cursor: pointer;
    font-size: 18px;
}

.bundleProductsFormActions {
    display: flex;
    gap: 10px;
}


/* Bundle Products List */

#bundleProductsListHeader {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

#bundleProductsEmpty {
    font-size: 13px;
    color: #888;
    font-style: italic;
    padding-top: 10px;
}

.bundleProductsListItem {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 8px;
}

.bundleProductsListItemHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.bundleProductsListItemInfo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.bundleProductsListItemTitle {
    font-weight: 600;
    font-size: 14px;
}

.bundleProductsListItemSku {
    font-size: 12px;
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 4px;
    cursor: pointer;
}

.bundleProductsListItemSku:hover {
    background: #e0e0e0;
}

.bundleProductsListItemDelete {
    background: none;
    border: 1px solid #fca5a5;
    border-radius: 4px;
    cursor: pointer;
    padding: 4px 6px;
    color: #dc2626;
    display: flex;
    align-items: center;
}

.bundleProductsListItemDelete:hover {
    background: #fee2e2;
    border-color: #dc2626;
}

.bundleProductsListItemComponents {
    margin: 8px 0 0 0;
    padding-left: 20px;
    font-size: 13px;
    color: #555;
}

.bundleProductsListItemComponents li {
    margin-bottom: 2px;
}

@media (max-width: 800px) {
    .bundleProductsComponent {
        flex-wrap: wrap;
    }

    .bundleProductsComponent .choices {
        width: 100%;
        flex: none;
    }

    .bundleProductsComponentQty {
        flex: 1;
    }

    .bundleProductsFormActions {
        flex-direction: column;
    }
}


/* Swal Modal Styles */

.bundleConfirmList {
    text-align: left;
    font-size: 13px;
}

.bundleCreatedSku {
    font-size: 18px;
    cursor: pointer;
    padding: 8px 16px;
    background: #f0f0f0;
    border-radius: 4px;
    display: inline-block;
}

.bundleCreatedSkuHint {
    font-size: 12px;
    color: #888;
}
