.connections-container {
    max-width: 1200px;
    margin: 20px 0;
}

.connection-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

.connection-item:hover {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.connection-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.connection-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.connection-checkbox {
    margin: 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.connection-header h3 {
    margin: 0;
    color: #2271b1;
    font-size: 16px;
}

.connection-date {
    color: #666;
    font-size: 13px;
}

.products-info {
    display: flex;
    gap: 30px;
}

.product-detail {
    flex: 1;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.product-detail h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 14px;
}

.product-detail p {
    margin: 5px 0;
    color: #666;
    font-size: 13px;
}

.no-connections {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.no-connections p {
    margin-bottom: 20px;
    color: #666;
}

.error-message {
    color: #d63638;
    padding: 15px;
    background: #fef7f7;
    border-left: 4px solid #d63638;
    margin: 20px 0;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.description {
    margin: 20px 0;
    color: #666;
}

.product-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-image {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #eee;
}

.product-text {
    flex: 1;
}

.product-name {
    font-weight: 500;
    color: #2271b1;
    margin: 5px 0;
}

.loading-product {
    color: #666;
    font-style: italic;
    font-size: 13px;
    margin: 5px 0;
}

.error-message {
    color: #d63638;
    font-size: 13px;
    margin: 5px 0;
}

.product-id {
    color: #666;
    font-size: 13px;
    margin: 5px 0;
}

.search-container {
    margin: 20px 0;
    max-width: 1200px;
}

.search-input {
    width: 100%;
    padding: 10px 15px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
}

.search-input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

.search-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

/* Highlight search matches (optional) */
.highlight {
    background-color: #fff9c4;
    padding: 0 2px;
    border-radius: 2px;
}

.selection-info {
    background: #f0f0f1;
    padding: 10px 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.selection-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.selection-actions {
    display: flex;
    gap: 10px;
}

.button-link-delete {
    color: #d63638 !important;
}

.button-link-delete:hover {
    color: #b32d2e !important;
}

.button-link-delete:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* WordPress notification styles */
.notice {
    background: #fff;
    border-left: 4px solid #72aee6;
    box-shadow: 0 1px 1px rgba(0,0,0,.04);
    margin: 5px 0 15px;
    padding: 1px 12px;
}

.notice-success {
    border-left-color: #00a32a;
}

.notice-error {
    border-left-color: #d63638;
}

#selection-count {
    font-size: 13px;
    color: #50575e;
}

/* Optional: Style for checked items */
.connection-item:has(.connection-checkbox:checked) {
    background-color: #f0f7ff;
    border-left: 3px solid #2271b1;
}

.pagination-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding: 15px 0;
    border-top: 1px solid #ddd;
}

.pagination-button {
    padding: 5px 15px !important;
    min-width: 80px;
}

.pagination-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    color: #50575e;
    font-size: 13px;
}
