.grp-admin-theme .bs-object-tools {
    margin-inline-start: auto;
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
}

.grp-admin-theme .bs-object-tools .grp-object-tools {
    margin-inline-start: 0;
}

/* --- Modal overlay --- */
.bs-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(0, 0, 0, .45);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 4vh 1rem;
    overflow-y: auto;
}

.bs-modal {
    background: #fff;
    border-radius: .5rem;
    max-width: 560px;
    width: 100%;
    box-shadow: 0 18px 55px rgba(0, 0, 0, .28);
    font-size: .95rem;
}

.bs-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e3e3e3;
    color: #333;
}

.bs-modal-header h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    color: inherit;
}

.bs-modal-close {
    background: none;
    border: 0;
    font-size: 1.5rem;
    line-height: 1;
    color: #666;
    cursor: pointer;
    padding: 0 .35rem;
}

.bs-modal-close:hover {
    color: #000;
}

.bs-modal-body {
    padding: 1.25rem;
}

.bs-modal-download {
    background: #f7f9fc;
    border: 1px dashed #c5cede;
    border-radius: .45rem;
    padding: .9rem 1rem;
    margin-bottom: 1.1rem;
}

.bs-modal-hint {
    margin: .5rem 0 0;
    font-size: .82rem;
    color: #667;
}

.bs-form-group {
    margin-bottom: 1rem;
}

.bs-form-group > label {
    display: block;
    margin-bottom: .35rem;
    font-weight: 500;
    color: #333;
}

.bs-form-group input[type="file"] {
    display: block;
    width: 100%;
    padding: .45rem .6rem;
    border: 1px solid #c5cede;
    border-radius: .35rem;
    background: #fff;
    color: #333;
    box-sizing: border-box;
}

.bs-radio-group {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.bs-radio {
    display: flex;
    align-items: center;
    gap: .45rem;
    cursor: pointer;
    color: #333;
}

.bs-radio input {
    margin: 0;
}

.bs-checkbox-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 500;
    color: #333;
    cursor: pointer;
}

.bs-checkbox-row input[type="checkbox"] {
    margin: 0;
    width: 1.1rem;
    height: 1.1rem;
    flex: 0 0 auto;
}

/* --- Result box --- */
.bs-import-result {
    border-radius: .4rem;
    padding: .75rem 1rem;
    margin-bottom: 1rem;
    font-size: .9rem;
}

.bs-import-result.is-ok {
    background: #eaf6ec;
    border: 1px solid #bfe5c6;
    color: #1c6b2e;
}

.bs-import-result.is-error {
    background: #fdecec;
    border: 1px solid #f5c2c2;
    color: #a11;
}

.bs-import-result ul {
    margin: .5rem 0 0;
    padding-inline-start: 1.1rem;
    max-height: 160px;
    overflow-y: auto;
}

.bs-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: .5rem;
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

/* --- Buttons --- */
.bs-btn {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .5rem .95rem;
    border-radius: .4rem;
    font-size: .9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    background: #fff;
    color: #333;
    line-height: 1.2;
}

a.bs-btn {
    text-decoration: none;
    color: inherit;
}

.bs-btn-primary {
    background: #1673d1;
    border-color: #1673d1;
    color: #fff;
}

.bs-btn-primary:hover {
    background: #0f5fb2;
    border-color: #0f5fb2;
    color: #fff;
}

.bs-btn-secondary {
    background: #6c757d;
    border-color: #6c757d;
    color: #fff;
}

.bs-btn-secondary:hover {
    background: #5a6268;
    border-color: #5a6268;
    color: #fff;
}

.bs-btn-outline {
    background: #fff;
    border-color: #c5cede;
    color: #333;
}

.bs-btn-outline:hover {
    background: #f1f4f9;
}

.bs-btn-outline-primary {
    background: #fff;
    border-color: #1673d1;
    color: #1673d1;
}

.bs-btn-outline-primary:hover {
    background: #eaf3fd;
    color: #0f5fb2;
}

.bs-btn-sm {
    padding: .35rem .75rem;
    font-size: .85rem;
}

.bs-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

@media (max-width: 575px) {
    .bs-object-tools {
        width: 100%;
        justify-content: flex-end;
    }
    .bs-modal {
        max-width: 100%;
    }
}
#product-import-result {
    margin: 2rem;
    border: 1px solid var(--bs-admin-light);
    border-radius: 5px;
    padding: 5px;
    color: var(--bs-admin-danger);
}